currentuiculture

Change UI culture in WinRT

时光毁灭记忆、已成空白 提交于 2019-12-01 00:31:42
问题 Is it possible to change the UI Culture in WinRT on-the-fly? I've found ApplicationLanguages.PrimaryLanguageOverride = "en"; , but this only works before showing the app UI and not afterwards (e.g. I want to change the UI language through the settings). 回答1: It is possible. An example is in the SDK resources. There are different scenarios. Scenario 8 shows how to change language on the fly. 来源: https://stackoverflow.com/questions/13743704/change-ui-culture-in-winrt

creating custom CultureInfo for country, language combination

爷,独闯天下 提交于 2019-11-26 21:35:00
问题 I am working on a .net 4.5 application that needs to be mult lingual supporting multi cultures etc. The following is sample list of Countries/Languages Russia / Russian Belgium / French Belgium / Dutch For all the above, there is a CultureInfo object that can be created based upon the above culture names ru-RU fr-BE nl-BE When the user enters the site, I set Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture to the culture created with the above names eg. Thread