![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| 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 | |||