localization - WinRT localisation with split resource files -


i'd have separate translations across multiple files.

to keep controls separate dialog text example.

how can split language resource files (.resw) across multiple files? , how can referenced in xaml?

you can reference separate files using format:

strings/en-us/errors.resw

xaml

<textblock x:uid="/errors/alreadyregistered"></textblock> 

code

var res =  windows.applicationmodel.resourceloader('errors'); res.getstring('alreadyregistered'); 

more information here.

note: localised values only swapped out @ runtime you'll need specify text / content xaml properties if want see content in designer.

automation properties need set this:

mycontrolname.[using:windows.ui.xaml.automation]automationproperties.name 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -