Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 8 - Localization not working

I was asked to localize a Windows Phone 8 application, so I followed the tutorial that can be found here.

I did a very simple app from the beginning and all the steps stated in the tutorial, and it worked fine. The problem is that in the application I really want to localize, the string resources are not working.

The Resource folder didn't exist, so I created it and then I put inside the .resx files for each language. The files are called "AppResources.resx", and I'm binding them like this:

<TextBlock x:Name="ApplicationTitle" Text="{Binding Path=LocalizedResources.ApplicationTitle, 
Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>

Just like in the example (there the .resx are also named "AppResources"). But when I try to deploy the application, the VS 2012 output gives me an error:

The resource "LocalizedStrings" could not be resolved.

I think the problem is that I had to create the Resource folder myself and I'm missing something for the application to be able to recognize it, but I don't know what it is. Can you help me?

Thanks in advance!

like image 544
DrGrijando Avatar asked May 03 '13 10:05

DrGrijando


1 Answers

You need to define the LocalizedStrings Resource before to use it.

Check the link: http://www.geekchamp.com/articles/localizing-a-windows-phone-app-step-by-step

like image 113
Fabrice Avatar answered Oct 03 '22 14:10

Fabrice