Click to See Complete Forum and Search --> : changing label texts for different languages


tis707
September 9th, 2008, 05:17 AM
Hi all

i have 13 languages(english,spain...)

if i select a language from combobox need to change all labels accordingly

i have predefined texts for all languages

i know how to do it with database,but i should not use database

thanks a lot

JonnyPoet
September 9th, 2008, 05:53 AM
Hi all

i have 13 languages(english,spain...)

if i select a language from combobox need to change all labels accordingly

i have predefined texts for all languages

i know how to do it with database,but i should not use database

thanks a lotFor having different languages normally Localize is used and you may have your data in Sat dll's
For how to create a user defined Localizer class see my article about dockable Panels part 1 where I explain how to do localization in general even you use it in userdesigned controls. For the link to this articleseries which is written basically for beginners and explains a lot of basic techniques all around how to built a usercontrol and whats needed to do, look at the bottom of this post ! ;)

tis707
September 9th, 2008, 09:40 AM
hai
thanks for your reply

i didnot find any link below the post

shall i use arraylist to get this or any other

pls help me with sample

i have to show 12 different languages

JonnyPoet
September 9th, 2008, 01:54 PM
hai
thanks for your reply

i didnot find any link below the post

Then you need to change the settings of your CG forum settings switch signature on and you will see it under my signature
but for getting sure here it is
http://www.codeguru.com/csharp/csharp/cs_syntax/componentdevelopment/article.php/c14179/


And NO, dont use an arraylist do it the professional way as 16 languages are a lot of resourcesfiles.

tis707
September 9th, 2008, 09:45 PM
thanks a lot
i will go through the link

JonnyPoet
September 10th, 2008, 04:00 AM
thanks a lot
i will go through the linkThere are also other intersesting links regarding localisation on the web for example at CodeProject If you google for 'Global Localization' you will find all you need