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!

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


Need Your Help

Duplicated Control Name Causing 'Not A Member' Compile Errors

vb.net compiler-errors custom-controls

I have created a custom control called MultiTextbox. When I place my control onto a form and try to run my project, I get the following errors:

Capturing a Click on a NativeWindow

c# .net windows winforms .net-4.0

I have a class based on the NativeWindow class and I want to be able to perform some action when the user clicks inside of it. Here is what I tried:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.