Mercurial > cpython-lru_cache-weakref
annotate Lib/locale.py @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | a6e6a57cccc2 |
| children | 783d4044dc2d |
| rev | line source |
|---|---|
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1 """ Locale support. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
2 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
3 The module provides low-level access to the C lib's locale APIs |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
4 and adds high level number formatting APIs as well as a locale |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
5 aliasing engine to complement these. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
6 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
7 The aliasing engine includes support for many commonly used locale |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
8 names and maps them to values suitable for passing to the C lib's |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
9 setlocale() function. It also includes default encodings for all |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
10 supported locale names. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
11 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
12 """ |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
13 |
|
52632
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
14 import sys |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
15 import encodings |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
16 import encodings.aliases |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
17 import re |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
18 import operator |
|
48074
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
19 import functools |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
20 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
21 # Try importing the _locale module. |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
22 # |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
23 # If this fails, fall back on a basic 'C' locale emulation. |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
24 |
|
16206
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
25 # Yuck: LC_MESSAGES is non-standard: can't tell whether it exists before |
|
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
26 # trying the import. So __all__ is also fiddled at the end of the file. |
|
41567
86a232ea8ba4
Patch #1710352: add missing public functions to locale.__all__.
Georg Brandl <georg@python.org>
parents:
38207
diff
changeset
|
27 __all__ = ["getlocale", "getdefaultlocale", "getpreferredencoding", "Error", |
|
86a232ea8ba4
Patch #1710352: add missing public functions to locale.__all__.
Georg Brandl <georg@python.org>
parents:
38207
diff
changeset
|
28 "setlocale", "resetlocale", "localeconv", "strcoll", "strxfrm", |
|
86a232ea8ba4
Patch #1710352: add missing public functions to locale.__all__.
Georg Brandl <georg@python.org>
parents:
38207
diff
changeset
|
29 "str", "atof", "atoi", "format", "format_string", "currency", |
|
86a232ea8ba4
Patch #1710352: add missing public functions to locale.__all__.
Georg Brandl <georg@python.org>
parents:
38207
diff
changeset
|
30 "normalize", "LC_CTYPE", "LC_COLLATE", "LC_TIME", "LC_MONETARY", |
|
86a232ea8ba4
Patch #1710352: add missing public functions to locale.__all__.
Georg Brandl <georg@python.org>
parents:
38207
diff
changeset
|
31 "LC_NUMERIC", "LC_ALL", "CHAR_MAX"] |
|
16198
32755b456369
a few more modules get __all__
Skip Montanaro <skip@pobox.com>
parents:
16082
diff
changeset
|
32 |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
33 try: |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
34 |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
35 from _locale import * |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
36 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
37 except ImportError: |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
38 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
39 # Locale emulation |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
40 |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
41 CHAR_MAX = 127 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
42 LC_ALL = 6 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
43 LC_COLLATE = 3 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
44 LC_CTYPE = 0 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
45 LC_MESSAGES = 5 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
46 LC_MONETARY = 4 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
47 LC_NUMERIC = 1 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
48 LC_TIME = 2 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
49 Error = ValueError |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
50 |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
51 def localeconv(): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
52 """ localeconv() -> dict. |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
53 Returns numeric and monetary locale-specific parameters. |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
54 """ |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
55 # 'C' locale default values |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
56 return {'grouping': [127], |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
57 'currency_symbol': '', |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
58 'n_sign_posn': 127, |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
59 'p_cs_precedes': 127, |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
60 'n_cs_precedes': 127, |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
61 'mon_grouping': [], |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
62 'n_sep_by_space': 127, |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
63 'decimal_point': '.', |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
64 'negative_sign': '', |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
65 'positive_sign': '', |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
66 'p_sep_by_space': 127, |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
67 'int_curr_symbol': '', |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
68 'p_sign_posn': 127, |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
69 'thousands_sep': '', |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
70 'mon_thousands_sep': '', |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
71 'frac_digits': 127, |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
72 'mon_decimal_point': '', |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
73 'int_frac_digits': 127} |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
74 |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
75 def setlocale(category, value=None): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
76 """ setlocale(integer,string=None) -> string. |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
77 Activates/queries locale processing. |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
78 """ |
|
28448
0a3ce306b11a
Support '' as the argument for the setlocale emulation. Fixes #678259.
Martin v. Löwis <martin@v.loewis.de>
parents:
26126
diff
changeset
|
79 if value not in (None, '', 'C'): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
80 raise Error, '_locale emulation only supports "C" locale' |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
81 return 'C' |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
82 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
83 def strcoll(a,b): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
84 """ strcoll(string,string) -> int. |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
85 Compares two strings according to the locale. |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
86 """ |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
87 return cmp(a,b) |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
88 |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
89 def strxfrm(s): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
90 """ strxfrm(string) -> string. |
|
12896
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
91 Returns a string that behaves for cmp locale-aware. |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
92 """ |
|
adef97f3fea0
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
12872
diff
changeset
|
93 return s |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
94 |
|
48074
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
95 |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
96 _localeconv = localeconv |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
97 |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
98 # With this dict, you can override some items of localeconv's return value. |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
99 # This is useful for testing purposes. |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
100 _override_localeconv = {} |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
101 |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
102 @functools.wraps(_localeconv) |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
103 def localeconv(): |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
104 d = _localeconv() |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
105 if _override_localeconv: |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
106 d.update(_override_localeconv) |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
107 return d |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
108 |
|
be07c3083cea
convert test_locale to unittest, and add a mechanism to override localconv() results for further testing (#1864, #1222)
Antoine Pitrou <solipsis@pitrou.net>
parents:
47399
diff
changeset
|
109 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
110 ### Number formatting APIs |
|
11708
4a23cc49e2b0
Actually, the previous batch's comment should have been different;
Guido van Rossum <guido@python.org>
parents:
7755
diff
changeset
|
111 |
|
6607
2f459eb23a0e
Add Martin von Loewis as the author of this module.
Guido van Rossum <guido@python.org>
parents:
6606
diff
changeset
|
112 # Author: Martin von Loewis |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
113 # improved by Georg Brandl |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
114 |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
115 # Iterate over grouping intervals |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
116 def _grouping_intervals(grouping): |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
117 for interval in grouping: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
118 # if grouping is -1, we are done |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
119 if interval == CHAR_MAX: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
120 return |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
121 # 0: re-use last group ad infinitum |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
122 if interval == 0: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
123 while True: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
124 yield last_interval |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
125 yield interval |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
126 last_interval = interval |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
127 |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
128 #perform the grouping from right to left |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
129 def _group(s, monetary=False): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
130 conv = localeconv() |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
131 thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
132 grouping = conv[monetary and 'mon_grouping' or 'grouping'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
133 if not grouping: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
134 return (s, 0) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
135 result = "" |
|
17468
8aa4de207ae3
Patch #415777: new grouping strategy.
Martin v. Löwis <martin@v.loewis.de>
parents:
17202
diff
changeset
|
136 seps = 0 |
|
8aa4de207ae3
Patch #415777: new grouping strategy.
Martin v. Löwis <martin@v.loewis.de>
parents:
17202
diff
changeset
|
137 if s[-1] == ' ': |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
138 stripped = s.rstrip() |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
139 right_spaces = s[len(stripped):] |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
140 s = stripped |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
141 else: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
142 right_spaces = '' |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
143 left_spaces = '' |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
144 groups = [] |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
145 for interval in _grouping_intervals(grouping): |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
146 if not s or s[-1] not in "0123456789": |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
147 # only non-digit characters remain (sign, spaces) |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
148 left_spaces = s |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
149 s = '' |
|
7755
fb4b4d069cc7
Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents:
6607
diff
changeset
|
150 break |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
151 groups.append(s[-interval:]) |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
152 s = s[:-interval] |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
153 if s: |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
154 groups.append(s) |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
155 groups.reverse() |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
156 return ( |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
157 left_spaces + thousands_sep.join(groups) + right_spaces, |
|
52214
7b5360fa3e19
Merged revisions 70457 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
52155
diff
changeset
|
158 len(thousands_sep) * (len(groups) - 1) |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
159 ) |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
160 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
161 # Strip a given amount of excess padding from the given string |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
162 def _strip_padding(s, amount): |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
163 lpos = 0 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
164 while amount and s[lpos] == ' ': |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
165 lpos += 1 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
166 amount -= 1 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
167 rpos = len(s) - 1 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
168 while amount and s[rpos] == ' ': |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
169 rpos -= 1 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
170 amount -= 1 |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
171 return s[lpos:rpos+1] |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
172 |
|
52632
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
173 _percent_re = re.compile(r'%(?:\((?P<key>.*?)\))?' |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
174 r'(?P<modifiers>[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
175 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
176 def format(percent, value, grouping=False, monetary=False, *additional): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
177 """Returns the locale-aware substitution of a %? specifier |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
178 (percent). |
|
38207
b73f24e21b0a
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
38206
diff
changeset
|
179 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
180 additional is for format strings which contain one or more |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
181 '*' modifiers.""" |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
182 # this is only for one-percent-specifier strings and this should be checked |
|
52632
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
183 match = _percent_re.match(percent) |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
184 if not match or len(match.group())!= len(percent): |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
185 raise ValueError(("format() must be given exactly one %%char " |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
186 "format specifier, %s not valid") % repr(percent)) |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
187 return _format(percent, value, grouping, monetary, *additional) |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
188 |
|
513d96bf0d70
Fix issue 2522. locale.format now checks that it is passed
R. David Murray <rdmurray@bitdance.com>
parents:
52214
diff
changeset
|
189 def _format(percent, value, grouping=False, monetary=False, *additional): |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
190 if additional: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
191 formatted = percent % ((value,) + additional) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
192 else: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
193 formatted = percent % value |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
194 # floats and decimal ints need special action! |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
195 if percent[-1] in 'eEfFgG': |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
196 seps = 0 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
197 parts = formatted.split('.') |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
198 if grouping: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
199 parts[0], seps = _group(parts[0], monetary=monetary) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
200 decimal_point = localeconv()[monetary and 'mon_decimal_point' |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
201 or 'decimal_point'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
202 formatted = decimal_point.join(parts) |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
203 if seps: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
204 formatted = _strip_padding(formatted, seps) |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
205 elif percent[-1] in 'diu': |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
206 seps = 0 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
207 if grouping: |
|
52155
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
208 formatted, seps = _group(formatted, monetary=monetary) |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
209 if seps: |
|
31659f937613
Merged revisions 70356 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
48074
diff
changeset
|
210 formatted = _strip_padding(formatted, seps) |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
211 return formatted |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
212 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
213 def format_string(f, val, grouping=False): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
214 """Formats a string in the same way that the % formatting would use, |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
215 but takes the current locale into account. |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
216 Grouping is applied if the third parameter is true.""" |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
217 percents = list(_percent_re.finditer(f)) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
218 new_f = _percent_re.sub('%s', f) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
219 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
220 if isinstance(val, tuple): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
221 new_val = list(val) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
222 i = 0 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
223 for perc in percents: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
224 starcount = perc.group('modifiers').count('*') |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
225 new_val[i] = format(perc.group(), new_val[i], grouping, False, *new_val[i+1:i+1+starcount]) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
226 del new_val[i+1:i+1+starcount] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
227 i += (1 + starcount) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
228 val = tuple(new_val) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
229 elif operator.isMappingType(val): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
230 for perc in percents: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
231 key = perc.group("key") |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
232 val[key] = format(perc.group(), val[key], grouping) |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
233 else: |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
234 # val is a single value |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
235 val = format(percents[0].group(), val, grouping) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
236 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
237 return new_f % val |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
238 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
239 def currency(val, symbol=True, grouping=False, international=False): |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
240 """Formats val according to the currency settings |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
241 in the current locale.""" |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
242 conv = localeconv() |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
243 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
244 # check for illegal values |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
245 digits = conv[international and 'int_frac_digits' or 'frac_digits'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
246 if digits == 127: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
247 raise ValueError("Currency formatting is not possible using " |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
248 "the 'C' locale.") |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
249 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
250 s = format('%%.%if' % digits, abs(val), grouping, monetary=True) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
251 # '<' and '>' are markers if the sign must be inserted between symbol and value |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
252 s = '<' + s + '>' |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
253 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
254 if symbol: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
255 smb = conv[international and 'int_curr_symbol' or 'currency_symbol'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
256 precedes = conv[val<0 and 'n_cs_precedes' or 'p_cs_precedes'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
257 separated = conv[val<0 and 'n_sep_by_space' or 'p_sep_by_space'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
258 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
259 if precedes: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
260 s = smb + (separated and ' ' or '') + s |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
261 else: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
262 s = s + (separated and ' ' or '') + smb |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
263 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
264 sign_pos = conv[val<0 and 'n_sign_posn' or 'p_sign_posn'] |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
265 sign = conv[val<0 and 'negative_sign' or 'positive_sign'] |
|
17468
8aa4de207ae3
Patch #415777: new grouping strategy.
Martin v. Löwis <martin@v.loewis.de>
parents:
17202
diff
changeset
|
266 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
267 if sign_pos == 0: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
268 s = '(' + s + ')' |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
269 elif sign_pos == 1: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
270 s = sign + s |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
271 elif sign_pos == 2: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
272 s = s + sign |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
273 elif sign_pos == 3: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
274 s = s.replace('<', sign) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
275 elif sign_pos == 4: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
276 s = s.replace('>', sign) |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
277 else: |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
278 # the default if nothing specified; |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
279 # this should be the most fitting sign position |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
280 s = sign + s |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
281 |
|
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
282 return s.replace('<', '').replace('>', '') |
|
16082
e2b2b043ab4e
In format(), consider sign only after grouping.
Martin v. Löwis <martin@v.loewis.de>
parents:
13620
diff
changeset
|
283 |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
284 def str(val): |
|
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
285 """Convert float to integer, taking the locale into account.""" |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
286 return format("%.12g", val) |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
287 |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
288 def atof(string, func=float): |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
289 "Parses a string as a float according to the locale settings." |
|
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
290 #First, get rid of the grouping |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
291 ts = localeconv()['thousands_sep'] |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
292 if ts: |
|
31893
241089e437e0
atof: correct parameter name
Skip Montanaro <skip@pobox.com>
parents:
31794
diff
changeset
|
293 string = string.replace(ts, '') |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
294 #next, replace the decimal point with a dot |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
295 dd = localeconv()['decimal_point'] |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
296 if dd: |
|
31893
241089e437e0
atof: correct parameter name
Skip Montanaro <skip@pobox.com>
parents:
31794
diff
changeset
|
297 string = string.replace(dd, '.') |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
298 #finally, parse the string |
|
31893
241089e437e0
atof: correct parameter name
Skip Montanaro <skip@pobox.com>
parents:
31794
diff
changeset
|
299 return func(string) |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
300 |
|
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
301 def atoi(str): |
|
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
302 "Converts a string to an integer according to the locale settings." |
|
16513
5643e37b99ae
String method conversion.
Eric S. Raymond <esr@thyrsus.com>
parents:
16206
diff
changeset
|
303 return atof(str, int) |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
304 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
305 def _test(): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
306 setlocale(LC_ALL, "") |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
307 #do grouping |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
308 s1 = format("%d", 123456789,1) |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
309 print s1, "is", atoi(s1) |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
310 #standard formatting |
|
38206
07abc6284899
Patch #1180296: improve locale string formatting functions
Georg Brandl <georg@python.org>
parents:
36351
diff
changeset
|
311 s1 = str(3.14) |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
312 print s1, "is", atof(s1) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
313 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
314 ### Locale name aliasing engine |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
315 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
316 # Author: Marc-Andre Lemburg, mal@lemburg.com |
|
25865
d17ffa0522b7
point people to the Python bug tracker, rather than to a mail
Fredrik Lundh <fredrik@pythonware.com>
parents:
22564
diff
changeset
|
317 # Various tweaks by Fredrik Lundh <fredrik@pythonware.com> |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
318 |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
319 # store away the low-level version of setlocale (it's |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
320 # overridden below) |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
321 _setlocale = setlocale |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
322 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
323 def normalize(localename): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
324 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
325 """ Returns a normalized locale code for the given locale |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
326 name. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
327 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
328 The returned locale code is formatted for use with |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
329 setlocale(). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
330 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
331 If normalization fails, the original name is returned |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
332 unchanged. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
333 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
334 If the given encoding is not known, the function defaults to |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
335 the default encoding for the locale code just like setlocale() |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
336 does. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
337 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
338 """ |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
339 # Normalize the locale name and extract the encoding |
|
16513
5643e37b99ae
String method conversion.
Eric S. Raymond <esr@thyrsus.com>
parents:
16206
diff
changeset
|
340 fullname = localename.lower() |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
341 if ':' in fullname: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
342 # ':' is sometimes used as encoding delimiter. |
|
16513
5643e37b99ae
String method conversion.
Eric S. Raymond <esr@thyrsus.com>
parents:
16206
diff
changeset
|
343 fullname = fullname.replace(':', '.') |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
344 if '.' in fullname: |
|
16513
5643e37b99ae
String method conversion.
Eric S. Raymond <esr@thyrsus.com>
parents:
16206
diff
changeset
|
345 langname, encoding = fullname.split('.')[:2] |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
346 fullname = langname + '.' + encoding |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
347 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
348 langname = fullname |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
349 encoding = '' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
350 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
351 # First lookup: fullname (possibly with encoding) |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
352 norm_encoding = encoding.replace('-', '') |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
353 norm_encoding = norm_encoding.replace('_', '') |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
354 lookup_name = langname + '.' + encoding |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
355 code = locale_alias.get(lookup_name, None) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
356 if code is not None: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
357 return code |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
358 #print 'first lookup failed' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
359 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
360 # Second try: langname (without encoding) |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
361 code = locale_alias.get(langname, None) |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
362 if code is not None: |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
363 #print 'langname lookup succeeded' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
364 if '.' in code: |
|
16513
5643e37b99ae
String method conversion.
Eric S. Raymond <esr@thyrsus.com>
parents:
16206
diff
changeset
|
365 langname, defenc = code.split('.') |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
366 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
367 langname = code |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
368 defenc = '' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
369 if encoding: |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
370 # Convert the encoding to a C lib compatible encoding string |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
371 norm_encoding = encodings.normalize_encoding(encoding) |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
372 #print 'norm encoding: %r' % norm_encoding |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
373 norm_encoding = encodings.aliases.aliases.get(norm_encoding, |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
374 norm_encoding) |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
375 #print 'aliased encoding: %r' % norm_encoding |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
376 encoding = locale_encoding_alias.get(norm_encoding, |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
377 norm_encoding) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
378 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
379 encoding = defenc |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
380 #print 'found encoding %r' % encoding |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
381 if encoding: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
382 return langname + '.' + encoding |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
383 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
384 return langname |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
385 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
386 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
387 return localename |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
388 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
389 def _parse_localename(localename): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
390 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
391 """ Parses the locale code for localename and returns the |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
392 result as tuple (language code, encoding). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
393 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
394 The localename is normalized and passed through the locale |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
395 alias engine. A ValueError is raised in case the locale name |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
396 cannot be parsed. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
397 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
398 The language code corresponds to RFC 1766. code and encoding |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
399 can be None in case the values cannot be determined or are |
|
13050
a195962e389c
typos fixed by Rob Hooft
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
12896
diff
changeset
|
400 unknown to this implementation. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
401 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
402 """ |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
403 code = normalize(localename) |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
404 if '@' in code: |
|
26006
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
405 # Deal with locale modifiers |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
406 code, modifier = code.split('@') |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
407 if modifier == 'euro' and '.' not in code: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
408 # Assume Latin-9 for @euro locales. This is bogus, |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
409 # since some systems may use other encodings for these |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
410 # locales. Also, we ignore other modifiers. |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
411 return code, 'iso-8859-15' |
|
26126
98f3fd1ed42f
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
26031
diff
changeset
|
412 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
413 if '.' in code: |
|
34297
56e610327b81
SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
Raymond Hettinger <python@rcn.com>
parents:
34163
diff
changeset
|
414 return tuple(code.split('.')[:2]) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
415 elif code == 'C': |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
416 return None, None |
|
19215
f513c6c7d167
Remove some dead code (PyChecker)
Andrew M. Kuchling <amk@amk.ca>
parents:
17545
diff
changeset
|
417 raise ValueError, 'unknown locale: %s' % localename |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
418 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
419 def _build_localename(localetuple): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
420 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
421 """ Builds a locale code from the given tuple (language code, |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
422 encoding). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
423 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
424 No aliasing or normalizing takes place. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
425 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
426 """ |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
427 language, encoding = localetuple |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
428 if language is None: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
429 language = 'C' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
430 if encoding is None: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
431 return language |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
432 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
433 return language + '.' + encoding |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
434 |
|
35600
873a1b2efdc7
- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
Matthias Klose <doko@ubuntu.com>
parents:
34297
diff
changeset
|
435 def getdefaultlocale(envvars=('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE')): |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
436 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
437 """ Tries to determine the default locale settings and returns |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
438 them as tuple (language code, encoding). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
439 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
440 According to POSIX, a program which has not called |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
441 setlocale(LC_ALL, "") runs using the portable 'C' locale. |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
442 Calling setlocale(LC_ALL, "") lets it use the default locale as |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
443 defined by the LANG variable. Since we don't want to interfere |
|
13620
5b727ab37092
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
Thomas Wouters <thomas@python.org>
parents:
13523
diff
changeset
|
444 with the current locale setting we thus emulate the behavior |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
445 in the way described above. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
446 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
447 To maintain compatibility with other platforms, not only the |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
448 LANG variable is tested, but a list of variables given as |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
449 envvars parameter. The first found to be defined will be |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
450 used. envvars defaults to the search path used in GNU gettext; |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
451 it must always contain the variable name 'LANG'. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
452 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
453 Except for the code 'C', the language code corresponds to RFC |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
454 1766. code and encoding can be None in case the values cannot |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
455 be determined. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
456 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
457 """ |
|
13485
e4ec77879ddd
- repaired locale.py for non-windows platforms. the try/except
Fredrik Lundh <fredrik@pythonware.com>
parents:
13477
diff
changeset
|
458 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
459 try: |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
460 # check if it's supported by the _locale module |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
461 import _locale |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
462 code, encoding = _locale._getdefaultlocale() |
|
13485
e4ec77879ddd
- repaired locale.py for non-windows platforms. the try/except
Fredrik Lundh <fredrik@pythonware.com>
parents:
13477
diff
changeset
|
463 except (ImportError, AttributeError): |
|
e4ec77879ddd
- repaired locale.py for non-windows platforms. the try/except
Fredrik Lundh <fredrik@pythonware.com>
parents:
13477
diff
changeset
|
464 pass |
|
e4ec77879ddd
- repaired locale.py for non-windows platforms. the try/except
Fredrik Lundh <fredrik@pythonware.com>
parents:
13477
diff
changeset
|
465 else: |
|
13523
02474df546f6
-- removed get_default compatibility kludge
Fredrik Lundh <fredrik@pythonware.com>
parents:
13485
diff
changeset
|
466 # make sure the code/encoding values are valid |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
467 if sys.platform == "win32" and code and code[:2] == "0x": |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
468 # map windows language identifier to language name |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
469 code = windows_locale.get(int(code, 0)) |
|
13523
02474df546f6
-- removed get_default compatibility kludge
Fredrik Lundh <fredrik@pythonware.com>
parents:
13485
diff
changeset
|
470 # ...add other platform-specific processing here, if |
|
02474df546f6
-- removed get_default compatibility kludge
Fredrik Lundh <fredrik@pythonware.com>
parents:
13485
diff
changeset
|
471 # necessary... |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
472 return code, encoding |
|
13485
e4ec77879ddd
- repaired locale.py for non-windows platforms. the try/except
Fredrik Lundh <fredrik@pythonware.com>
parents:
13477
diff
changeset
|
473 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
474 # fall back on POSIX behaviour |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
475 import os |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
476 lookup = os.environ.get |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
477 for variable in envvars: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
478 localename = lookup(variable,None) |
|
32818
bf6a2069080c
Patch #962487: Don't crash for empty locale names.
Martin v. Löwis <martin@v.loewis.de>
parents:
31893
diff
changeset
|
479 if localename: |
|
35600
873a1b2efdc7
- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
Matthias Klose <doko@ubuntu.com>
parents:
34297
diff
changeset
|
480 if variable == 'LANGUAGE': |
|
873a1b2efdc7
- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
Matthias Klose <doko@ubuntu.com>
parents:
34297
diff
changeset
|
481 localename = localename.split(':')[0] |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
482 break |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
483 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
484 localename = 'C' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
485 return _parse_localename(localename) |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
486 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
487 |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
488 def getlocale(category=LC_CTYPE): |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
489 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
490 """ Returns the current setting for the given locale category as |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
491 tuple (language code, encoding). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
492 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
493 category may be one of the LC_* value except LC_ALL. It |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
494 defaults to LC_CTYPE. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
495 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
496 Except for the code 'C', the language code corresponds to RFC |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
497 1766. code and encoding can be None in case the values cannot |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
498 be determined. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
499 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
500 """ |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
501 localename = _setlocale(category) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
502 if category == LC_ALL and ';' in localename: |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
503 raise TypeError, 'category LC_ALL is not supported' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
504 return _parse_localename(localename) |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
505 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
506 def setlocale(category, locale=None): |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
507 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
508 """ Set the locale for the given category. The locale can be |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
509 a string, a locale tuple (language code, encoding), or None. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
510 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
511 Locale tuples are converted to strings the locale aliasing |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
512 engine. Locale strings are passed directly to the C lib. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
513 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
514 category may be given as one of the LC_* values. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
515 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
516 """ |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
517 if locale and type(locale) is not type(""): |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
518 # convert to string |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
519 locale = normalize(_build_localename(locale)) |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
520 return _setlocale(category, locale) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
521 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
522 def resetlocale(category=LC_ALL): |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
523 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
524 """ Sets the locale for category to the default setting. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
525 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
526 The default setting is determined by calling |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
527 getdefaultlocale(). category defaults to LC_ALL. |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
528 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
529 """ |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
530 _setlocale(category, _build_localename(getdefaultlocale())) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
531 |
|
26006
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
532 if sys.platform in ('win32', 'darwin', 'mac'): |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
533 # On Win32, this will return the ANSI code page |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
534 # On the Mac, it should return the system encoding; |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
535 # it might return "ascii" instead |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
536 def getpreferredencoding(do_setlocale = True): |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
537 """Return the charset that the user is likely using.""" |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
538 import _locale |
|
26031
f5439f8133f8
This stopped working on Windows, due to a reference to the non-existent
Tim Peters <tim.peters@gmail.com>
parents:
26006
diff
changeset
|
539 return _locale._getdefaultlocale()[1] |
|
26006
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
540 else: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
541 # On Unix, if CODESET is available, use that. |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
542 try: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
543 CODESET |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
544 except NameError: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
545 # Fall back to parsing environment variables :-( |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
546 def getpreferredencoding(do_setlocale = True): |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
547 """Return the charset that the user is likely using, |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
548 by looking at environment variables.""" |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
549 return getdefaultlocale()[1] |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
550 else: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
551 def getpreferredencoding(do_setlocale = True): |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
552 """Return the charset that the user is likely using, |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
553 according to the system configuration.""" |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
554 if do_setlocale: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
555 oldloc = setlocale(LC_CTYPE) |
|
53828
eb3afbd6aaa9
Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
52632
diff
changeset
|
556 try: |
|
eb3afbd6aaa9
Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
52632
diff
changeset
|
557 setlocale(LC_CTYPE, "") |
|
53850
9c654040400d
Be more explicit about the error we are catching.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53828
diff
changeset
|
558 except Error: |
|
53828
eb3afbd6aaa9
Wrap getpreferredencoding()'s use of setlocale in a try/except to prevent
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
52632
diff
changeset
|
559 pass |
|
26006
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
560 result = nl_langinfo(CODESET) |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
561 setlocale(LC_CTYPE, oldloc) |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
562 return result |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
563 else: |
|
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
564 return nl_langinfo(CODESET) |
|
26126
98f3fd1ed42f
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
26031
diff
changeset
|
565 |
|
26006
3d627e3d9561
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
Martin v. Löwis <martin@v.loewis.de>
parents:
25865
diff
changeset
|
566 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
567 ### Database |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
568 # |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
569 # The following data was extracted from the locale.alias file which |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
570 # comes with X11 and then hand edited removing the explicit encoding |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
571 # definitions and adding some more aliases. The file is usually |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
572 # available as /usr/lib/X11/locale/locale.alias. |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
573 # |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
574 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
575 # |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
576 # The local_encoding_alias table maps lowercase encoding alias names |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
577 # to C locale encoding names (case-sensitive). Note that normalize() |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
578 # first looks up the encoding in the encodings.aliases dictionary and |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
579 # then applies this mapping to find the correct C lib name for the |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
580 # encoding. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
581 # |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
582 locale_encoding_alias = { |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
583 |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
584 # Mappings for non-standard encoding names used in locale names |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
585 '437': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
586 'c': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
587 'en': 'ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
588 'jis': 'JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
589 'jis7': 'JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
590 'ajec': 'eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
591 |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
592 # Mappings from Python codec names to C lib encoding names |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
593 'ascii': 'ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
594 'latin_1': 'ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
595 'iso8859_1': 'ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
596 'iso8859_10': 'ISO8859-10', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
597 'iso8859_11': 'ISO8859-11', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
598 'iso8859_13': 'ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
599 'iso8859_14': 'ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
600 'iso8859_15': 'ISO8859-15', |
|
53911
9c7bcb7e748c
Add ISO-8859-16.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53850
diff
changeset
|
601 'iso8859_16': 'ISO8859-16', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
602 'iso8859_2': 'ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
603 'iso8859_3': 'ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
604 'iso8859_4': 'ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
605 'iso8859_5': 'ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
606 'iso8859_6': 'ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
607 'iso8859_7': 'ISO8859-7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
608 'iso8859_8': 'ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
609 'iso8859_9': 'ISO8859-9', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
610 'iso2022_jp': 'JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
611 'shift_jis': 'SJIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
612 'tactis': 'TACTIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
613 'euc_jp': 'eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
614 'euc_kr': 'eucKR', |
|
34163
cb54f1153b93
Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib
Marc-André Lemburg <mal@egenix.com>
parents:
34136
diff
changeset
|
615 'utf_8': 'UTF8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
616 'koi8_r': 'KOI8-R', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
617 'koi8_u': 'KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
618 # XXX This list is still incomplete. If you know more |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
619 # mappings, please file a bug report. Thanks. |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
620 } |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
621 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
622 # |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
623 # The locale_alias table maps lowercase alias names to C locale names |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
624 # (case-sensitive). Encodings are always separated from the locale |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
625 # name using a dot ('.'); they should only be given in case the |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
626 # language name is needed to interpret the given encoding alias |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
627 # correctly (CJK codes often have this need). |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
628 # |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
629 # Note that the normalize() function which uses this tables |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
630 # removes '_' and '-' characters from the encoding part of the |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
631 # locale name before doing the lookup. This saves a lot of |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
632 # space in the table. |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
633 # |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
634 # MAL 2004-12-10: |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
635 # Updated alias mapping to most recent locale.alias file |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
636 # from X.org distribution using makelocalealias.py. |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
637 # |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
638 # These are the differences compared to the old mapping (Python 2.4 |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
639 # and older): |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
640 # |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
641 # updated 'bg' -> 'bg_BG.ISO8859-5' to 'bg_BG.CP1251' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
642 # updated 'bg_bg' -> 'bg_BG.ISO8859-5' to 'bg_BG.CP1251' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
643 # updated 'bulgarian' -> 'bg_BG.ISO8859-5' to 'bg_BG.CP1251' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
644 # updated 'cz' -> 'cz_CZ.ISO8859-2' to 'cs_CZ.ISO8859-2' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
645 # updated 'cz_cz' -> 'cz_CZ.ISO8859-2' to 'cs_CZ.ISO8859-2' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
646 # updated 'czech' -> 'cs_CS.ISO8859-2' to 'cs_CZ.ISO8859-2' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
647 # updated 'dutch' -> 'nl_BE.ISO8859-1' to 'nl_NL.ISO8859-1' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
648 # updated 'et' -> 'et_EE.ISO8859-4' to 'et_EE.ISO8859-15' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
649 # updated 'et_ee' -> 'et_EE.ISO8859-4' to 'et_EE.ISO8859-15' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
650 # updated 'fi' -> 'fi_FI.ISO8859-1' to 'fi_FI.ISO8859-15' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
651 # updated 'fi_fi' -> 'fi_FI.ISO8859-1' to 'fi_FI.ISO8859-15' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
652 # updated 'iw' -> 'iw_IL.ISO8859-8' to 'he_IL.ISO8859-8' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
653 # updated 'iw_il' -> 'iw_IL.ISO8859-8' to 'he_IL.ISO8859-8' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
654 # updated 'japanese' -> 'ja_JP.SJIS' to 'ja_JP.eucJP' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
655 # updated 'lt' -> 'lt_LT.ISO8859-4' to 'lt_LT.ISO8859-13' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
656 # updated 'lv' -> 'lv_LV.ISO8859-4' to 'lv_LV.ISO8859-13' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
657 # updated 'sl' -> 'sl_CS.ISO8859-2' to 'sl_SI.ISO8859-2' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
658 # updated 'slovene' -> 'sl_CS.ISO8859-2' to 'sl_SI.ISO8859-2' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
659 # updated 'th_th' -> 'th_TH.TACTIS' to 'th_TH.ISO8859-11' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
660 # updated 'zh_cn' -> 'zh_CN.eucCN' to 'zh_CN.gb2312' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
661 # updated 'zh_cn.big5' -> 'zh_TW.eucTW' to 'zh_TW.big5' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
662 # updated 'zh_tw' -> 'zh_TW.eucTW' to 'zh_TW.big5' |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
663 # |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
664 # MAL 2008-05-30: |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
665 # Updated alias mapping to most recent locale.alias file |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
666 # from X.org distribution using makelocalealias.py. |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
667 # |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
668 # These are the differences compared to the old mapping (Python 2.5 |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
669 # and older): |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
670 # |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
671 # updated 'cs_cs.iso88592' -> 'cs_CZ.ISO8859-2' to 'cs_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
672 # updated 'serbocroatian' -> 'sh_YU.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
673 # updated 'sh' -> 'sh_YU.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
674 # updated 'sh_hr.iso88592' -> 'sh_HR.ISO8859-2' to 'hr_HR.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
675 # updated 'sh_sp' -> 'sh_YU.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
676 # updated 'sh_yu' -> 'sh_YU.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
677 # updated 'sp' -> 'sp_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
678 # updated 'sp_yu' -> 'sp_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
679 # updated 'sr' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
680 # updated 'sr@cyrillic' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
681 # updated 'sr_sp' -> 'sr_SP.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
682 # updated 'sr_yu' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
683 # updated 'sr_yu.cp1251@cyrillic' -> 'sr_YU.CP1251' to 'sr_CS.CP1251' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
684 # updated 'sr_yu.iso88592' -> 'sr_YU.ISO8859-2' to 'sr_CS.ISO8859-2' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
685 # updated 'sr_yu.iso88595' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
686 # updated 'sr_yu.iso88595@cyrillic' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
687 # updated 'sr_yu.microsoftcp1251@cyrillic' -> 'sr_YU.CP1251' to 'sr_CS.CP1251' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
688 # updated 'sr_yu.utf8@cyrillic' -> 'sr_YU.UTF-8' to 'sr_CS.UTF-8' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
689 # updated 'sr_yu@cyrillic' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5' |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
690 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
691 locale_alias = { |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
692 'a3': 'a3_AZ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
693 'a3_az': 'a3_AZ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
694 'a3_az.koi8c': 'a3_AZ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
695 'af': 'af_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
696 'af_za': 'af_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
697 'af_za.iso88591': 'af_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
698 'am': 'am_ET.UTF-8', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
699 'am_et': 'am_ET.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
700 'american': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
701 'american.iso88591': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
702 'ar': 'ar_AA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
703 'ar_aa': 'ar_AA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
704 'ar_aa.iso88596': 'ar_AA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
705 'ar_ae': 'ar_AE.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
706 'ar_ae.iso88596': 'ar_AE.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
707 'ar_bh': 'ar_BH.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
708 'ar_bh.iso88596': 'ar_BH.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
709 'ar_dz': 'ar_DZ.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
710 'ar_dz.iso88596': 'ar_DZ.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
711 'ar_eg': 'ar_EG.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
712 'ar_eg.iso88596': 'ar_EG.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
713 'ar_iq': 'ar_IQ.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
714 'ar_iq.iso88596': 'ar_IQ.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
715 'ar_jo': 'ar_JO.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
716 'ar_jo.iso88596': 'ar_JO.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
717 'ar_kw': 'ar_KW.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
718 'ar_kw.iso88596': 'ar_KW.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
719 'ar_lb': 'ar_LB.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
720 'ar_lb.iso88596': 'ar_LB.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
721 'ar_ly': 'ar_LY.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
722 'ar_ly.iso88596': 'ar_LY.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
723 'ar_ma': 'ar_MA.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
724 'ar_ma.iso88596': 'ar_MA.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
725 'ar_om': 'ar_OM.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
726 'ar_om.iso88596': 'ar_OM.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
727 'ar_qa': 'ar_QA.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
728 'ar_qa.iso88596': 'ar_QA.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
729 'ar_sa': 'ar_SA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
730 'ar_sa.iso88596': 'ar_SA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
731 'ar_sd': 'ar_SD.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
732 'ar_sd.iso88596': 'ar_SD.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
733 'ar_sy': 'ar_SY.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
734 'ar_sy.iso88596': 'ar_SY.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
735 'ar_tn': 'ar_TN.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
736 'ar_tn.iso88596': 'ar_TN.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
737 'ar_ye': 'ar_YE.ISO8859-6', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
738 'ar_ye.iso88596': 'ar_YE.ISO8859-6', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
739 'arabic': 'ar_AA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
740 'arabic.iso88596': 'ar_AA.ISO8859-6', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
741 'az': 'az_AZ.ISO8859-9E', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
742 'az_az': 'az_AZ.ISO8859-9E', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
743 'az_az.iso88599e': 'az_AZ.ISO8859-9E', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
744 'be': 'be_BY.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
745 'be_by': 'be_BY.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
746 'be_by.cp1251': 'be_BY.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
747 'be_by.microsoftcp1251': 'be_BY.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
748 'bg': 'bg_BG.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
749 'bg_bg': 'bg_BG.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
750 'bg_bg.cp1251': 'bg_BG.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
751 'bg_bg.iso88595': 'bg_BG.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
752 'bg_bg.koi8r': 'bg_BG.KOI8-R', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
753 'bg_bg.microsoftcp1251': 'bg_BG.CP1251', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
754 'bn_in': 'bn_IN.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
755 'bokmal': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
756 'bokm\xe5l': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
757 'br': 'br_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
758 'br_fr': 'br_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
759 'br_fr.iso88591': 'br_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
760 'br_fr.iso885914': 'br_FR.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
761 'br_fr.iso885915': 'br_FR.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
762 'br_fr.iso885915@euro': 'br_FR.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
763 'br_fr.utf8@euro': 'br_FR.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
764 'br_fr@euro': 'br_FR.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
765 'bs': 'bs_BA.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
766 'bs_ba': 'bs_BA.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
767 'bs_ba.iso88592': 'bs_BA.ISO8859-2', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
768 'bulgarian': 'bg_BG.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
769 'c': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
770 'c-french': 'fr_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
771 'c-french.iso88591': 'fr_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
772 'c.en': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
773 'c.iso88591': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
774 'c_c': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
775 'c_c.c': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
776 'ca': 'ca_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
777 'ca_es': 'ca_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
778 'ca_es.iso88591': 'ca_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
779 'ca_es.iso885915': 'ca_ES.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
780 'ca_es.iso885915@euro': 'ca_ES.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
781 'ca_es.utf8@euro': 'ca_ES.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
782 'ca_es@euro': 'ca_ES.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
783 'catalan': 'ca_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
784 'cextend': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
785 'cextend.en': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
786 'chinese-s': 'zh_CN.eucCN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
787 'chinese-t': 'zh_TW.eucTW', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
788 'croatian': 'hr_HR.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
789 'cs': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
790 'cs_cs': 'cs_CZ.ISO8859-2', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
791 'cs_cs.iso88592': 'cs_CS.ISO8859-2', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
792 'cs_cz': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
793 'cs_cz.iso88592': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
794 'cy': 'cy_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
795 'cy_gb': 'cy_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
796 'cy_gb.iso88591': 'cy_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
797 'cy_gb.iso885914': 'cy_GB.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
798 'cy_gb.iso885915': 'cy_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
799 'cy_gb@euro': 'cy_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
800 'cz': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
801 'cz_cz': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
802 'czech': 'cs_CZ.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
803 'da': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
804 'da_dk': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
805 'da_dk.88591': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
806 'da_dk.885915': 'da_DK.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
807 'da_dk.iso88591': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
808 'da_dk.iso885915': 'da_DK.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
809 'da_dk@euro': 'da_DK.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
810 'danish': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
811 'danish.iso88591': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
812 'dansk': 'da_DK.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
813 'de': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
814 'de_at': 'de_AT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
815 'de_at.iso88591': 'de_AT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
816 'de_at.iso885915': 'de_AT.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
817 'de_at.iso885915@euro': 'de_AT.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
818 'de_at.utf8@euro': 'de_AT.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
819 'de_at@euro': 'de_AT.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
820 'de_be': 'de_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
821 'de_be.iso88591': 'de_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
822 'de_be.iso885915': 'de_BE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
823 'de_be.iso885915@euro': 'de_BE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
824 'de_be.utf8@euro': 'de_BE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
825 'de_be@euro': 'de_BE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
826 'de_ch': 'de_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
827 'de_ch.iso88591': 'de_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
828 'de_ch.iso885915': 'de_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
829 'de_ch@euro': 'de_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
830 'de_de': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
831 'de_de.88591': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
832 'de_de.885915': 'de_DE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
833 'de_de.885915@euro': 'de_DE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
834 'de_de.iso88591': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
835 'de_de.iso885915': 'de_DE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
836 'de_de.iso885915@euro': 'de_DE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
837 'de_de.utf8@euro': 'de_DE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
838 'de_de@euro': 'de_DE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
839 'de_lu': 'de_LU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
840 'de_lu.iso88591': 'de_LU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
841 'de_lu.iso885915': 'de_LU.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
842 'de_lu.iso885915@euro': 'de_LU.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
843 'de_lu.utf8@euro': 'de_LU.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
844 'de_lu@euro': 'de_LU.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
845 'deutsch': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
846 'dutch': 'nl_NL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
847 'dutch.iso88591': 'nl_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
848 'ee': 'ee_EE.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
849 'ee_ee': 'ee_EE.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
850 'ee_ee.iso88594': 'ee_EE.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
851 'eesti': 'et_EE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
852 'el': 'el_GR.ISO8859-7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
853 'el_gr': 'el_GR.ISO8859-7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
854 'el_gr.iso88597': 'el_GR.ISO8859-7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
855 'el_gr@euro': 'el_GR.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
856 'en': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
857 'en.iso88591': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
858 'en_au': 'en_AU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
859 'en_au.iso88591': 'en_AU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
860 'en_be': 'en_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
861 'en_be@euro': 'en_BE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
862 'en_bw': 'en_BW.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
863 'en_bw.iso88591': 'en_BW.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
864 'en_ca': 'en_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
865 'en_ca.iso88591': 'en_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
866 'en_gb': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
867 'en_gb.88591': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
868 'en_gb.iso88591': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
869 'en_gb.iso885915': 'en_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
870 'en_gb@euro': 'en_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
871 'en_hk': 'en_HK.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
872 'en_hk.iso88591': 'en_HK.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
873 'en_ie': 'en_IE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
874 'en_ie.iso88591': 'en_IE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
875 'en_ie.iso885915': 'en_IE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
876 'en_ie.iso885915@euro': 'en_IE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
877 'en_ie.utf8@euro': 'en_IE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
878 'en_ie@euro': 'en_IE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
879 'en_in': 'en_IN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
880 'en_nz': 'en_NZ.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
881 'en_nz.iso88591': 'en_NZ.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
882 'en_ph': 'en_PH.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
883 'en_ph.iso88591': 'en_PH.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
884 'en_sg': 'en_SG.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
885 'en_sg.iso88591': 'en_SG.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
886 'en_uk': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
887 'en_us': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
888 'en_us.88591': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
889 'en_us.885915': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
890 'en_us.iso88591': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
891 'en_us.iso885915': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
892 'en_us.iso885915@euro': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
893 'en_us@euro': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
894 'en_us@euro@euro': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
895 'en_za': 'en_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
896 'en_za.88591': 'en_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
897 'en_za.iso88591': 'en_ZA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
898 'en_za.iso885915': 'en_ZA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
899 'en_za@euro': 'en_ZA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
900 'en_zw': 'en_ZW.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
901 'en_zw.iso88591': 'en_ZW.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
902 'eng_gb': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
903 'eng_gb.8859': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
904 'english': 'en_EN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
905 'english.iso88591': 'en_EN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
906 'english_uk': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
907 'english_uk.8859': 'en_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
908 'english_united-states': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
909 'english_united-states.437': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
910 'english_us': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
911 'english_us.8859': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
912 'english_us.ascii': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
913 'eo': 'eo_XX.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
914 'eo_eo': 'eo_EO.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
915 'eo_eo.iso88593': 'eo_EO.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
916 'eo_xx': 'eo_XX.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
917 'eo_xx.iso88593': 'eo_XX.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
918 'es': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
919 'es_ar': 'es_AR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
920 'es_ar.iso88591': 'es_AR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
921 'es_bo': 'es_BO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
922 'es_bo.iso88591': 'es_BO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
923 'es_cl': 'es_CL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
924 'es_cl.iso88591': 'es_CL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
925 'es_co': 'es_CO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
926 'es_co.iso88591': 'es_CO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
927 'es_cr': 'es_CR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
928 'es_cr.iso88591': 'es_CR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
929 'es_do': 'es_DO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
930 'es_do.iso88591': 'es_DO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
931 'es_ec': 'es_EC.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
932 'es_ec.iso88591': 'es_EC.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
933 'es_es': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
934 'es_es.88591': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
935 'es_es.iso88591': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
936 'es_es.iso885915': 'es_ES.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
937 'es_es.iso885915@euro': 'es_ES.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
938 'es_es.utf8@euro': 'es_ES.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
939 'es_es@euro': 'es_ES.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
940 'es_gt': 'es_GT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
941 'es_gt.iso88591': 'es_GT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
942 'es_hn': 'es_HN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
943 'es_hn.iso88591': 'es_HN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
944 'es_mx': 'es_MX.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
945 'es_mx.iso88591': 'es_MX.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
946 'es_ni': 'es_NI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
947 'es_ni.iso88591': 'es_NI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
948 'es_pa': 'es_PA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
949 'es_pa.iso88591': 'es_PA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
950 'es_pa.iso885915': 'es_PA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
951 'es_pa@euro': 'es_PA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
952 'es_pe': 'es_PE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
953 'es_pe.iso88591': 'es_PE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
954 'es_pe.iso885915': 'es_PE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
955 'es_pe@euro': 'es_PE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
956 'es_pr': 'es_PR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
957 'es_pr.iso88591': 'es_PR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
958 'es_py': 'es_PY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
959 'es_py.iso88591': 'es_PY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
960 'es_py.iso885915': 'es_PY.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
961 'es_py@euro': 'es_PY.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
962 'es_sv': 'es_SV.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
963 'es_sv.iso88591': 'es_SV.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
964 'es_sv.iso885915': 'es_SV.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
965 'es_sv@euro': 'es_SV.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
966 'es_us': 'es_US.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
967 'es_us.iso88591': 'es_US.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
968 'es_uy': 'es_UY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
969 'es_uy.iso88591': 'es_UY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
970 'es_uy.iso885915': 'es_UY.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
971 'es_uy@euro': 'es_UY.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
972 'es_ve': 'es_VE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
973 'es_ve.iso88591': 'es_VE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
974 'es_ve.iso885915': 'es_VE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
975 'es_ve@euro': 'es_VE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
976 'estonian': 'et_EE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
977 'et': 'et_EE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
978 'et_ee': 'et_EE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
979 'et_ee.iso88591': 'et_EE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
980 'et_ee.iso885913': 'et_EE.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
981 'et_ee.iso885915': 'et_EE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
982 'et_ee.iso88594': 'et_EE.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
983 'et_ee@euro': 'et_EE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
984 'eu': 'eu_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
985 'eu_es': 'eu_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
986 'eu_es.iso88591': 'eu_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
987 'eu_es.iso885915': 'eu_ES.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
988 'eu_es.iso885915@euro': 'eu_ES.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
989 'eu_es.utf8@euro': 'eu_ES.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
990 'eu_es@euro': 'eu_ES.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
991 'fa': 'fa_IR.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
992 'fa_ir': 'fa_IR.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
993 'fa_ir.isiri3342': 'fa_IR.ISIRI-3342', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
994 'fi': 'fi_FI.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
995 'fi_fi': 'fi_FI.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
996 'fi_fi.88591': 'fi_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
997 'fi_fi.iso88591': 'fi_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
998 'fi_fi.iso885915': 'fi_FI.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
999 'fi_fi.iso885915@euro': 'fi_FI.ISO8859-15', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1000 'fi_fi.utf8@euro': 'fi_FI.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1001 'fi_fi@euro': 'fi_FI.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1002 'finnish': 'fi_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1003 'finnish.iso88591': 'fi_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1004 'fo': 'fo_FO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1005 'fo_fo': 'fo_FO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1006 'fo_fo.iso88591': 'fo_FO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1007 'fo_fo.iso885915': 'fo_FO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1008 'fo_fo@euro': 'fo_FO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1009 'fr': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1010 'fr_be': 'fr_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1011 'fr_be.88591': 'fr_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1012 'fr_be.iso88591': 'fr_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1013 'fr_be.iso885915': 'fr_BE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1014 'fr_be.iso885915@euro': 'fr_BE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1015 'fr_be.utf8@euro': 'fr_BE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1016 'fr_be@euro': 'fr_BE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1017 'fr_ca': 'fr_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1018 'fr_ca.88591': 'fr_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1019 'fr_ca.iso88591': 'fr_CA.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1020 'fr_ca.iso885915': 'fr_CA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1021 'fr_ca@euro': 'fr_CA.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1022 'fr_ch': 'fr_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1023 'fr_ch.88591': 'fr_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1024 'fr_ch.iso88591': 'fr_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1025 'fr_ch.iso885915': 'fr_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1026 'fr_ch@euro': 'fr_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1027 'fr_fr': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1028 'fr_fr.88591': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1029 'fr_fr.iso88591': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1030 'fr_fr.iso885915': 'fr_FR.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1031 'fr_fr.iso885915@euro': 'fr_FR.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1032 'fr_fr.utf8@euro': 'fr_FR.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1033 'fr_fr@euro': 'fr_FR.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1034 'fr_lu': 'fr_LU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1035 'fr_lu.88591': 'fr_LU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1036 'fr_lu.iso88591': 'fr_LU.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1037 'fr_lu.iso885915': 'fr_LU.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1038 'fr_lu.iso885915@euro': 'fr_LU.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1039 'fr_lu.utf8@euro': 'fr_LU.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1040 'fr_lu@euro': 'fr_LU.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1041 'fran\xe7ais': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1042 'fre_fr': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1043 'fre_fr.8859': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1044 'french': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1045 'french.iso88591': 'fr_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1046 'french_france': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1047 'french_france.8859': 'fr_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1048 'ga': 'ga_IE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1049 'ga_ie': 'ga_IE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1050 'ga_ie.iso88591': 'ga_IE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1051 'ga_ie.iso885914': 'ga_IE.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1052 'ga_ie.iso885915': 'ga_IE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1053 'ga_ie.iso885915@euro': 'ga_IE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1054 'ga_ie.utf8@euro': 'ga_IE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1055 'ga_ie@euro': 'ga_IE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1056 'galego': 'gl_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1057 'galician': 'gl_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1058 'gd': 'gd_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1059 'gd_gb': 'gd_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1060 'gd_gb.iso88591': 'gd_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1061 'gd_gb.iso885914': 'gd_GB.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1062 'gd_gb.iso885915': 'gd_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1063 'gd_gb@euro': 'gd_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1064 'ger_de': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1065 'ger_de.8859': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1066 'german': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1067 'german.iso88591': 'de_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1068 'german_germany': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1069 'german_germany.8859': 'de_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1070 'gl': 'gl_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1071 'gl_es': 'gl_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1072 'gl_es.iso88591': 'gl_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1073 'gl_es.iso885915': 'gl_ES.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1074 'gl_es.iso885915@euro': 'gl_ES.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1075 'gl_es.utf8@euro': 'gl_ES.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1076 'gl_es@euro': 'gl_ES.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1077 'greek': 'el_GR.ISO8859-7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1078 'greek.iso88597': 'el_GR.ISO8859-7', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1079 'gu_in': 'gu_IN.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1080 'gv': 'gv_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1081 'gv_gb': 'gv_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1082 'gv_gb.iso88591': 'gv_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1083 'gv_gb.iso885914': 'gv_GB.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1084 'gv_gb.iso885915': 'gv_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1085 'gv_gb@euro': 'gv_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1086 'he': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1087 'he_il': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1088 'he_il.cp1255': 'he_IL.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1089 'he_il.iso88598': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1090 'he_il.microsoftcp1255': 'he_IL.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1091 'hebrew': 'iw_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1092 'hebrew.iso88598': 'iw_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1093 'hi': 'hi_IN.ISCII-DEV', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1094 'hi_in': 'hi_IN.ISCII-DEV', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1095 'hi_in.isciidev': 'hi_IN.ISCII-DEV', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1096 'hr': 'hr_HR.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1097 'hr_hr': 'hr_HR.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1098 'hr_hr.iso88592': 'hr_HR.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1099 'hrvatski': 'hr_HR.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1100 'hu': 'hu_HU.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1101 'hu_hu': 'hu_HU.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1102 'hu_hu.iso88592': 'hu_HU.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1103 'hungarian': 'hu_HU.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1104 'icelandic': 'is_IS.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1105 'icelandic.iso88591': 'is_IS.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1106 'id': 'id_ID.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1107 'id_id': 'id_ID.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1108 'in': 'id_ID.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1109 'in_id': 'id_ID.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1110 'is': 'is_IS.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1111 'is_is': 'is_IS.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1112 'is_is.iso88591': 'is_IS.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1113 'is_is.iso885915': 'is_IS.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1114 'is_is@euro': 'is_IS.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1115 'iso-8859-1': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1116 'iso-8859-15': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1117 'iso8859-1': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1118 'iso8859-15': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1119 'iso_8859_1': 'en_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1120 'iso_8859_15': 'en_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1121 'it': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1122 'it_ch': 'it_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1123 'it_ch.iso88591': 'it_CH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1124 'it_ch.iso885915': 'it_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1125 'it_ch@euro': 'it_CH.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1126 'it_it': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1127 'it_it.88591': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1128 'it_it.iso88591': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1129 'it_it.iso885915': 'it_IT.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1130 'it_it.iso885915@euro': 'it_IT.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1131 'it_it.utf8@euro': 'it_IT.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1132 'it_it@euro': 'it_IT.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1133 'italian': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1134 'italian.iso88591': 'it_IT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1135 'iu': 'iu_CA.NUNACOM-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1136 'iu_ca': 'iu_CA.NUNACOM-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1137 'iu_ca.nunacom8': 'iu_CA.NUNACOM-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1138 'iw': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1139 'iw_il': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1140 'iw_il.iso88598': 'he_IL.ISO8859-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1141 'ja': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1142 'ja.jis': 'ja_JP.JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1143 'ja.sjis': 'ja_JP.SJIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1144 'ja_jp': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1145 'ja_jp.ajec': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1146 'ja_jp.euc': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1147 'ja_jp.eucjp': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1148 'ja_jp.iso-2022-jp': 'ja_JP.JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1149 'ja_jp.iso2022jp': 'ja_JP.JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1150 'ja_jp.jis': 'ja_JP.JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1151 'ja_jp.jis7': 'ja_JP.JIS7', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1152 'ja_jp.mscode': 'ja_JP.SJIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1153 'ja_jp.sjis': 'ja_JP.SJIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1154 'ja_jp.ujis': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1155 'japan': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1156 'japanese': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1157 'japanese-euc': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1158 'japanese.euc': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1159 'japanese.sjis': 'ja_JP.SJIS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1160 'jp_jp': 'ja_JP.eucJP', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1161 'ka': 'ka_GE.GEORGIAN-ACADEMY', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1162 'ka_ge': 'ka_GE.GEORGIAN-ACADEMY', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1163 'ka_ge.georgianacademy': 'ka_GE.GEORGIAN-ACADEMY', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1164 'ka_ge.georgianps': 'ka_GE.GEORGIAN-PS', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1165 'ka_ge.georgianrs': 'ka_GE.GEORGIAN-ACADEMY', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1166 'kl': 'kl_GL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1167 'kl_gl': 'kl_GL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1168 'kl_gl.iso88591': 'kl_GL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1169 'kl_gl.iso885915': 'kl_GL.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1170 'kl_gl@euro': 'kl_GL.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1171 'km_kh': 'km_KH.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1172 'kn_in': 'kn_IN.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1173 'ko': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1174 'ko_kr': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1175 'ko_kr.euc': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1176 'ko_kr.euckr': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1177 'korean': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1178 'korean.euc': 'ko_KR.eucKR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1179 'kw': 'kw_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1180 'kw_gb': 'kw_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1181 'kw_gb.iso88591': 'kw_GB.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1182 'kw_gb.iso885914': 'kw_GB.ISO8859-14', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1183 'kw_gb.iso885915': 'kw_GB.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1184 'kw_gb@euro': 'kw_GB.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1185 'ky': 'ky_KG.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1186 'ky_kg': 'ky_KG.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1187 'lithuanian': 'lt_LT.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1188 'lo': 'lo_LA.MULELAO-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1189 'lo_la': 'lo_LA.MULELAO-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1190 'lo_la.cp1133': 'lo_LA.IBM-CP1133', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1191 'lo_la.ibmcp1133': 'lo_LA.IBM-CP1133', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1192 'lo_la.mulelao1': 'lo_LA.MULELAO-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1193 'lt': 'lt_LT.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1194 'lt_lt': 'lt_LT.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1195 'lt_lt.iso885913': 'lt_LT.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1196 'lt_lt.iso88594': 'lt_LT.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1197 'lv': 'lv_LV.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1198 'lv_lv': 'lv_LV.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1199 'lv_lv.iso885913': 'lv_LV.ISO8859-13', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1200 'lv_lv.iso88594': 'lv_LV.ISO8859-4', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1201 'mi': 'mi_NZ.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1202 'mi_nz': 'mi_NZ.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1203 'mi_nz.iso88591': 'mi_NZ.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1204 'mk': 'mk_MK.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1205 'mk_mk': 'mk_MK.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1206 'mk_mk.cp1251': 'mk_MK.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1207 'mk_mk.iso88595': 'mk_MK.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1208 'mk_mk.microsoftcp1251': 'mk_MK.CP1251', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1209 'mr_in': 'mr_IN.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1210 'ms': 'ms_MY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1211 'ms_my': 'ms_MY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1212 'ms_my.iso88591': 'ms_MY.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1213 'mt': 'mt_MT.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1214 'mt_mt': 'mt_MT.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1215 'mt_mt.iso88593': 'mt_MT.ISO8859-3', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1216 'nb': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1217 'nb_no': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1218 'nb_no.88591': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1219 'nb_no.iso88591': 'nb_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1220 'nb_no.iso885915': 'nb_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1221 'nb_no@euro': 'nb_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1222 'nl': 'nl_NL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1223 'nl_be': 'nl_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1224 'nl_be.88591': 'nl_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1225 'nl_be.iso88591': 'nl_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1226 'nl_be.iso885915': 'nl_BE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1227 'nl_be.iso885915@euro': 'nl_BE.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1228 'nl_be.utf8@euro': 'nl_BE.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1229 'nl_be@euro': 'nl_BE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1230 'nl_nl': 'nl_NL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1231 'nl_nl.88591': 'nl_NL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1232 'nl_nl.iso88591': 'nl_NL.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1233 'nl_nl.iso885915': 'nl_NL.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1234 'nl_nl.iso885915@euro': 'nl_NL.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1235 'nl_nl.utf8@euro': 'nl_NL.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1236 'nl_nl@euro': 'nl_NL.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1237 'nn': 'nn_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1238 'nn_no': 'nn_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1239 'nn_no.88591': 'nn_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1240 'nn_no.iso88591': 'nn_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1241 'nn_no.iso885915': 'nn_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1242 'nn_no@euro': 'nn_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1243 'no': 'no_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1244 'no@nynorsk': 'ny_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1245 'no_no': 'no_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1246 'no_no.88591': 'no_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1247 'no_no.iso88591': 'no_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1248 'no_no.iso885915': 'no_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1249 'no_no@euro': 'no_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1250 'norwegian': 'no_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1251 'norwegian.iso88591': 'no_NO.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1252 'nr': 'nr_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1253 'nr_za': 'nr_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1254 'nr_za.iso88591': 'nr_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1255 'nso': 'nso_ZA.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1256 'nso_za': 'nso_ZA.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1257 'nso_za.iso885915': 'nso_ZA.ISO8859-15', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1258 'ny': 'ny_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1259 'ny_no': 'ny_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1260 'ny_no.88591': 'ny_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1261 'ny_no.iso88591': 'ny_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1262 'ny_no.iso885915': 'ny_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1263 'ny_no@euro': 'ny_NO.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1264 'nynorsk': 'nn_NO.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1265 'oc': 'oc_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1266 'oc_fr': 'oc_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1267 'oc_fr.iso88591': 'oc_FR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1268 'oc_fr.iso885915': 'oc_FR.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1269 'oc_fr@euro': 'oc_FR.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1270 'pa_in': 'pa_IN.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1271 'pd': 'pd_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1272 'pd_de': 'pd_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1273 'pd_de.iso88591': 'pd_DE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1274 'pd_de.iso885915': 'pd_DE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1275 'pd_de@euro': 'pd_DE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1276 'pd_us': 'pd_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1277 'pd_us.iso88591': 'pd_US.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1278 'pd_us.iso885915': 'pd_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1279 'pd_us@euro': 'pd_US.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1280 'ph': 'ph_PH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1281 'ph_ph': 'ph_PH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1282 'ph_ph.iso88591': 'ph_PH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1283 'pl': 'pl_PL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1284 'pl_pl': 'pl_PL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1285 'pl_pl.iso88592': 'pl_PL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1286 'polish': 'pl_PL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1287 'portuguese': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1288 'portuguese.iso88591': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1289 'portuguese_brazil': 'pt_BR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1290 'portuguese_brazil.8859': 'pt_BR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1291 'posix': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1292 'posix-utf2': 'C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1293 'pp': 'pp_AN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1294 'pp_an': 'pp_AN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1295 'pp_an.iso88591': 'pp_AN.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1296 'pt': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1297 'pt_br': 'pt_BR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1298 'pt_br.88591': 'pt_BR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1299 'pt_br.iso88591': 'pt_BR.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1300 'pt_br.iso885915': 'pt_BR.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1301 'pt_br@euro': 'pt_BR.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1302 'pt_pt': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1303 'pt_pt.88591': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1304 'pt_pt.iso88591': 'pt_PT.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1305 'pt_pt.iso885915': 'pt_PT.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1306 'pt_pt.iso885915@euro': 'pt_PT.ISO8859-15', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1307 'pt_pt.utf8@euro': 'pt_PT.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1308 'pt_pt@euro': 'pt_PT.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1309 'ro': 'ro_RO.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1310 'ro_ro': 'ro_RO.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1311 'ro_ro.iso88592': 'ro_RO.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1312 'romanian': 'ro_RO.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1313 'ru': 'ru_RU.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1314 'ru_ru': 'ru_RU.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1315 'ru_ru.cp1251': 'ru_RU.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1316 'ru_ru.iso88595': 'ru_RU.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1317 'ru_ru.koi8r': 'ru_RU.KOI8-R', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1318 'ru_ru.microsoftcp1251': 'ru_RU.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1319 'ru_ua': 'ru_UA.KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1320 'ru_ua.cp1251': 'ru_UA.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1321 'ru_ua.koi8u': 'ru_UA.KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1322 'ru_ua.microsoftcp1251': 'ru_UA.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1323 'rumanian': 'ro_RO.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1324 'russian': 'ru_RU.ISO8859-5', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1325 'rw': 'rw_RW.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1326 'rw_rw': 'rw_RW.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1327 'rw_rw.iso88591': 'rw_RW.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1328 'se_no': 'se_NO.UTF-8', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1329 'serbocroatian': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1330 'sh': 'sr_CS.ISO8859-2', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1331 'sh_hr': 'sh_HR.ISO8859-2', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1332 'sh_hr.iso88592': 'hr_HR.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1333 'sh_sp': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1334 'sh_yu': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1335 'si': 'si_LK.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1336 'si_lk': 'si_LK.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1337 'sinhala': 'si_LK.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1338 'sk': 'sk_SK.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1339 'sk_sk': 'sk_SK.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1340 'sk_sk.iso88592': 'sk_SK.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1341 'sl': 'sl_SI.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1342 'sl_cs': 'sl_CS.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1343 'sl_si': 'sl_SI.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1344 'sl_si.iso88592': 'sl_SI.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1345 'slovak': 'sk_SK.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1346 'slovene': 'sl_SI.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1347 'slovenian': 'sl_SI.ISO8859-2', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1348 'sp': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1349 'sp_yu': 'sr_CS.ISO8859-5', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1350 'spanish': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1351 'spanish.iso88591': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1352 'spanish_spain': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1353 'spanish_spain.8859': 'es_ES.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1354 'sq': 'sq_AL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1355 'sq_al': 'sq_AL.ISO8859-2', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1356 'sq_al.iso88592': 'sq_AL.ISO8859-2', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1357 'sr': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1358 'sr@cyrillic': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1359 'sr@latn': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1360 'sr_cs.iso88592': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1361 'sr_cs.iso88592@latn': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1362 'sr_cs.iso88595': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1363 'sr_cs.utf8@latn': 'sr_CS.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1364 'sr_cs@latn': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1365 'sr_sp': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1366 'sr_yu': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1367 'sr_yu.cp1251@cyrillic': 'sr_CS.CP1251', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1368 'sr_yu.iso88592': 'sr_CS.ISO8859-2', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1369 'sr_yu.iso88595': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1370 'sr_yu.iso88595@cyrillic': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1371 'sr_yu.microsoftcp1251@cyrillic': 'sr_CS.CP1251', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1372 'sr_yu.utf8@cyrillic': 'sr_CS.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1373 'sr_yu@cyrillic': 'sr_CS.ISO8859-5', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1374 'ss': 'ss_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1375 'ss_za': 'ss_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1376 'ss_za.iso88591': 'ss_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1377 'st': 'st_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1378 'st_za': 'st_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1379 'st_za.iso88591': 'st_ZA.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1380 'sv': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1381 'sv_fi': 'sv_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1382 'sv_fi.iso88591': 'sv_FI.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1383 'sv_fi.iso885915': 'sv_FI.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1384 'sv_fi.iso885915@euro': 'sv_FI.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1385 'sv_fi.utf8@euro': 'sv_FI.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1386 'sv_fi@euro': 'sv_FI.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1387 'sv_se': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1388 'sv_se.88591': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1389 'sv_se.iso88591': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1390 'sv_se.iso885915': 'sv_SE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1391 'sv_se@euro': 'sv_SE.ISO8859-15', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1392 'swedish': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1393 'swedish.iso88591': 'sv_SE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1394 'ta': 'ta_IN.TSCII-0', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1395 'ta_in': 'ta_IN.TSCII-0', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1396 'ta_in.tscii': 'ta_IN.TSCII-0', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1397 'ta_in.tscii0': 'ta_IN.TSCII-0', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1398 'tg': 'tg_TJ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1399 'tg_tj': 'tg_TJ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1400 'tg_tj.koi8c': 'tg_TJ.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1401 'th': 'th_TH.ISO8859-11', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1402 'th_th': 'th_TH.ISO8859-11', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1403 'th_th.iso885911': 'th_TH.ISO8859-11', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1404 'th_th.tactis': 'th_TH.TIS620', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1405 'th_th.tis620': 'th_TH.TIS620', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1406 'thai': 'th_TH.ISO8859-11', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1407 'tl': 'tl_PH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1408 'tl_ph': 'tl_PH.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1409 'tl_ph.iso88591': 'tl_PH.ISO8859-1', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1410 'tn': 'tn_ZA.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1411 'tn_za': 'tn_ZA.ISO8859-15', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1412 'tn_za.iso885915': 'tn_ZA.ISO8859-15', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1413 'tr': 'tr_TR.ISO8859-9', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1414 'tr_tr': 'tr_TR.ISO8859-9', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1415 'tr_tr.iso88599': 'tr_TR.ISO8859-9', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1416 'ts': 'ts_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1417 'ts_za': 'ts_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1418 'ts_za.iso88591': 'ts_ZA.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1419 'tt': 'tt_RU.TATAR-CYR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1420 'tt_ru': 'tt_RU.TATAR-CYR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1421 'tt_ru.koi8c': 'tt_RU.KOI8-C', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1422 'tt_ru.tatarcyr': 'tt_RU.TATAR-CYR', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1423 'turkish': 'tr_TR.ISO8859-9', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1424 'turkish.iso88599': 'tr_TR.ISO8859-9', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1425 'uk': 'uk_UA.KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1426 'uk_ua': 'uk_UA.KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1427 'uk_ua.cp1251': 'uk_UA.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1428 'uk_ua.iso88595': 'uk_UA.ISO8859-5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1429 'uk_ua.koi8u': 'uk_UA.KOI8-U', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1430 'uk_ua.microsoftcp1251': 'uk_UA.CP1251', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1431 'univ': 'en_US.utf', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1432 'universal': 'en_US.utf', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1433 'universal.utf8@ucs4': 'en_US.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1434 'ur': 'ur_PK.CP1256', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1435 'ur_pk': 'ur_PK.CP1256', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1436 'ur_pk.cp1256': 'ur_PK.CP1256', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1437 'ur_pk.microsoftcp1256': 'ur_PK.CP1256', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1438 'uz': 'uz_UZ.UTF-8', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1439 'uz_uz': 'uz_UZ.UTF-8', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1440 'uz_uz.iso88591': 'uz_UZ.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1441 'uz_uz.utf8@cyrillic': 'uz_UZ.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1442 'uz_uz@cyrillic': 'uz_UZ.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1443 've': 've_ZA.UTF-8', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1444 've_za': 've_ZA.UTF-8', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1445 'vi': 'vi_VN.TCVN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1446 'vi_vn': 'vi_VN.TCVN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1447 'vi_vn.tcvn': 'vi_VN.TCVN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1448 'vi_vn.tcvn5712': 'vi_VN.TCVN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1449 'vi_vn.viscii': 'vi_VN.VISCII', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1450 'vi_vn.viscii111': 'vi_VN.VISCII', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1451 'wa': 'wa_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1452 'wa_be': 'wa_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1453 'wa_be.iso88591': 'wa_BE.ISO8859-1', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1454 'wa_be.iso885915': 'wa_BE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1455 'wa_be.iso885915@euro': 'wa_BE.ISO8859-15', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1456 'wa_be@euro': 'wa_BE.ISO8859-15', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1457 'xh': 'xh_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1458 'xh_za': 'xh_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1459 'xh_za.iso88591': 'xh_ZA.ISO8859-1', |
|
34136
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1460 'yi': 'yi_US.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1461 'yi_us': 'yi_US.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1462 'yi_us.cp1255': 'yi_US.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1463 'yi_us.microsoftcp1255': 'yi_US.CP1255', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1464 'zh': 'zh_CN.eucCN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1465 'zh_cn': 'zh_CN.gb2312', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1466 'zh_cn.big5': 'zh_TW.big5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1467 'zh_cn.euc': 'zh_CN.eucCN', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1468 'zh_cn.gb18030': 'zh_CN.gb18030', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1469 'zh_cn.gb2312': 'zh_CN.gb2312', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1470 'zh_cn.gbk': 'zh_CN.gbk', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1471 'zh_hk': 'zh_HK.big5hkscs', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1472 'zh_hk.big5': 'zh_HK.big5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1473 'zh_hk.big5hkscs': 'zh_HK.big5hkscs', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1474 'zh_tw': 'zh_TW.big5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1475 'zh_tw.big5': 'zh_TW.big5', |
|
21abeceaabad
locale.py now uses an updated locale alias table (built using
Marc-André Lemburg <mal@egenix.com>
parents:
32818
diff
changeset
|
1476 'zh_tw.euc': 'zh_TW.eucTW', |
|
47399
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1477 'zh_tw.euctw': 'zh_TW.eucTW', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1478 'zu': 'zu_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1479 'zu_za': 'zu_ZA.ISO8859-1', |
|
3dcd70004696
Update the locale module alias table.
Marc-André Lemburg <mal@egenix.com>
parents:
41567
diff
changeset
|
1480 'zu_za.iso88591': 'zu_ZA.ISO8859-1', |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1481 } |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1482 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1483 # |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1484 # This maps Windows language identifiers to locale strings. |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1485 # |
|
36351
f8fccae6a0f5
Whitespace normalization.
Tim Peters <tim.peters@gmail.com>
parents:
36337
diff
changeset
|
1486 # This list has been updated from |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1487 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1488 # to include every locale up to Windows Vista. |
|
25865
d17ffa0522b7
point people to the Python bug tracker, rather than to a mail
Fredrik Lundh <fredrik@pythonware.com>
parents:
22564
diff
changeset
|
1489 # |
| 36337 | 1490 # NOTE: this mapping is incomplete. If your language is missing, please |
| 1491 # submit a bug report to Python bug manager, which you can find via: | |
| 1492 # http://www.python.org/dev/ | |
| 1493 # Make sure you include the missing language identifier and the suggested | |
| 1494 # locale code. | |
| 1495 # | |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1496 |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1497 windows_locale = { |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1498 0x0436: "af_ZA", # Afrikaans |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1499 0x041c: "sq_AL", # Albanian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1500 0x0484: "gsw_FR",# Alsatian - France |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1501 0x045e: "am_ET", # Amharic - Ethiopia |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1502 0x0401: "ar_SA", # Arabic - Saudi Arabia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1503 0x0801: "ar_IQ", # Arabic - Iraq |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1504 0x0c01: "ar_EG", # Arabic - Egypt |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1505 0x1001: "ar_LY", # Arabic - Libya |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1506 0x1401: "ar_DZ", # Arabic - Algeria |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1507 0x1801: "ar_MA", # Arabic - Morocco |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1508 0x1c01: "ar_TN", # Arabic - Tunisia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1509 0x2001: "ar_OM", # Arabic - Oman |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1510 0x2401: "ar_YE", # Arabic - Yemen |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1511 0x2801: "ar_SY", # Arabic - Syria |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1512 0x2c01: "ar_JO", # Arabic - Jordan |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1513 0x3001: "ar_LB", # Arabic - Lebanon |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1514 0x3401: "ar_KW", # Arabic - Kuwait |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1515 0x3801: "ar_AE", # Arabic - United Arab Emirates |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1516 0x3c01: "ar_BH", # Arabic - Bahrain |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1517 0x4001: "ar_QA", # Arabic - Qatar |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1518 0x042b: "hy_AM", # Armenian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1519 0x044d: "as_IN", # Assamese - India |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1520 0x042c: "az_AZ", # Azeri - Latin |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1521 0x082c: "az_AZ", # Azeri - Cyrillic |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1522 0x046d: "ba_RU", # Bashkir |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1523 0x042d: "eu_ES", # Basque - Russia |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1524 0x0423: "be_BY", # Belarusian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1525 0x0445: "bn_IN", # Begali |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1526 0x201a: "bs_BA", # Bosnian - Cyrillic |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1527 0x141a: "bs_BA", # Bosnian - Latin |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1528 0x047e: "br_FR", # Breton - France |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1529 0x0402: "bg_BG", # Bulgarian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1530 # 0x0455: "my_MM", # Burmese - Not supported |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1531 0x0403: "ca_ES", # Catalan |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1532 0x0004: "zh_CHS",# Chinese - Simplified |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1533 0x0404: "zh_TW", # Chinese - Taiwan |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1534 0x0804: "zh_CN", # Chinese - PRC |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1535 0x0c04: "zh_HK", # Chinese - Hong Kong S.A.R. |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1536 0x1004: "zh_SG", # Chinese - Singapore |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1537 0x1404: "zh_MO", # Chinese - Macao S.A.R. |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1538 0x7c04: "zh_CHT",# Chinese - Traditional |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1539 0x0483: "co_FR", # Corsican - France |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1540 0x041a: "hr_HR", # Croatian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1541 0x101a: "hr_BA", # Croatian - Bosnia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1542 0x0405: "cs_CZ", # Czech |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1543 0x0406: "da_DK", # Danish |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1544 0x048c: "gbz_AF",# Dari - Afghanistan |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1545 0x0465: "div_MV",# Divehi - Maldives |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1546 0x0413: "nl_NL", # Dutch - The Netherlands |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1547 0x0813: "nl_BE", # Dutch - Belgium |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1548 0x0409: "en_US", # English - United States |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1549 0x0809: "en_GB", # English - United Kingdom |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1550 0x0c09: "en_AU", # English - Australia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1551 0x1009: "en_CA", # English - Canada |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1552 0x1409: "en_NZ", # English - New Zealand |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1553 0x1809: "en_IE", # English - Ireland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1554 0x1c09: "en_ZA", # English - South Africa |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1555 0x2009: "en_JA", # English - Jamaica |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1556 0x2409: "en_CB", # English - Carribbean |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1557 0x2809: "en_BZ", # English - Belize |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1558 0x2c09: "en_TT", # English - Trinidad |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1559 0x3009: "en_ZW", # English - Zimbabwe |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1560 0x3409: "en_PH", # English - Philippines |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1561 0x4009: "en_IN", # English - India |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1562 0x4409: "en_MY", # English - Malaysia |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1563 0x4809: "en_IN", # English - Singapore |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1564 0x0425: "et_EE", # Estonian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1565 0x0438: "fo_FO", # Faroese |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1566 0x0464: "fil_PH",# Filipino |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1567 0x040b: "fi_FI", # Finnish |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1568 0x040c: "fr_FR", # French - France |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1569 0x080c: "fr_BE", # French - Belgium |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1570 0x0c0c: "fr_CA", # French - Canada |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1571 0x100c: "fr_CH", # French - Switzerland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1572 0x140c: "fr_LU", # French - Luxembourg |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1573 0x180c: "fr_MC", # French - Monaco |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1574 0x0462: "fy_NL", # Frisian - Netherlands |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1575 0x0456: "gl_ES", # Galician |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1576 0x0437: "ka_GE", # Georgian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1577 0x0407: "de_DE", # German - Germany |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1578 0x0807: "de_CH", # German - Switzerland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1579 0x0c07: "de_AT", # German - Austria |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1580 0x1007: "de_LU", # German - Luxembourg |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1581 0x1407: "de_LI", # German - Liechtenstein |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1582 0x0408: "el_GR", # Greek |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1583 0x046f: "kl_GL", # Greenlandic - Greenland |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1584 0x0447: "gu_IN", # Gujarati |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1585 0x0468: "ha_NG", # Hausa - Latin |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1586 0x040d: "he_IL", # Hebrew |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1587 0x0439: "hi_IN", # Hindi |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1588 0x040e: "hu_HU", # Hungarian |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1589 0x040f: "is_IS", # Icelandic |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1590 0x0421: "id_ID", # Indonesian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1591 0x045d: "iu_CA", # Inuktitut - Syllabics |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1592 0x085d: "iu_CA", # Inuktitut - Latin |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1593 0x083c: "ga_IE", # Irish - Ireland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1594 0x0410: "it_IT", # Italian - Italy |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1595 0x0810: "it_CH", # Italian - Switzerland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1596 0x0411: "ja_JP", # Japanese |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1597 0x044b: "kn_IN", # Kannada - India |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1598 0x043f: "kk_KZ", # Kazakh |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1599 0x0453: "kh_KH", # Khmer - Cambodia |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1600 0x0486: "qut_GT",# K'iche - Guatemala |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1601 0x0487: "rw_RW", # Kinyarwanda - Rwanda |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1602 0x0457: "kok_IN",# Konkani |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1603 0x0412: "ko_KR", # Korean |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1604 0x0440: "ky_KG", # Kyrgyz |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1605 0x0454: "lo_LA", # Lao - Lao PDR |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1606 0x0426: "lv_LV", # Latvian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1607 0x0427: "lt_LT", # Lithuanian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1608 0x082e: "dsb_DE",# Lower Sorbian - Germany |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1609 0x046e: "lb_LU", # Luxembourgish |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1610 0x042f: "mk_MK", # FYROM Macedonian |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1611 0x043e: "ms_MY", # Malay - Malaysia |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1612 0x083e: "ms_BN", # Malay - Brunei Darussalam |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1613 0x044c: "ml_IN", # Malayalam - India |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1614 0x043a: "mt_MT", # Maltese |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1615 0x0481: "mi_NZ", # Maori |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1616 0x047a: "arn_CL",# Mapudungun |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1617 0x044e: "mr_IN", # Marathi |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1618 0x047c: "moh_CA",# Mohawk - Canada |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1619 0x0450: "mn_MN", # Mongolian - Cyrillic |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1620 0x0850: "mn_CN", # Mongolian - PRC |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1621 0x0461: "ne_NP", # Nepali |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1622 0x0414: "nb_NO", # Norwegian - Bokmal |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1623 0x0814: "nn_NO", # Norwegian - Nynorsk |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1624 0x0482: "oc_FR", # Occitan - France |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1625 0x0448: "or_IN", # Oriya - India |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1626 0x0463: "ps_AF", # Pashto - Afghanistan |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1627 0x0429: "fa_IR", # Persian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1628 0x0415: "pl_PL", # Polish |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1629 0x0416: "pt_BR", # Portuguese - Brazil |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1630 0x0816: "pt_PT", # Portuguese - Portugal |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1631 0x0446: "pa_IN", # Punjabi |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1632 0x046b: "quz_BO",# Quechua (Bolivia) |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1633 0x086b: "quz_EC",# Quechua (Ecuador) |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1634 0x0c6b: "quz_PE",# Quechua (Peru) |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1635 0x0418: "ro_RO", # Romanian - Romania |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1636 0x0417: "rm_CH", # Romansh |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1637 0x0419: "ru_RU", # Russian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1638 0x243b: "smn_FI",# Sami Finland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1639 0x103b: "smj_NO",# Sami Norway |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1640 0x143b: "smj_SE",# Sami Sweden |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1641 0x043b: "se_NO", # Sami Northern Norway |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1642 0x083b: "se_SE", # Sami Northern Sweden |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1643 0x0c3b: "se_FI", # Sami Northern Finland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1644 0x203b: "sms_FI",# Sami Skolt |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1645 0x183b: "sma_NO",# Sami Southern Norway |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1646 0x1c3b: "sma_SE",# Sami Southern Sweden |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1647 0x044f: "sa_IN", # Sanskrit |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1648 0x0c1a: "sr_SP", # Serbian - Cyrillic |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1649 0x1c1a: "sr_BA", # Serbian - Bosnia Cyrillic |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1650 0x081a: "sr_SP", # Serbian - Latin |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1651 0x181a: "sr_BA", # Serbian - Bosnia Latin |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1652 0x045b: "si_LK", # Sinhala - Sri Lanka |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1653 0x046c: "ns_ZA", # Northern Sotho |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1654 0x0432: "tn_ZA", # Setswana - Southern Africa |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1655 0x041b: "sk_SK", # Slovak |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1656 0x0424: "sl_SI", # Slovenian |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1657 0x040a: "es_ES", # Spanish - Spain |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1658 0x080a: "es_MX", # Spanish - Mexico |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1659 0x0c0a: "es_ES", # Spanish - Spain (Modern) |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1660 0x100a: "es_GT", # Spanish - Guatemala |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1661 0x140a: "es_CR", # Spanish - Costa Rica |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1662 0x180a: "es_PA", # Spanish - Panama |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1663 0x1c0a: "es_DO", # Spanish - Dominican Republic |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1664 0x200a: "es_VE", # Spanish - Venezuela |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1665 0x240a: "es_CO", # Spanish - Colombia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1666 0x280a: "es_PE", # Spanish - Peru |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1667 0x2c0a: "es_AR", # Spanish - Argentina |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1668 0x300a: "es_EC", # Spanish - Ecuador |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1669 0x340a: "es_CL", # Spanish - Chile |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1670 0x380a: "es_UR", # Spanish - Uruguay |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1671 0x3c0a: "es_PY", # Spanish - Paraguay |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1672 0x400a: "es_BO", # Spanish - Bolivia |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1673 0x440a: "es_SV", # Spanish - El Salvador |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1674 0x480a: "es_HN", # Spanish - Honduras |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1675 0x4c0a: "es_NI", # Spanish - Nicaragua |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1676 0x500a: "es_PR", # Spanish - Puerto Rico |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1677 0x540a: "es_US", # Spanish - United States |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1678 # 0x0430: "", # Sutu - Not supported |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1679 0x0441: "sw_KE", # Swahili |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1680 0x041d: "sv_SE", # Swedish - Sweden |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1681 0x081d: "sv_FI", # Swedish - Finland |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1682 0x045a: "syr_SY",# Syriac |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1683 0x0428: "tg_TJ", # Tajik - Cyrillic |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1684 0x085f: "tmz_DZ",# Tamazight - Latin |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1685 0x0449: "ta_IN", # Tamil |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1686 0x0444: "tt_RU", # Tatar |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1687 0x044a: "te_IN", # Telugu |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1688 0x041e: "th_TH", # Thai |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1689 0x0851: "bo_BT", # Tibetan - Bhutan |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1690 0x0451: "bo_CN", # Tibetan - PRC |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1691 0x041f: "tr_TR", # Turkish |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1692 0x0442: "tk_TM", # Turkmen - Cyrillic |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1693 0x0480: "ug_CN", # Uighur - Arabic |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1694 0x0422: "uk_UA", # Ukrainian |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1695 0x042e: "wen_DE",# Upper Sorbian - Germany |
|
36331
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1696 0x0420: "ur_PK", # Urdu |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1697 0x0820: "ur_IN", # Urdu - India |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1698 0x0443: "uz_UZ", # Uzbek - Latin |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1699 0x0843: "uz_UZ", # Uzbek - Cyrillic |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1700 0x042a: "vi_VN", # Vietnamese |
|
b587610e2069
Bug #1371247: Update Windows LCIDs in locale.py.
Georg Brandl <georg@python.org>
parents:
35600
diff
changeset
|
1701 0x0452: "cy_GB", # Welsh |
|
53912
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1702 0x0488: "wo_SN", # Wolof - Senegal |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1703 0x0434: "xh_ZA", # Xhosa - South Africa |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1704 0x0485: "sah_RU",# Yakut - Cyrillic |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1705 0x0478: "ii_CN", # Yi - PRC |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1706 0x046a: "yo_NG", # Yoruba - Nigeria |
|
a6e6a57cccc2
Update the Windows locale mapping with the ones introduced with Vista.
Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
parents:
53911
diff
changeset
|
1707 0x0435: "zu_ZA", # Zulu |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1708 } |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1709 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1710 def _print_locale(): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1711 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1712 """ Test function. |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1713 """ |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1714 categories = {} |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1715 def _init_categories(categories=categories): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1716 for k,v in globals().items(): |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1717 if k[:3] == 'LC_': |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1718 categories[k] = v |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1719 _init_categories() |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1720 del categories['LC_ALL'] |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1721 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1722 print 'Locale defaults as determined by getdefaultlocale():' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1723 print '-'*72 |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1724 lang, enc = getdefaultlocale() |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1725 print 'Language: ', lang or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1726 print 'Encoding: ', enc or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1727 print |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1728 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1729 print 'Locale settings on startup:' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1730 print '-'*72 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1731 for name,category in categories.items(): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1732 print name, '...' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1733 lang, enc = getlocale(category) |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1734 print ' Language: ', lang or '(undefined)' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1735 print ' Encoding: ', enc or '(undefined)' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1736 print |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1737 |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1738 print |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1739 print 'Locale settings after calling resetlocale():' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1740 print '-'*72 |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1741 resetlocale() |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1742 for name,category in categories.items(): |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1743 print name, '...' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1744 lang, enc = getlocale(category) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1745 print ' Language: ', lang or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1746 print ' Encoding: ', enc or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1747 print |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1748 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1749 try: |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1750 setlocale(LC_ALL, "") |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1751 except: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1752 print 'NOTE:' |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1753 print 'setlocale(LC_ALL, "") does not support the default locale' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1754 print 'given in the OS environment variables.' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1755 else: |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1756 print |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1757 print 'Locale settings after calling setlocale(LC_ALL, ""):' |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1758 print '-'*72 |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1759 for name,category in categories.items(): |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1760 print name, '...' |
|
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1761 lang, enc = getlocale(category) |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1762 print ' Language: ', lang or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1763 print ' Encoding: ', enc or '(undefined)' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1764 print |
|
13477
1622bb24da55
- merged setlocale and set_locale. the internal setlocale
Fredrik Lundh <fredrik@pythonware.com>
parents:
13050
diff
changeset
|
1765 |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1766 ### |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1767 |
|
16206
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1768 try: |
|
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1769 LC_MESSAGES |
|
22564
9bb450365df7
eliminate unqualified except when checking for presence of LC_MESSAGES
Skip Montanaro <skip@pobox.com>
parents:
19215
diff
changeset
|
1770 except NameError: |
|
16206
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1771 pass |
|
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1772 else: |
|
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1773 __all__.append("LC_MESSAGES") |
|
a6453cfb733f
test___all__ was failing on WIndows because locale.py doesn't really
Tim Peters <tim.peters@gmail.com>
parents:
16198
diff
changeset
|
1774 |
|
6606
f5b55311e79d
User-level locale module. A wrapper around _locale which adds
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1775 if __name__=='__main__': |
|
12872
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1776 print 'Locale aliasing:' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1777 print |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1778 _print_locale() |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1779 print |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1780 print 'Number formatting:' |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1781 print |
|
e024ed2db625
Marc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg <mal@egenix.com>
parents:
11708
diff
changeset
|
1782 _test() |
