Jump to content

ULSCountryLocale: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
Ak120 (talk | contribs)
(No difference)

Revision as of 23:23, 18 January 2017

Description

Returns the name of the system locale that corresponds to the specified locale number.

Arguments

ULSCountryLocale( number )

Parameters:

number
The requested numeric locale code (required). This is a one-to-three digit number which the Universal Language Support APIs use to uniquely identify each predefined country locale.
NOTE: This number is NOT the same as the country code, although there is some overlap. The actual usefulness of this function is unclear, since no other API appears to make use of these values.
A list of known numbers is included below, together with the OS/2 language ID that most closely corresponds. (Thanks to Peter Koller for compiling these.) Those marked with '*' arenot recognized by other OS/2 functions.
ULS   LangID  Name     Description
      (approx) 
0     81      ja_JP    Japan (Japanese)
1     1       en_US    United States (English)
2     2       fr_CA    Canada (French)
3     3       es_LA    Latin America (Spanish)
7     7       ru_RU    Russia (Russian)
20    785     ar_EG    Egypt (Arabic)*
27    27      en_ZA    South Africa (English)
30    358     fi_FI_E  Finland (Finnish)
31    31      nl_NL    Netherlands (Dutch)
32    32      en_BE    Belgium (English)
33    33      fr_FR    France (French)
34    34      es_ES    Spain (Spanish)
36    36      hu_HU    Hungarian (Hungary)
39    39      it_IT    Italy (Italian)
40    40      ro_RO    Romania (Romanian)
41    41      fr_CH    Switzerland (French)
42    421     cs_CZ    Czech Republic (Czech Republic)
43    43      de_AT    Austria (German)
44    44      en_GB    United Kingdom (English)
45    45      da_DK    Denmark (Danish)
46    46      sv_SE    Sweden (Swedish)
47    47      no_NO    Norway (Norwegian)
48    48      pl_PL    Poland (Polish)
49    49      de_DE    Germany (German)
51    34      es_PE    Peru (Spanish)*
52    34      es_MX    Mexico (Spanish)*
54    34      es_AR    Argentina (Spanish)*
55    55      pt_BR    Brazil (Portuguese)
56    34      es_CL    Chile (Spanish)*
57    34      es_CO    Colombia (Spanish)*
58    34      es_VE    Venezuela (Spanish)*
61    61      en_AU    Australia (English)
64    64      en_NZ    New Zealand (English)
65    86      zh_SG    Singapore (Chinese)*
66    66      th_TH    Thailand (Thai)
81    49      de_LI    Liechtenstein (German)*
82    66      in_ID    Indonesia (Indonesian)*
84    66      vi_VN    Vietnam (Vietnamese)*
86    86      zh_CN    China (Simplified Chinese)
88    88      zh_TW    Taiwan (Traditional Chinese)
90    90      tr_TR    Turkey (Turkish)
99    1       univ     Universal*
212   785     ar_MA    Morocco (Arabic)*
213   785     ar_DZ    Algeria (Arabic)*
216   785     ar_TN    Tunisia (Arabic)*
351   351     pt_PT    Portugal (Portuguese)
352   33      fr_LU    Luxembourg (French)*
353   353     en_IE    Ireland (English)
354   354     is_IS    Iceland (Icelandic)
355   355     sq_AL    Albania (Albanian)
358   46      sv_FI    Finland (Swedish)*
359   359     bg_BG    Bulgaria (Bulgarian)
370   370     lt_LT    Lithuania (Lithuanian)
371   371     lv_LV    Latvia (Latvian)
372   372     et_EE    Estonia (Estonian)
375   7       be_BY    Belarus (Belarussian)*
380   7       uk_UA    Ukraine (Ukrainian)*
381   381     hr_SP    Serbia (Croatian)
385   385     hr_HR    Croatia (Croatian)
386   386     sl_SI    Slovenia (Slovenian)
387   387     sh_BA    Bosnia (Serbo-Croatian)
389   389     mk_MK    Macedonia (Macedonian)
502   34      es_GT    Guatemala (Spanish)*
503   34      es_SV    El Salvador (Spanish)*
504   34      es_HN    Honduras (Spanish)*
505   34      es_NI    Nicaragua (Spanish)*
506   34      es_CR    Costa Rica (Spanish)*
507   34      es_PA    Panama (Spanish)*
591   34      es_BO    Bolivia (Spanish)*
593   34      es_EC    Ecuador (Spanish)*
595   34      es_PY    Paraguay (Spanish)*
598   34      es_UY    Uruguay (Spanish)*
785   785     ar_AA    Arabic Speaking (Arabic)
852   86      zh_HK    Hong Kong (Traditional Chinese)*
961   785     ar_LB    Lebanon (Arabic)*
962   785     ar_JO    Jordan (Arabic)*
963   785     ar_SY    Syria (Arabic)*
965   785     ar_KW    Kuwait (Arabic)*
966   785     ar_SA    Saudi Arabia (Arabic)*
967   785     ar_YE    Yemen (Arabic)*
968   785     ar_OM    Oman (Arabic)*
971   785     ar_AE    United Arab Emirates (Arabic)*
972   30      el_GR_E  Greece (Greek)*
973   785     ar_BH    Bahrain (Arabic)*
974   785     ar_QA    Qatar (Arabic)*
981   1       fa_IR    Iran (Farsi)*

Return Value

Returns
The name of the locale, encoded in the currently-active codepage.