I am working on a .net 4.5 application which should be multilingual, supporting multiple cultures, etc.
Below is an example of a list of countries / languages
- Russia russian
- Belgium / French
- Belgium / Holland
For all of the above, there is a CultureInfo object that can be created based on the names of the names of the culture
When a user logs into the site, I install Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture in the culture created with the above names, for example.
Thread.CurrentThread.CurrentCulture = new CultureInfo("nl-BE", false) Thread.CurrentThread.CurrentUICulture = new CultureInfo("nl-BE", false)
All of the above names are valid cultural names.
No, however, I need to add another name for the culture, English in Russia. But the problem in the en-RU code is invalid, so when I create new CultureInfo("en-RU", false) , I get a CultureNotFoundException exception because en-RU is invalid.
With this culture, I want formatting, etc. Russia was occupied by numbers, dates, etc., but I want the language on the site to be English. Is it possible to create custom CultureInfo objects for invalid crop names with country behavior (Russia)?
source share