Macadamian Blog

Which localization framework to use on a WPF project?

Microsoft recommends using a tool called LocBaml to localize the strings in your WPF application. We spent a lot of time trying to get LocBaml to work, and ended up dropping it, particularly because

  • Documentation for the tool from Microsoft is sparse. You have to rely on blog posts and articles like this
  • The tool appears to be a beta from Microsoft, and there are a number of known bugs. I haven't seen any indication of when they'll be fixed.
  • Using tool is a 10+ step process, and this process needs to be repeated frequently to update the localization. It involves command line operations, generating .csv files, etc. all of which is reported to be error-prone

A project developed in 2008 (under MS public license) called Extension: WPF Localization got a lot of favorable reviews on the web, so we decided to try that instead. It is simply 4 .cs files which provides a localization framework and dynamic language switching at run-time, among other benefits. The documentation and examples are also quite good. Until we hear updates on LocBaml, this is a framework we'll definitely re-use in future projects.

About the Author

no picture
Didier Thizy

Didier Thizy is the Director, Healthcare Divison at Macadamian, specializing in patient record and medical device software. Didier is a regular columnist on Macadamian's Health IT Insights, a blog and forum for healthcare software development.
Visit Website
Follow on Twitter

+ Comments

Leave A Comment:

You guessed it... your name goes here.

Have a website? Put it here.

We promise, we won't share your address with ANYONE.


Type your comment here... this box will auto expand!

Note: URLs will be auto-converted to links!

Please enter the word you see in the image above.



* - denotes required fields

Here's a preview of your comment:

macadamian
Contact Us: 1-877-779-6336 or email us