I want to create console application in Microsoft Visual C# 2010 Express that will have support for a few languages: it will show messages in selected language. What is the simpliest and convenient way to make it international-ready?
Your best bet is to use assembly resource files using the project menu then add resources to your file.
To use the language specific resources in your program:
System.Resources.ResourceManager mgr = new
System.Resources.ResourceManager("MyConsoleApp.MyResource",
System.Reflection.Assembly.GetExecutingAssembly()) ;
Console.WriteLine ( mgr.GetString ("resourceName"));
Console.ReadLine ();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With