1
I am creating a small application in C# and would like to translate it into English, because I intend to publish it and most of the target audience speaks English.
Searching, I discovered that I can use Visual Studio’s own tools to translate the interface of the program under development, but at no time did I find how I could translate strings used internally in the code, which will be represented in the course of using the program in the form of messages.
What is the best way to get these strings to be translated without the need to modify the code?
A practical example would be, rather than:
MessageBox.Show("Olá mundo!");
Something like:
MessageBox.Show(String.HelloWord);
Being in charge of the application choose the language automatically.
I believe it will help you answer this question: http://answall.com/questions/13232/comorinternationalizar-valores-do-enum
– Caputo
Thanks for the tip, @Caputo, but reading the question, I found the answer too complex, for two factors: I don’t even know what it is
Enum
orResolver
. There’s no such thing as simpler?– Renan Lazarotto
There is. I answered another question almost like yours here: http://answall.com/questions/17594/internacionaliza%C3%A7%C3%A3o-com-c-mvc/17600#17600
– Leonel Sanches da Silva