Windows Phone 8 - Localization not working

c#, localization, visual-studio, windows-phone-8

Solution

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

Problem

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!

Original source