简体   繁体   中英

Windows Phone 8: Localization doesn't work

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 ):

Resource folder content

  • AppResources.en-US.resx [English]
  • AppResources.pl-PL.resx [Polish]
  • AppResources.resx [English]

WMAppManifest.xml:

<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>

You don't have to add your default language to SupportedCultures, see also here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM