首页 > TAG信息列表 > CurrentCulture
设置 WPF 的全球化语言
https://stackoverflow.com/questions/7454024/setting-culture-en-in-globally-in-wpf-app Thread.CurrentThread.CurrentCulture = new CultureInfo("en-IN");Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-IN");FrameworkElement.Langc# – FxCop CA1305:CurrentCulture与CurrentUICulture
所以,我有一些资源文件用于本地化.它们是可以格式化的字符串. 例如: MyResource.resx Title: "MyApp - Ver: {0}" 我然后通过这样做返回它: public String Title { get { return String.Format(CultureInfo.CurrentUICulture, MyResources.Title, 1); } } 我理解CurrentUICuC#getCultures在local / currentCulture中
尽管我已将本地文化本地化,但以下代码返回英文名称. List<string> languageList = new List<string>(); CultureInfo[] cultureList = CultureInfo.GetCultures(CultureTypes.AllCultures); foreach (CultureInfo culture in cultureList) { languageList.Add(cu