Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

phone is set to poland locale

like image 460
Karloss Avatar asked Mar 19 '26 06:03

Karloss


1 Answers

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

like image 97
thumbmunkeys Avatar answered Mar 21 '26 18:03

thumbmunkeys



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!