Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I'm planning to develop an application(windows) with localization(English, Arabic & Chinese). Which way you're recommending for localization? It's been long time I have worked on Windows applications.

Herebefore I have used localization for an intranet website in my previous company. Below CP article series I have used for that work. Really awesome. Thanks to Karl Seguin.
Creating multilingual websites - Part 1[^]
Creating multilingual websites - Part 2[^]
Creating Multilingual websites - Part 3[^]

But now I'm developing a windows application. I don't want to use Resource files because it has couple of disadvantages(Need to compile everytime when I add new keys, etc.,). Any other better ways please. Above article(s) used just a xml file for localization. During deployment I just had to replace the xml file.

Thank you. BTW no need to rush, please take your time.
Posted
Updated 19-Nov-12 22:08pm
v2

1 solution

Unless you are describing your interface in none compiled code, then whenever you add a new key, you'll have to recompile your code anyway. If, however, you don't want to store your content in resource files, then you could do what we have done for a couple of our clients - store the data in a database.

Basically, you have a table that lists the languages you support, a table with the keys in, and tables with the i18n in (this also has the advantage of helping you enforce referential integrity). The translated content links to the language and the key, and you should consider putting something in to identify the default language - to provide value fallback. There's a lot more you can do with this, but this should provide a good starting point.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900