Globalisation, Localisation and WP7

Pictorial on how to use Globalisation / localisation in WP7 / Silverlight development.

More comprehensive sample (including appbar and title localisation) has been uploaded to codeplex
http://wp7localization.codeplex.com/

Pictorial below:

Close visual studio and open the csproj file with notepad or textpad etc. Add the supported cultures node or edit it to add your supported locales. Once added, save and close the editor.

Open project using visual studio.

Now lets add resource files

Now add other locales (e.g. german)

there’s some issue with resource constructor being internal and setting the resource as Application wide resource. So lets expose it manually

Now declare app resource in App.xaml file

Now lets consume it in a xaml

Lets start emulator

Now change emulator display language and accept changes

Now lets restart the app

There… all done.. you can do this for just about any language

8 thoughts on “Globalisation, Localisation and WP7

Leave a Reply

Fill in your details below or click an icon to log in:

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