473,394 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Switch to different language in Windows XP

Hi

I am a newbie c# programmer, I would like to know how
to make a function that switches between languages in
windows XP/2000. The languages can be set manually in the
language bar. Thanks for any help!

Regards

E.

Nov 15 '05 #1
2 5540
If I understand what you mean, you want to use

System.Threading.Thread.CurrentThread.CurrentCultu re = new
System.Globalization.CultureInfo(languageCode);

or use

System.Threading.Thread.CurrentThread.CurrentCultu re =
System.Globalization.CultureInfo.CreateSpecificCul ture(languageCode);

for specific culture or not just language (like UK and USA both use
English, but different notation, currency format, etc)

This won't do much unless you also create satellite assemblies which you
can load by using CurrentUICulture.

The CultureInfo class, contains how to write numbers, date time, ++.

I couldn't find a list of all language codes on the web, but I printed out
what .Net Framework knows by using
CultureInfo.GetCultures(CultureType.SpecificCultur e)

List is made out of CultureInfo.Name and CultureInfo.EnglishName

ar-SA Arabic (Saudi Arabia)
ar-IQ Arabic (Iraq)
ar-EG Arabic (Egypt)
ar-LY Arabic (Libya)
ar-DZ Arabic (Algeria)
ar-MA Arabic (Morocco)
ar-TN Arabic (Tunisia)
ar-OM Arabic (Oman)
ar-YE Arabic (Yemen)
ar-SY Arabic (Syria)
ar-JO Arabic (Jordan)
ar-LB Arabic (Lebanon)
ar-KW Arabic (Kuwait)
ar-AE Arabic (U.A.E.)
ar-BH Arabic (Bahrain)
ar-QA Arabic (Qatar)
bg-BG Bulgarian (Bulgaria)
ca-ES Catalan (Catalan)
zh-TW Chinese (Taiwan)
zh-CN Chinese (People's Republic of China)
zh-HK Chinese (Hong Kong S.A.R.)
zh-SG Chinese (Singapore)
zh-MO Chinese (Macau S.A.R.)
cs-CZ Czech (Czech Republic)
da-DK Danish (Denmark)
de-DE German (Germany)
de-CH German (Switzerland)
de-AT German (Austria)
de-LU German (Luxembourg)
de-LI German (Liechtenstein)
el-GR Greek (Greece)
en-US English (United States)
en-GB English (United Kingdom)
en-AU English (Australia)
en-CA English (Canada)
en-NZ English (New Zealand)
en-IE English (Ireland)
en-ZA English (South Africa)
en-JM English (Jamaica)
en-CB English (Caribbean)
en-BZ English (Belize)
en-TT English (Trinidad and Tobago)
en-ZW English (Zimbabwe)
en-PH English (Republic of the Philippines)
es-MX Spanish (Mexico)
es-ES Spanish (Spain)
es-GT Spanish (Guatemala)
es-CR Spanish (Costa Rica)
es-PA Spanish (Panama)
es-DO Spanish (Dominican Republic)
es-VE Spanish (Venezuela)
es-CO Spanish (Colombia)
es-PE Spanish (Peru)
es-AR Spanish (Argentina)
es-EC Spanish (Ecuador)
es-CL Spanish (Chile)
es-UY Spanish (Uruguay)
es-PY Spanish (Paraguay)
es-BO Spanish (Bolivia)
es-SV Spanish (El Salvador)
es-HN Spanish (Honduras)
es-NI Spanish (Nicaragua)
es-PR Spanish (Puerto Rico)
fi-FI Finnish (Finland)
fr-FR French (France)
fr-BE French (Belgium)
fr-CA French (Canada)
fr-CH French (Switzerland)
fr-LU French (Luxembourg)
fr-MC French (Principality of Monaco)
he-IL Hebrew (Israel)
hu-HU Hungarian (Hungary)
is-IS Icelandic (Iceland)
it-IT Italian (Italy)
it-CH Italian (Switzerland)
ja-JP Japanese (Japan)
ko-KR Korean (Korea)
nl-NL Dutch (Netherlands)
nl-BE Dutch (Belgium)
nb-NO Norwegian (Bokmål) (Norway)
nn-NO Norwegian (Nynorsk) (Norway)
pl-PL Polish (Poland)
pt-BR Portuguese (Brazil)
pt-PT Portuguese (Portugal)
ro-RO Romanian (Romania)
ru-RU Russian (Russia)
hr-HR Croatian (Croatia)
sr-SP-Latn Serbian (Latin) (Serbia)
sr-SP-Cyrl Serbian (Cyrillic) (Serbia)
sk-SK Slovak (Slovakia)
sq-AL Albanian (Albania)
sv-SE Swedish (Sweden)
sv-FI Swedish (Finland)
th-TH Thai (Thailand)
tr-TR Turkish (Turkey)
ur-PK Urdu (Islamic Republic of Pakistan)
id-ID Indonesian (Indonesia)
uk-UA Ukrainian (Ukraine)
be-BY Belarusian (Belarus)
sl-SI Slovenian (Slovenia)
et-EE Estonian (Estonia)
lv-LV Latvian (Latvia)
lt-LT Lithuanian (Lithuania)
fa-IR Farsi (Iran)
vi-VN Vietnamese (Viet Nam)
hy-AM Armenian (Armenia)
az-AZ-Latn Azeri (Latin) (Azerbaijan)
az-AZ-Cyrl Azeri (Cyrillic) (Azerbaijan)
eu-ES Basque (Basque)
mk-MK FYRO Macedonian (Former Yugoslav Republic of Macedonia)
af-ZA Afrikaans (South Africa)
ka-GE Georgian (Georgia)
fo-FO Faroese (Faroe Islands)
hi-IN Hindi (India)
ms-MY Malay (Malaysia)
ms-BN Malay (Brunei Darussalam)
kk-KZ Kazakh (Kazakhstan)
ky-KZ Kyrgyz (Kyrgyzstan)
sw-KE Swahili (Kenya)
uz-UZ-Latn Uzbek (Latin) (Uzbekistan)
uz-UZ-Cyrl Uzbek (Cyrillic) (Uzbekistan)
tt-RU Tatar (Russia)
pa-IN Punjabi (India)
gu-IN Gujarati (India)
ta-IN Tamil (India)
te-IN Telugu (India)
kn-IN Kannada (India)
mr-IN Marathi (India)
sa-IN Sanskrit (India)
mn-MN Mongolian (Mongolia)
gl-ES Galician (Galician)
kok-IN Konkani (India)
syr-SY Syriac (Syria)
div-MV Divehi (Maldives)
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2
Thanks very much Morten this is a great help!
Cheers
E.
-----Original Message-----
If I understand what you mean, you want to use

System.Threading.Thread.CurrentThread.CurrentCult ure = new System.Globalization.CultureInfo(languageCode);

or use

System.Threading.Thread.CurrentThread.CurrentCult ure =
System.Globalization.CultureInfo.CreateSpecificCu lture (languageCode);
for specific culture or not just language (like UK and USA both use English, but different notation, currency format, etc)

This won't do much unless you also create satellite assemblies which you can load by using CurrentUICulture.

The CultureInfo class, contains how to write numbers, date time, ++.
I couldn't find a list of all language codes on the web, but I printed out what .Net Framework knows by using
CultureInfo.GetCultures(CultureType.SpecificCultu re)

List is made out of CultureInfo.Name and CultureInfo.EnglishName
ar-SA Arabic (Saudi Arabia)
ar-IQ Arabic (Iraq)
ar-EG Arabic (Egypt)
ar-LY Arabic (Libya)
ar-DZ Arabic (Algeria)
ar-MA Arabic (Morocco)
ar-TN Arabic (Tunisia)
ar-OM Arabic (Oman)
ar-YE Arabic (Yemen)
ar-SY Arabic (Syria)
ar-JO Arabic (Jordan)
ar-LB Arabic (Lebanon)
ar-KW Arabic (Kuwait)
ar-AE Arabic (U.A.E.)
ar-BH Arabic (Bahrain)
ar-QA Arabic (Qatar)
bg-BG Bulgarian (Bulgaria)
ca-ES Catalan (Catalan)
zh-TW Chinese (Taiwan)
zh-CN Chinese (People's Republic of China)
zh-HK Chinese (Hong Kong S.A.R.)
zh-SG Chinese (Singapore)
zh-MO Chinese (Macau S.A.R.)
cs-CZ Czech (Czech Republic)
da-DK Danish (Denmark)
de-DE German (Germany)
de-CH German (Switzerland)
de-AT German (Austria)
de-LU German (Luxembourg)
de-LI German (Liechtenstein)
el-GR Greek (Greece)
en-US English (United States)
en-GB English (United Kingdom)
en-AU English (Australia)
en-CA English (Canada)
en-NZ English (New Zealand)
en-IE English (Ireland)
en-ZA English (South Africa)
en-JM English (Jamaica)
en-CB English (Caribbean)
en-BZ English (Belize)
en-TT English (Trinidad and Tobago)
en-ZW English (Zimbabwe)
en-PH English (Republic of the Philippines)
es-MX Spanish (Mexico)
es-ES Spanish (Spain)
es-GT Spanish (Guatemala)
es-CR Spanish (Costa Rica)
es-PA Spanish (Panama)
es-DO Spanish (Dominican Republic)
es-VE Spanish (Venezuela)
es-CO Spanish (Colombia)
es-PE Spanish (Peru)
es-AR Spanish (Argentina)
es-EC Spanish (Ecuador)
es-CL Spanish (Chile)
es-UY Spanish (Uruguay)
es-PY Spanish (Paraguay)
es-BO Spanish (Bolivia)
es-SV Spanish (El Salvador)
es-HN Spanish (Honduras)
es-NI Spanish (Nicaragua)
es-PR Spanish (Puerto Rico)
fi-FI Finnish (Finland)
fr-FR French (France)
fr-BE French (Belgium)
fr-CA French (Canada)
fr-CH French (Switzerland)
fr-LU French (Luxembourg)
fr-MC French (Principality of Monaco)
he-IL Hebrew (Israel)
hu-HU Hungarian (Hungary)
is-IS Icelandic (Iceland)
it-IT Italian (Italy)
it-CH Italian (Switzerland)
ja-JP Japanese (Japan)
ko-KR Korean (Korea)
nl-NL Dutch (Netherlands)
nl-BE Dutch (Belgium)
nb-NO Norwegian (Bokmål) (Norway)
nn-NO Norwegian (Nynorsk) (Norway)
pl-PL Polish (Poland)
pt-BR Portuguese (Brazil)
pt-PT Portuguese (Portugal)
ro-RO Romanian (Romania)
ru-RU Russian (Russia)
hr-HR Croatian (Croatia)
sr-SP-Latn Serbian (Latin) (Serbia)
sr-SP-Cyrl Serbian (Cyrillic) (Serbia)
sk-SK Slovak (Slovakia)
sq-AL Albanian (Albania)
sv-SE Swedish (Sweden)
sv-FI Swedish (Finland)
th-TH Thai (Thailand)
tr-TR Turkish (Turkey)
ur-PK Urdu (Islamic Republic of Pakistan)
id-ID Indonesian (Indonesia)
uk-UA Ukrainian (Ukraine)
be-BY Belarusian (Belarus)
sl-SI Slovenian (Slovenia)
et-EE Estonian (Estonia)
lv-LV Latvian (Latvia)
lt-LT Lithuanian (Lithuania)
fa-IR Farsi (Iran)
vi-VN Vietnamese (Viet Nam)
hy-AM Armenian (Armenia)
az-AZ-Latn Azeri (Latin) (Azerbaijan)
az-AZ-Cyrl Azeri (Cyrillic) (Azerbaijan)
eu-ES Basque (Basque)
mk-MK FYRO Macedonian (Former Yugoslav Republic of Macedonia)af-ZA Afrikaans (South Africa)
ka-GE Georgian (Georgia)
fo-FO Faroese (Faroe Islands)
hi-IN Hindi (India)
ms-MY Malay (Malaysia)
ms-BN Malay (Brunei Darussalam)
kk-KZ Kazakh (Kazakhstan)
ky-KZ Kyrgyz (Kyrgyzstan)
sw-KE Swahili (Kenya)
uz-UZ-Latn Uzbek (Latin) (Uzbekistan)
uz-UZ-Cyrl Uzbek (Cyrillic) (Uzbekistan)
tt-RU Tatar (Russia)
pa-IN Punjabi (India)
gu-IN Gujarati (India)
ta-IN Tamil (India)
te-IN Telugu (India)
kn-IN Kannada (India)
mr-IN Marathi (India)
sa-IN Sanskrit (India)
mn-MN Mongolian (Mongolia)
gl-ES Galician (Galician)
kok-IN Konkani (India)
syr-SY Syriac (Syria)
div-MV Divehi (Maldives)
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Rudi Hansen | last post by:
I dont seem to be able to find the switch statement in Python. I would like to be able to do switch(var) case 1 : print "var = 1" case 2: print "var = 2"
5
by: Bryan Parkoff | last post by:
C++ programmers and I tried to experience by writing 65536 switch cases. It is too large for Windows XP and other operating system to handle. It looks like that JMP Table obtains 256K bytes for...
11
by: hasadh | last post by:
Hi, is the assemly code for if..else and switch statements similar. I would like to know if switch also uses value comparison for each case internally or does it jump to the case directly at...
4
by: walter | last post by:
The question sound simple -- I had a multilingual site, I give a button on each page to allow user switch to different language, and of cause I want to use asp.net 2 globalization mechanism. So...
3
by: Ryan Liu | last post by:
Hi, I have a big urgent problem to solve. I used to use Windows 2000 Chinese version, now I installed Windows XP (English) system. The problem is not about 2000 or XP, it is about English...
3
by: =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post by:
Is there a command line switch available for the EventViewer which will allow me to specify which directory to view the available logs from? I will have multiple workstations writing to a...
0
by: suraneng | last post by:
I develop web-based application that use java applet to connect scanner by Twain, when applet popup windows for select Twain source (call Twain from java applet) then it scan a picture correctly, but...
28
by: Ryan Liu | last post by:
Hi, I have a client/server application, using one thread/client approach. I see very high context switch/sec. What are the ways to reduce it? Each thread sleep longer in its endless loop if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.