Object LCID - Classic ASP
When you need to make a website in ASP Classic and the website is in a different language than the hosting server, you need to change the LCID object so that the currency, date and time formats correspond to the place where the website is displayed.
In this tutorial, you will learn not only to define the correct LCID, but also to define the LCID when the session object was disabled by the ASP directive "ENABLESESSIONSTATE" = false, which makes your application fully compatible with Web Garden / Web Farm.
How to set the regionalization code for your web application in ASP Classic
You have 3 ways to accomplish this:
ASP directive (on the first line of the ASP page or on the first line of the first include of all pages).
<%@ LCID=1046 %>
In the Session object:
Session.LCID=1046
And in the Response object (Not available in IIS 5.0 or earlier):
Response.LCID=1046
Regional Settings Table for LCID
Below is the table containing all regional codes. For Brazil (Portuguese - Brazil), the code is 1046.
LCID LANGUAGE
1025 Arabic - Saudi Arabia
1026 Bulgarian
1027 Catalan
1028 China - Taiwan
1029 Czech
1030 Danish
1031 German - Germany
1032 Greek
1033 English - United States
1034 Spanish - Spain
1035 Finnish
1036 French - France
1037 Hebrew
1038 Hungarian
1039 Icelandic
1040 Italian - Italy
1041 Japanese
1042 Korean
1043 Dutch - Netherlands
1044 Norway - Bokmål
1045 Polish
1046 Portuguese - Brazil
1047 Retoromano
1048 Romanian
1049 Russian
1050 Croatian
1051 Slovak
1052 Albanian
1053 Swedish - Sweden
1054 Thai (Thailand)
1055 Turkish
1056 Urdu
1057 Indonesian
1058 Ukrainian
1059 Belarusian
1060 Slovenian
1061 Estonian
1062 Latvian
1063 Lithuanian
1064 Tajik
1065 Farsi
1066 Vietnamese
1067 Armenian
1068 Azeri - Latin
1069 Basque
1070 Sorbian
1071 FYRO Macedonia
1072 Sutu
1073 Tsonga
1074 Setsuana - Setswana
1075 For Sale
1076 Xhosa
1077 Zulu
1078 Africans
1079 Georgian
1080 Faroese
1081 Hindi
1082 Maltese
1083 Sami - Lapão
1084 Gaelic - Scotland
1085 Yiddish
1086 Malay - Malaysia
1087 Kazakh
1088 Kyrgyzstan - Cyrillic
1089 Swahili (Swahili)
1090 Turkmen - Turkmenistan
1091 Uzbek - Latin
1092 Tatar
1093 Bengali - India
1094 Panjabi
1095 Gujarati
1096 Oriya
1097 Tamil
1098 Telugu
1099 Kannada
1100 Malay
1101 Assamese
1102 Maratí
1103 Vedic Sanskrit
1104 Mongolian - Cyrillic
1105 Tibet - China
1106 Welsh - Wales
1107 Khmer
1108 Laotian - Laos
1109 Burmese (Myanmar)
1110 Galician
1111 Konkani
1112 Manipuri
1113 Sindhi - India
1114 Syriac
1115 Sri Lankan - Sri Lanka
1116 Cheroqui - United States
1117 Inuit
1118 Amharic - Ethiopia
1119 Tamazight (Arabic)
1120 Kashmiri (Arabic)
1121 Nepalese - Nepal
1122 Dutch - Friesland
1123 Pasture
1124 Filipino
1125 Divehi (Maldivian) - Maldives
1126 Edo (bini)
1127 Fula - Nigeria
1128 Hausa - Nigeria
1129 Ibibio - Nigeria
1130 Yoruba
1131 Quecha - Bolivia
1132 Sepedi
1133 Bashkir
1134 Luxembourgish
1135 Greenlandic - Greenland
1136 Igbo - Nigeria
1137 Kanuri - Nigeria
1138 Oromo
1139 Tigrigna - Ethiopia
1140 Guarani - Paraguay
1141 Hawaiian - United States
1142 Latin
1143 Somali (Somalia)
1144 Yi
1145 Papiamentu
1146 Mapuche
1148 Mohawk
1150 Brittany
1152 Uighur - China
1153 Māori - New Zealand
1154 Ocitana
1155 Corsicana
1156 Alsatian
1157 Yakut
1158 Quiché (K'iche)
1159 Quiniaruanda
1160 Wolof
1164 Dari
1279 HID (Human Interface Device)
2049 Arab - Iraq
2052 Chinese - China
2055 German - Switzerland
2057 English - United Kingdom
2058 Spanish - Mexico
2060 French - Belgium
2064 Italian - Switzerland
2067 Dutch - Belgium
2068 New Norwegian - Norway
2070 Portuguese - Portugal
2072 Romania - Moldova
2073 Russian - Moldova
2074 Serbia - Latin
2077 Swedish - Finland
2080 Urdu - India
2092 Azeri - Cyrillic
2108 Gaelic - Ireland
2110 Malay - Brunei
2115 Uzbek - Cyrillic
2117 Bengali - Bangladesh
2118 Punjabi - Pakistan
2128 Mongol - Mongolia
2129 Tibetan - Bhutan
2137 Sindhi - Pakistan
2143 Tamazight - Latin
2144 Kashmiri
2145 Nepali - India
2155 Quecha - Ecuador
2163 Tigrigna - Eritrea
3073 Arab - Egypt
3076 Chinese - Hong Kong
3079 German - Austria
3081 English - Australia
3082 Spanish - Spain
3084 French - Canada
3098 Serbia - Cyrillic
3179 Quecha - Peru
4097 Arab - Libya
4100 Chinese - Singapore
4103 German - Luxembourg
4105 English - Canada
4106 Spanish - Guatemala
4108 French - Switzerland
4122 Croatian (Bosnia / Herzegovinia)
5121 Arabic - Algeria
5124 China - Macau
5127 German - Liechtenstein
5129 English - New Zealand
5130 Spanish - Costa Rica
5132 French - Luxembourg
5146 Bosnian (Bosnia / Herzegovinia)
6145 Arab - Morocco
6153 English - Ireland
6154 Spanish - Panama
6156 French - Monaco
7169 Arabic - Tunisia
7177 English - South Africa
7178 Spanish - Dominican Republic
7180 French - West India
8193 Arabic - Oman
8201 English - Jamaica
8202 Spanish - Venezuela
8204 French - Reunion
9217 Arabic - Yemen
9225 English - Caribbean
9226 Spanish - Colombia
9228 French - Democratic Republic of the Congo
10241 Arab - Syria
10249 English - Belize
10250 Spanish - Peru
10252 French - Senegal
11265 Arabic - Jordan
11273 English - Trinidad
11274 Spanish - Argentina
11276 French - Cameroon
12289 Arabic - Lebanon
12297 English - Zimbabwe
12298 Spanish - Ecuador
12300 French - Cote d'Ivoire
13313 Arabic - Kuwait
13321 English - Philippines
13322 Spanish - Chile
13324 French - Mali
14337 Arabic - United Arab Emirates
14345 English - Indonesia
14346 Spanish - Uruguay
14348 French - Morocco
15361 Arabic - Bahrain
15369 English - Hong Kong (SAR)
15370 Spanish - Paraguay
15372 French - Haiti
16385 Arabic - Qatar
16393 English - India
16394 Spanish - Bolivia
17417 English - Malaysia
17418 Spanish - El Salvador
18441 English - Singapore
18442 Spain - Honduras
19466 Spanish - Nicaragua
20490 Spanish - Puerto Rico
21514 Spanish - United States
22538 Spanish - Latin America
58380 French - North Africa
Source: http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx
No comments