Programmer's Reference

Microsoft Windows

As illustrated in the diagram at the beginning of this section, each IBM Smalltalk locale name maps directly to a pair of language and sublanguage identifier constants. The following table defines the mappings from IBM Smalltalk locale definitions to language and sublanguage identifier pairs. The language and sublanguage constants are defined in the WINNT.H header file that is part of the Windows NT software development kit.

Table 55. Windows platform values and IBM smalltalk locale names

IBM Smalltalk Locale Name Platform Mapping
Language Territory Language ID Sublanguage ID
arabic arabic - -
croatian yugoCroatian - -
czech czechoslovakia LANG_CZECH SUBLANG_DEFAULT
danish denmark LANG_DANISH SUBLANG_DEFAULT
dutch belgium LANG_DUTCH SUBLANG_DUTCH_BELGIAN
dutch netherlands LANG_DUTCH SUBLANG_DUTCH
english australia LANG_ENGLISH SUBLANG_ENGLISH_AUS
english britain LANG_ENGLISH SUBLANG_ENGLISH_UK
english canada LANG_ENGLISH SUBLANG_ENGLISH_CAN
english ireland LANG_ENGLISH SUBLANG_ENGLISH_EIRE
english new zealand LANG_ENGLISH SUBLANG_ENGLISH_nz
english us LANG_ENGLISH SUBLANG_ENGLISH_US
estonian estonia - -
faeroese faeroeIsl - -
farsi iran - -
finnish finland LANG_FINNISH SUBLANG_DEFAULT
french belgium LANG_FRENCH SUBLANG_FRENCH_BELGIAN
french canada LANG_FRENCH SUBLANG_FRENCH_CAN- ADIAN
french france LANG_RENCH SUBLANG_FRENCH
french switzerland LANG_FRENCH SUBLANG_FRENCH_SWISS
german austria LANG_GERMAN SUBLANG_GERMAN_AUS- TRIAN
german germany LANG_GERMAN SUBLANG_GERMAN
german switzerland LANG_GERMAN SUBLANG_GERMAN_SWISS
greek greece LANG_GREEK SUBLANG_DEFAULT
hebrew israel - -
hindi india - -
hungarian hungary LANG_HUNGARIAN SUBLANG_DEFAULT
icelandic iceland LANG_ICELANDIC SUBLANG_DEFAULT
italian italy LANG_ITALIAN SUBLANG_ITALIAN
italian switzerland LANG_ITALIAN SUBLANG_ITALIAN_SWISS
japanese japan LANG_JAPANESE SUBLANG_DEFAULT
korean korea LANG_KOREAN SUBLANG_DEFAULT
lappish lapland - -
lettish latvia - -
lithuanian lithuania - -
maltese malta - -
norwegian norway (Bokmal) LANG_NORWEGIAN SUBLANG_NORWEGIAN_BOK- MAL
norwegian norway (Nynorsk) LANG_NORWEGIAN SUBLANG_NORWEGIAN_NY- NORSK
polish poland LANG_POLISH SUBLANG_DEFAULT
portuguese brazil LANG_PORTUGUESE SUBLANG_PORTUGUESE
portuguese portugal LANG_PORTUGUESE SUBLANG_PORTUGUESE_BRA- ZILIAN
russian russia LANG_RUSSIAN SUBLANG_DEFAULT
simpChinese china LANG_CHINESE SUBLANG_CHINESE_SIMPLI- FIED
slovak czechoslovakia LANG_SLOVAK SUBLANG_DEFAULT
spanish mexico LANG_SPANISH SUBLANG_SPANISH_MEXICAN
spanish spain (Mod) LANG_SPANISH SUBLANG_SPANISH_MODERN
spanish spain (Trad) LANG_SPANISH SUBLANG_SPANISH_TRADI- TIONAL
swedish sweden LANG_SWEDISH SUBLANG_DEFAULT
thai thailand - -
tradChinese taiwan LANG_CHINESE SUBLANG_CHINESE_TRADI- TIONAL
turkish turkey LANG_TURKISH SUBLANG_DEFAULT
urdu pakistan - -

Use of the system control panel

NLS information is drawn from the settings of the system control panel. IBM Smalltalk recognizes a given locale based upon a specific combination of country and language settings. These parameters are set through the country and language sections of the International control panel on Windows NT, and via the regional settings tab of the International control panel on Windows 95 or Windows 98.

An attempt to initialize the current locale for a particular locale will fail unless the International control panel has the country and language options set appropriately. For example, on Windows NT, if English U.S. is the desired locale, the International control panel must have the country set to United States and the Language set to English (American) before the image is started or the locale is manually reinitialized. Note that the language must be set to English (American); that the setting English (International) does not work.

Note:

Table 56. Items not provided by Windows and their default values

Class Item IBM Smalltalk default value
LCMessages noStr 'No'
yesStr 'Yes'


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]