Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WinForm localization
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 19-Nov-12 19:57pm
thatraja242.7K
Edited 19-Nov-12 23:08pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100