Language codes & request. servervariables ("http_accept_language ")

Source: Internet
Author: User
Tags servervariables


Knowing the editions selected in the browser of our visitors may be a very important data we may used to redirect the user to a specific page in the corresponding language, or to display specific information directed to the user (as for example the most suitable AD ).



The basic command we will use to know the specified ages selected in the browser is this one:


Request. servervariables ("http_accept_language ")


You may get the complete code here. The list of versions may be obtained here.



The following table lists all the possible language codes used to specify various system settings.


AF Afrikaans Sq Albanian
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
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)
EU Basque BG Bulgarian
Be Belarusian CA Catalan
Zh-tw Chinese (Taiwan) Zh-CN Chinese (PRC)
Zh-HK Chinese (Hong Kong, S. a.r. China) Zh-SG Chinese (Singapore)
HR Croatian CS Czech
Da Danish NL Dutch (standard)
NL-be Dutch (Belgium) En English
En-US English (United States) En-GB English (Great Britain)
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 English (Caribbean) En-BZ English (Belize)
En-TT English (Trinidad) Et Estonian
Fo faeroese Fa Farsi
FI Finnish Fr French (standard)
Fr-be French (Belgium) Fr-Ca French (Canada)
Fr-ch French (Switzerland) Fr-lu French (Luxembourg)
GD Gaelic (Scotland) GD-ie Gaelic (Ireland)
De German (standard) De-ch German (Switzerland)
De-at German (Austria) De-lu German (Luxembourg)
De-Li German (Liechtenstein) El Greek
He Hebrew Hi Hindi
Hu Hungarian Is Icelandic
In Indonesian It Italian (standard)
It-ch Italian (Switzerland) Ja Japan
Ko Korean Ko Korean (johab)
LV Latvian Lt Lithuanian
MK fyro Macedonian Malaysian MS
Mt Maltese No Norwegian (bokmal)
No Norwegian (nynorsk) PL Polish
Pt-Br Portuguese (Brazil) PT Portuguese (standard)
Rm Rhaeto-Romanic RO Romanian
Ro-Mo Romanian (Moldavia) Ru Russian
Ru-Mo Russian (Moldavia) SZ Sami (Lappish)
Sr Serbian (Cyrillic) Sr Serbian (Latin)
SK SLOVAK SL Slovenian
SB Sorbian Es Spanish (Spain-traditional)
Es-mx Spanish (Mexico) Es Spanish (Spain-modern)
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) SX sutu
SV Swedish SV-fi Swedish (Finland)
Th Thai TS Tsonga
TN Tswana Tr Turkish
UK Ukrainian Ur Urdu
Ve Venda VI Vietnamese
XH Xhosa Ji Yiddish
Zu Zulu  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.