One challange in globalizing/localizing an application is in finding the way to place dynamic values from the application into the tranlations received from the resource manager. Just appending a dynamic value to this static translation is NOT state-of-art. So while the following code outputs a simple translation ...
ResourceManager rm = new ResourceManager("WinClient.Settings.FormLanguageAndLocale", Assembly.GetExecutingAssembly());
Console.Out.WriteLine(rm.GetString("MSG_ApplySimilarCulture"));
... I ask myself how can you put params INTO that text?!
The Console.Out.WriteLine method has got a neat way to integrate params:
Console.Out.WriteLine("My Brother {0} is {} years old.", "Henry", "12");
Is there a way how you can do the same with those translations?
ResourceManager rm = new ResourceManager("WinClient.Settings.FormLanguageAndLocale", Assembly.GetExecutingAssembly());
Console.Out.WriteLine(rm.GetString("MSG_ApplySimilarCulture"));
... I ask myself how can you put params INTO that text?!
The Console.Out.WriteLine method has got a neat way to integrate params:
Console.Out.WriteLine("My Brother {0} is {} years old.", "Henry", "12");
Is there a way how you can do the same with those translations?