的Windows Phone 8:本地化不起作用 [英] Windows Phone 8: Localization doesn't work
本文介绍了的Windows Phone 8:本地化不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我提出我从WP7到WP8的应用程序(如我曾与本地化没有问题)。现在只有英文显示,无论手机设置。我的设置是(取自 HTTP:// WWW .geekchamp.com /用品/本地化-A-Windows的手机应用一步一步):
I have moved my application from WP7 (where I had no problems with localization) to the WP8. Now only English language is displayed regardless phone settings. My setup is (taken from http://www.geekchamp.com/articles/localizing-a-windows-phone-app-step-by-step):
- AppResources.en-US.resx的 [英] 的
- AppResources.pl- PL.resx的 [波兰] 的
- AppResources.resx的 [英] 的
- AppResources.en-US.resx [English]
- AppResources.pl-PL.resx [Polish]
- AppResources.resx [English]
<DefaultLanguage xmlns="" code="pl-PL" />
<Languages xmlns="">
<Language code="en-US" />
<Language code="pl-PL" />
</Languages>
手机设置:
Phone settings:
推荐答案
您也可以手动修改主项目文件并添加这样的:
You also have to modify the main project file manually and add this:
<PropertyGroup>
<SupportedCultures>en;pl</SupportedCultures>
您不必到您的默认语言添加到SupportedCultures,也见的这里
You don't have to add your default language to SupportedCultures, see also here
这篇关于的Windows Phone 8:本地化不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文