Xaml content localization in windows phone 8.1

How to localize xaml content in windows phone 8.1 (Step by Step guide)
Step-1
Select default language in package.appxmanifest file that you want to support
Step-2
Add a folder with name Strings in root project.
Step-3
Add subfolder for which you want to configure localization. If you want to support more than two languages then add two folders.
e.g Strings->en-Us
Step-4
Add a Resources.resw file with exactly a name of Resources.resw in en-Us folder
Step-5
Access resource file text by giving a unique id name to your control like
<TextBlock x:Uid=“MyTextBlock” />
<Button x:Uid=“MyButton” />
Step-6 
You must then add a resource with the uid-name with dot-notation, that is, after the dot you write the name of the property of the control in which you want the text.
e.g
Name                      :Value
MyTextBlock.Text  : Hello word
MyButton.Content  : Sing in
Now all is done (y)

Advertisements

One thought on “Xaml content localization in windows phone 8.1

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s