Switch to different language in Windows XP

  • Thread starter Thread starter eikel
  • Start date Start date
E

eikel

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.
 
If I understand what you mean, you want to use

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

or use

System.Threading.Thread.CurrentThread.CurrentCulture =
System.Globalization.CultureInfo.CreateSpecificCulture(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.SpecificCulture)

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top