xaml - Multiple Language Support in WP8 app -


for wp8 app want provide support several languages. i'm using *.resw files in order store language specific text needed xaml elements. defined default language (en-us) within *.appxmanifest.

regarding project's file organization, created several language files used different groups of information, e.g. button context ("appbarbuttons.resw") or pivot header ("pivotheader.resw").

but i'm not quite sure if best solution. if there elements on different pages, same x:uid property?

so question is, should stick solution or shall create language file each page individually, , how can let user choose specific language (only if available app of course) programmatically?

create 1 .resw file per language. creating 1 per form going become difficult solution maintain on time, if share terms between forms. use x:uid notation in xaml when possible makes life easier. found following video microsoft on languages in windows phone quite helpful ...

http://channel9.msdn.com/series/building-apps-for-windows-phone-8-1/08

if wanting use same translations such in app bar save button example: xaml follows...

<appbarbutton x:uid="appbarsave" label=""  icon="save" click="appbarbuttonsave_click"/>  

the resource file like following:

enter image description here


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -