Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Localization in WPF

 
 
Old 12-27-2006   #1 (permalink)
RoS


 
 

Localization in WPF

Hello,

Is there a convenient way to implement on-the-fly localization in WPF?
Ie. you select a new language, and the language of the application
changes immediately without a restart.

I tried the generic approach using extracting string with LocBAML and
compiling them back into satellite assemblies, but it doesn't support
on-the-fly translation. Not to mention that it puts all the resources
into each assembly, including images, brushes etc. What is the logic
behind this?

Next, I tried the string resource approach, where on the language
change a new strings resource is loaded and the caption / text
properties of all the visible elements are replaced manually.
Cumbersome, not elegant, but does the trick. Except that I could not
find a way to replace the strings for not instantiated windows without
making the implementation even more cumbersome.

I am currently investigating the method of storing strings in a
resource dictionary, but I dont like this approach at all, as it seems
like a step backwards.

is there a more elegant way to achieve this feature?

Cheers,
Roman


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Localization in Classes .NET General
Localization of custom DLLs. .NET General
Localization: MUI or LIPS? Vista installation & setup
localization Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46