Stop C # language internationalization

I have a C # .NET program here with the following line to load the lines:

m_resource_manager = new ResourceManager("Foo.FooStrings", Assembly.GetExecutingAssembly());

as recommended to me. Right now, I have a request to stop doing these translations and do everything in English. I want to make the changes as possible and reversible.

I would like to change this line so that it always loads the English string table, but I do not know what to specify, or, if it is important, is it good or not.

Is this a good way to stick with English? If so, how do I write it? If not, what should I do instead?

+3
source share
2 answers

You can specify the culture immediately before this line:

#if ENGLISH_ONLY
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
#endif

, ENGLISH_ONLY, .

+5

resx, ?

+1

Source: https://habr.com/ru/post/1792086/


All Articles