How to get internationalized App Bar Buttons in DatePicker pop up.

404 views Asked by At

I am using the Windows Phone Toolkit and added the Date Picker Control. The Control itself shows Date and Day as translated strings already but the App Bar Icons below have "done" and "cancel" in all languages. I downloaded the Source Code from codeplex and ran the project there and could see a translated text. For some reason this does not work in my project where I installed the toolkit via NuGet manager.

Is there a way to replace this hard coded text with a style/template?

<shell:ApplicationBarIconButton
       IconUri="/Toolkit.Content/ApplicationBar.Check.png"
       Text="DONE"/>
<shell:ApplicationBarIconButton
       IconUri="/Toolkit.Content/ApplicationBar.Cancel.png"
       Text="CANCEL"/>
1

There are 1 answers

5
venerik On

You will have to select the languages you want to support in your project file. For instance, if you would like to support Dutch, you should select Dutch (Netherlands) in the project file (Application tab, Supported Cultures list).

After saving this change, Visual Studio will automatically add a culture specific resource file for you. E.g. AppResources.nl-NL.resx.

After building and deploying the solution the toolkit's culture specific resources will be included in your XAP file and the date picker should display the correct text.

Source: http://phone.codeplex.com/workitem/10893