views:

1966

answers:

4
+10  Q: 

Localization in WPF

I am starting a new application in WPF and I am curious how to handle Localization? In WinForms you can use resx strings for the UI text, how is this done in WPF? Is there a special binding syntax for binding to resx resources or is there a different way of doing this?

Thanks!

+6  A: 

Check out http://msdn.microsoft.com/en-us/library/ms788718.aspx. The article explains nicely how localization in WPF works.

Vixen
Unfortunately you still have to use the command line a lot. But I read that it will improve as WPF grows older. Does anybody know if there will be any improvements with VS 2010?
No improvement in VS 2010 :(
Andrei Rinea
+2  A: 

There is a good article on codeproject explaining how to do WPF localization using RESX files:

http://www.codeproject.com/KB/WPF/WPF_Resx_Localization.aspx

Fossmo
A: 

Hi,

you can use a MarkupExtension to do localization with dynamic language switching. Here is an interesting article about this:

http://www.wpftutorial.net/LocalizeMarkupExtension.html

+3  A: 

Here is another article about WPF localization with the "old" stable ResX files:

Best Practices: Localize a WPF application