I want to localize my C# windows forms application. I handled to localize the strings on controls by setting their language and values one by one, and I have form1.en.resx and form1.fr.resx and when I run it works as I expected (french in french pc's english in english pc's). But I couldn't find out how will I do that for other strings in the code. Let's say I have:
MessageBox.Show("Hello world");
I believe I need something like
MessageBox.Show(Resources.Helloworld);
And according to the language of the pc it should select the rigth resource value as other control texts do. What is the rigth way to do such a thing?
I tried resharpers Move to resource
option. But it only moves to resource of the project hence I cannot specify any language option on it.
Any help would be appreciated.