Jump to content

ULSCountryLocale: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Description==
Returns the name of the system locale that corresponds to the specified locale number.
Returns the name of the system locale that corresponds to the specified locale number.


==Arguments==
==Arguments==
ULSCountryLocale( number )
ULSCountryLocale( number )


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


[[Category:The OS/2 API Project]]
[[Category:RxULS]]

Latest revision as of 14:24, 14 August 2017

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.