Regional settings in the registry

All Regional/International settings are stored in the registry as type REG_SZ value at HKEY_CURRENT_USER\Control Panel\International

iCountry    Country code is the international telephone code, except for Canada, which is 2. The default is 1.

iCurrDigits Number digits displayed after the decimal separator. The default is 2.

iCurrency   Determines how currency is displayed:
 

Value Meaning
0 $2
1 2$
2 $ 2
3 2 $

iDate          Determines how dates are displayed:
 

Value Meaning
0 mm/dd/yy
1 dd/mm/yy
2 yy/mm/dd

iDigits        The number of digits displayed after the decimal separator in numbers. The default is 2.

iLZero        Leading zeros are not displayed if 0 (default). A Leading zero is displayed if set to 1.

iMeasure    Metric is 0, U.S. is 1

iNegCurr    Determines the format for displaying negative numbers (default is 1):
 

Value Meaning
0 ($100.00)
1 -$100.00
2 $-100.00
3 $100.00-
4 (100.00$)
5 -100.00$
6 100.00-$
7 100.00$-
8 -100.00$
9 -$ 100.00
10 100.00 $-
11 $ 100.00-
12 $ -100.00
13 100.00- $
14 ($100.00)
15 (100.00 $)

iTime         Determines if the clock is 12 hours (0) or 24-hour (1).

iTLZero     The default of 0 means hours may have single digits, a 1 pads to double digits.

Locale locale ID for spoken language. The default is U.S. English which is 00000409.

s1159         AM indicator for a 12 hour clock.

s2359         PM indicator for a 12 hour clock.

sCountry   Country name. The default for U.S. English is United States.

sCurrency  Currency symbol. The default for U.S. English is $.

sDate         Date separator. The default for U.S. English is /.

sDecimal    Decimal separator symbol. The default for U.S. English is the . (period).

sLanguage  Language abbreviation: (U.S. English is ENU)
 

Value Meaning
CSY Czech
DAN Danish
DEA German (Austrian)
DES German (Swiss)
DEU German
ELL Greek
ENA English (Australia)
ENC English (Canada)
ENG English (U.K.)
ENI English (Irish)
ENU English (U.S.)
ENZ English (New Zealand)
ESM Spanish (Mexican)
ESN Modern Spanish
ESP Castilian Spanish
ETI Estonian
FIN Finnish
FRA French
FRB French (Belgian)
FRC French (Canadian)
FRS French (Swiss)
HUN Hungarian
ISL Icelandic
ITA Italian
ITS Italian (Swiss)
NLB Dutch (Belgian)
NLD Dutch
NON Norwegian (Nynorsk)
NOR Norwegian (Bokmal)
PLK Polish
PTB Portuguese (Brazilian)
PTG Portuguese
RUS Russian
SKY Slovak
SVC Swedish
SVE Swedish
TRK Turkish

sList          List separator character. The default for U.S. English is , (comma).

sLongDate Long Date format:

 

Value Meaning
dddd, MMMM dd, yyyy Wednesday, November 19, 1997
MMMM dd, yyyy November 19, 1997
dddd, dd MMMM, yyyy Wednesday, 19 November , 1997
dd MMMM, yyyy 19 November , 1997

sShortDate  Short date:
 

Value Meaning
MM/dd/yy 03/08/99
M/d/yy 3/8/99
M/d/yyyy 3/8/1999
MM/dd/yyyyy 03/08/1999
yy/MM/dd 99/03/08
dd-MM-yy 08-Mar-99

sThousand   Thousands separator. The default for U.S. English is , (comma).

sTime           Time separator. The default for U.S. English is : (colon).

sTimeFormat The default is HH:mm:ss

NOTE: See tip 3452 for Windows 2000 additions.

Windows 2000 regional settings in the registry. 08-Mar-01


 


In tip 0311, I described the regional settings in the registry for Windows NT.

Windows 2000 adds the following registry values:

Value name        Data Type    Range Default D e s c r i p t i o n

iCalendarType     REG_SZ       0-12     1     1 Gregorian (localized) 
                                              2 Gregorian (U.S.) 
                                              3 Era: Year of the Emperor (Japan) 
                                              4 Era: Year of Taiwan 
                                              5 Tangun Era (Korea) 
                                              6 Hijri (Arabic Lunar) 
                                              7 Thai 
                                              8 Hebrew (Lunar) 
                                              9 Gregorian (Middle East) French 
                                             10 Gregorian Arabic 
                                             11 Gregorian transliterated English 
                                             12 Gregorian transliterated French 

iFirstDayOfWeek   REG_SZ       0–6     6     First day of the week: 0 Monday 
                                                                    1 Tuesday 
                                                                    2 Wednesday 
                                                                    3 Thursday 
                                                                    4 Friday 
                                                                    5 Saturday 
                                                                    6 Sunday 

iFirstWeekOfYear  REG_SZ       0-2     0     First week of the year: 0 The week containing January 1.
                                                                     1 The first full week following January 1.
                                                                     2 The first week containing at least four days.

iTimePrefix       REG_SZ       0-1     0     Where does the time marker (AM or PM) appear: 0 Suffix 6:15 AM 
                                                                                           1 Prefix AM 6:15 
NumShape          REG_SZ       0-2     1     0 The shape of the digits depends on the context. 
                                               European digits follow Latin text, 
                                               Arabic-Indic digits follow Arabic text, and
                                               Thai digits follow Thai text. 
 
                                             1 Digits are displayed according to the default locale. 
                                             2 Digit shapes are determined by the sNativeDigits entry. 

sGrouping         REG_SZ               3;0   How digits in a whole number are grouped.
                                             The first number is the number of digits 
                                             immediately preceding the decimal point.
                                             Each subsequent value determines the number
                                             of digits between thousands separators. 
                                             If the last value is 0, the preceding value is repeated.

sMonDecimalSep    REG_SZ                .    The symbol used to separate the decimal values in currency.

sMonGrouping      REG_SZ               3;0   How digits are grouped to the left of the decimal in currency.
                                             The first number is the number of digits 
                                             immediately preceding the decimal point.
                                             Each subsequent value determines the number
                                             of digits between thousands separators. 
                                             If the last value is 0, the preceding value is repeated.
                                             Control Panel limits this value to 3;2;0 12,34,56,789 
                                                                                3;0 123,456,789 
                                                                                0;0 123456789 

                                             You can enter up to five groups in the registry (1;2;3;4;5).

sMonThousandSep   REG_SZ                ,    The thousands separator in currency.

sNativeDigits     REG_SZ         0123456789  The native equivalent of the ASCII 0–9.

sNegativeSign     REG_SZ                -    The symbol used to display negative numbers.

sPositiveSign     REG_SZ                     The symbol used to display positive numbers.