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
Post a Comment