Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
fc531534
Kaydet (Commit)
fc531534
authored
Nis 11, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
üst
4515f0de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
14 deletions
+93
-14
locale.py
Lib/locale.py
+89
-13
NEWS
Misc/NEWS
+3
-0
makelocalealias.py
Tools/i18n/makelocalealias.py
+1
-1
No files found.
Lib/locale.py
Dosyayı görüntüle @
fc531534
...
...
@@ -688,6 +688,28 @@ locale_encoding_alias = {
# updated 'sr_yu.microsoftcp1251@cyrillic' -> 'sr_YU.CP1251' to 'sr_CS.CP1251'
# updated 'sr_yu.utf8@cyrillic' -> 'sr_YU.UTF-8' to 'sr_CS.UTF-8'
# updated 'sr_yu@cyrillic' -> 'sr_YU.ISO8859-5' to 'sr_CS.ISO8859-5'
#
# AP 2010-04-12:
# Updated alias mapping to most recent locale.alias file
# from X.org distribution using makelocalealias.py.
#
# These are the differences compared to the old mapping (Python 2.6.5
# and older):
#
# updated 'ru' -> 'ru_RU.ISO8859-5' to 'ru_RU.UTF-8'
# updated 'ru_ru' -> 'ru_RU.ISO8859-5' to 'ru_RU.UTF-8'
# updated 'serbocroatian' -> 'sr_CS.ISO8859-2' to 'sr_RS.UTF-8@latin'
# updated 'sh' -> 'sr_CS.ISO8859-2' to 'sr_RS.UTF-8@latin'
# updated 'sh_yu' -> 'sr_CS.ISO8859-2' to 'sr_RS.UTF-8@latin'
# updated 'sr' -> 'sr_CS.ISO8859-5' to 'sr_RS.UTF-8'
# updated 'sr@cyrillic' -> 'sr_CS.ISO8859-5' to 'sr_RS.UTF-8'
# updated 'sr@latn' -> 'sr_CS.ISO8859-2' to 'sr_RS.UTF-8@latin'
# updated 'sr_cs.utf8@latn' -> 'sr_CS.UTF-8' to 'sr_RS.UTF-8@latin'
# updated 'sr_cs@latn' -> 'sr_CS.ISO8859-2' to 'sr_RS.UTF-8@latin'
# updated 'sr_yu' -> 'sr_CS.ISO8859-5' to 'sr_RS.UTF-8@latin'
# updated 'sr_yu.utf8@cyrillic' -> 'sr_CS.UTF-8' to 'sr_RS.UTF-8'
# updated 'sr_yu@cyrillic' -> 'sr_CS.ISO8859-5' to 'sr_RS.UTF-8'
#
locale_alias
=
{
'a3'
:
'a3_AZ.KOI8-C'
,
...
...
@@ -739,13 +761,17 @@ locale_alias = {
'ar_ye.iso88596'
:
'ar_YE.ISO8859-6'
,
'arabic'
:
'ar_AA.ISO8859-6'
,
'arabic.iso88596'
:
'ar_AA.ISO8859-6'
,
'as'
:
'as_IN.UTF-8'
,
'az'
:
'az_AZ.ISO8859-9E'
,
'az_az'
:
'az_AZ.ISO8859-9E'
,
'az_az.iso88599e'
:
'az_AZ.ISO8859-9E'
,
'be'
:
'be_BY.CP1251'
,
'be@latin'
:
'be_BY.UTF-8@latin'
,
'be_by'
:
'be_BY.CP1251'
,
'be_by.cp1251'
:
'be_BY.CP1251'
,
'be_by.microsoftcp1251'
:
'be_BY.CP1251'
,
'be_by.utf8@latin'
:
'be_BY.UTF-8@latin'
,
'be_by@latin'
:
'be_BY.UTF-8@latin'
,
'bg'
:
'bg_BG.CP1251'
,
'bg_bg'
:
'bg_BG.CP1251'
,
'bg_bg.cp1251'
:
'bg_BG.CP1251'
,
...
...
@@ -775,12 +801,30 @@ locale_alias = {
'c_c'
:
'C'
,
'c_c.c'
:
'C'
,
'ca'
:
'ca_ES.ISO8859-1'
,
'ca_ad'
:
'ca_AD.ISO8859-1'
,
'ca_ad.iso88591'
:
'ca_AD.ISO8859-1'
,
'ca_ad.iso885915'
:
'ca_AD.ISO8859-15'
,
'ca_ad.iso885915@euro'
:
'ca_AD.ISO8859-15'
,
'ca_ad.utf8@euro'
:
'ca_AD.UTF-8'
,
'ca_ad@euro'
:
'ca_AD.ISO8859-15'
,
'ca_es'
:
'ca_ES.ISO8859-1'
,
'ca_es.iso88591'
:
'ca_ES.ISO8859-1'
,
'ca_es.iso885915'
:
'ca_ES.ISO8859-15'
,
'ca_es.iso885915@euro'
:
'ca_ES.ISO8859-15'
,
'ca_es.utf8@euro'
:
'ca_ES.UTF-8'
,
'ca_es@euro'
:
'ca_ES.ISO8859-15'
,
'ca_fr'
:
'ca_FR.ISO8859-1'
,
'ca_fr.iso88591'
:
'ca_FR.ISO8859-1'
,
'ca_fr.iso885915'
:
'ca_FR.ISO8859-15'
,
'ca_fr.iso885915@euro'
:
'ca_FR.ISO8859-15'
,
'ca_fr.utf8@euro'
:
'ca_FR.UTF-8'
,
'ca_fr@euro'
:
'ca_FR.ISO8859-15'
,
'ca_it'
:
'ca_IT.ISO8859-1'
,
'ca_it.iso88591'
:
'ca_IT.ISO8859-1'
,
'ca_it.iso885915'
:
'ca_IT.ISO8859-15'
,
'ca_it.iso885915@euro'
:
'ca_IT.ISO8859-15'
,
'ca_it.utf8@euro'
:
'ca_IT.UTF-8'
,
'ca_it@euro'
:
'ca_IT.ISO8859-15'
,
'catalan'
:
'ca_ES.ISO8859-1'
,
'cextend'
:
'en_US.ISO8859-1'
,
'cextend.en'
:
'en_US.ISO8859-1'
,
...
...
@@ -802,6 +846,7 @@ locale_alias = {
'cz_cz'
:
'cs_CZ.ISO8859-2'
,
'czech'
:
'cs_CZ.ISO8859-2'
,
'da'
:
'da_DK.ISO8859-1'
,
'da.iso885915'
:
'da_DK.ISO8859-15'
,
'da_dk'
:
'da_DK.ISO8859-1'
,
'da_dk.88591'
:
'da_DK.ISO8859-1'
,
'da_dk.885915'
:
'da_DK.ISO8859-15'
,
...
...
@@ -812,6 +857,7 @@ locale_alias = {
'danish.iso88591'
:
'da_DK.ISO8859-1'
,
'dansk'
:
'da_DK.ISO8859-1'
,
'de'
:
'de_DE.ISO8859-1'
,
'de.iso885915'
:
'de_DE.ISO8859-15'
,
'de_at'
:
'de_AT.ISO8859-1'
,
'de_at.iso88591'
:
'de_AT.ISO8859-1'
,
'de_at.iso885915'
:
'de_AT.ISO8859-15'
,
...
...
@@ -993,6 +1039,7 @@ locale_alias = {
'fa_ir'
:
'fa_IR.UTF-8'
,
'fa_ir.isiri3342'
:
'fa_IR.ISIRI-3342'
,
'fi'
:
'fi_FI.ISO8859-15'
,
'fi.iso885915'
:
'fi_FI.ISO8859-15'
,
'fi_fi'
:
'fi_FI.ISO8859-15'
,
'fi_fi.88591'
:
'fi_FI.ISO8859-1'
,
'fi_fi.iso88591'
:
'fi_FI.ISO8859-1'
,
...
...
@@ -1008,6 +1055,7 @@ locale_alias = {
'fo_fo.iso885915'
:
'fo_FO.ISO8859-15'
,
'fo_fo@euro'
:
'fo_FO.ISO8859-15'
,
'fr'
:
'fr_FR.ISO8859-1'
,
'fr.iso885915'
:
'fr_FR.ISO8859-15'
,
'fr_be'
:
'fr_BE.ISO8859-1'
,
'fr_be.88591'
:
'fr_BE.ISO8859-1'
,
'fr_be.iso88591'
:
'fr_BE.ISO8859-1'
,
...
...
@@ -1094,6 +1142,7 @@ locale_alias = {
'hi'
:
'hi_IN.ISCII-DEV'
,
'hi_in'
:
'hi_IN.ISCII-DEV'
,
'hi_in.isciidev'
:
'hi_IN.ISCII-DEV'
,
'hne'
:
'hne_IN.UTF-8'
,
'hr'
:
'hr_HR.ISO8859-2'
,
'hr_hr'
:
'hr_HR.ISO8859-2'
,
'hr_hr.iso88592'
:
'hr_HR.ISO8859-2'
,
...
...
@@ -1120,6 +1169,7 @@ locale_alias = {
'iso_8859_1'
:
'en_US.ISO8859-1'
,
'iso_8859_15'
:
'en_US.ISO8859-15'
,
'it'
:
'it_IT.ISO8859-1'
,
'it.iso885915'
:
'it_IT.ISO8859-15'
,
'it_ch'
:
'it_CH.ISO8859-1'
,
'it_ch.iso88591'
:
'it_CH.ISO8859-1'
,
'it_ch.iso885915'
:
'it_CH.ISO8859-15'
,
...
...
@@ -1151,6 +1201,7 @@ locale_alias = {
'ja_jp.jis'
:
'ja_JP.JIS7'
,
'ja_jp.jis7'
:
'ja_JP.JIS7'
,
'ja_jp.mscode'
:
'ja_JP.SJIS'
,
'ja_jp.pck'
:
'ja_JP.SJIS'
,
'ja_jp.sjis'
:
'ja_JP.SJIS'
,
'ja_jp.ujis'
:
'ja_JP.eucJP'
,
'japan'
:
'ja_JP.eucJP'
,
...
...
@@ -1170,6 +1221,7 @@ locale_alias = {
'kl_gl.iso885915'
:
'kl_GL.ISO8859-15'
,
'kl_gl@euro'
:
'kl_GL.ISO8859-15'
,
'km_kh'
:
'km_KH.UTF-8'
,
'kn'
:
'kn_IN.UTF-8'
,
'kn_in'
:
'kn_IN.UTF-8'
,
'ko'
:
'ko_KR.eucKR'
,
'ko_kr'
:
'ko_KR.eucKR'
,
...
...
@@ -1177,6 +1229,8 @@ locale_alias = {
'ko_kr.euckr'
:
'ko_KR.eucKR'
,
'korean'
:
'ko_KR.eucKR'
,
'korean.euc'
:
'ko_KR.eucKR'
,
'ks'
:
'ks_IN.UTF-8'
,
'ks_in@devanagari'
:
'ks_IN@devanagari.UTF-8'
,
'kw'
:
'kw_GB.ISO8859-1'
,
'kw_gb'
:
'kw_GB.ISO8859-1'
,
'kw_gb.iso88591'
:
'kw_GB.ISO8859-1'
,
...
...
@@ -1199,6 +1253,7 @@ locale_alias = {
'lv_lv'
:
'lv_LV.ISO8859-13'
,
'lv_lv.iso885913'
:
'lv_LV.ISO8859-13'
,
'lv_lv.iso88594'
:
'lv_LV.ISO8859-4'
,
'mai'
:
'mai_IN.UTF-8'
,
'mi'
:
'mi_NZ.ISO8859-1'
,
'mi_nz'
:
'mi_NZ.ISO8859-1'
,
'mi_nz.iso88591'
:
'mi_NZ.ISO8859-1'
,
...
...
@@ -1207,6 +1262,8 @@ locale_alias = {
'mk_mk.cp1251'
:
'mk_MK.CP1251'
,
'mk_mk.iso88595'
:
'mk_MK.ISO8859-5'
,
'mk_mk.microsoftcp1251'
:
'mk_MK.CP1251'
,
'ml'
:
'ml_IN.UTF-8'
,
'mr'
:
'mr_IN.UTF-8'
,
'mr_in'
:
'mr_IN.UTF-8'
,
'ms'
:
'ms_MY.ISO8859-1'
,
'ms_my'
:
'ms_MY.ISO8859-1'
,
...
...
@@ -1221,6 +1278,7 @@ locale_alias = {
'nb_no.iso885915'
:
'nb_NO.ISO8859-15'
,
'nb_no@euro'
:
'nb_NO.ISO8859-15'
,
'nl'
:
'nl_NL.ISO8859-1'
,
'nl.iso885915'
:
'nl_NL.ISO8859-15'
,
'nl_be'
:
'nl_BE.ISO8859-1'
,
'nl_be.88591'
:
'nl_BE.ISO8859-1'
,
'nl_be.iso88591'
:
'nl_BE.ISO8859-1'
,
...
...
@@ -1247,6 +1305,8 @@ locale_alias = {
'no_no.88591'
:
'no_NO.ISO8859-1'
,
'no_no.iso88591'
:
'no_NO.ISO8859-1'
,
'no_no.iso885915'
:
'no_NO.ISO8859-15'
,
'no_no.iso88591@bokmal'
:
'no_NO.ISO8859-1'
,
'no_no.iso88591@nynorsk'
:
'no_NO.ISO8859-1'
,
'no_no@euro'
:
'no_NO.ISO8859-15'
,
'norwegian'
:
'no_NO.ISO8859-1'
,
'norwegian.iso88591'
:
'no_NO.ISO8859-1'
,
...
...
@@ -1268,6 +1328,8 @@ locale_alias = {
'oc_fr.iso88591'
:
'oc_FR.ISO8859-1'
,
'oc_fr.iso885915'
:
'oc_FR.ISO8859-15'
,
'oc_fr@euro'
:
'oc_FR.ISO8859-15'
,
'or'
:
'or_IN.UTF-8'
,
'pa'
:
'pa_IN.UTF-8'
,
'pa_in'
:
'pa_IN.UTF-8'
,
'pd'
:
'pd_US.ISO8859-1'
,
'pd_de'
:
'pd_DE.ISO8859-1'
,
...
...
@@ -1295,6 +1357,7 @@ locale_alias = {
'pp_an'
:
'pp_AN.ISO8859-1'
,
'pp_an.iso88591'
:
'pp_AN.ISO8859-1'
,
'pt'
:
'pt_PT.ISO8859-1'
,
'pt.iso885915'
:
'pt_PT.ISO8859-15'
,
'pt_br'
:
'pt_BR.ISO8859-1'
,
'pt_br.88591'
:
'pt_BR.ISO8859-1'
,
'pt_br.iso88591'
:
'pt_BR.ISO8859-1'
,
...
...
@@ -1311,8 +1374,9 @@ locale_alias = {
'ro_ro'
:
'ro_RO.ISO8859-2'
,
'ro_ro.iso88592'
:
'ro_RO.ISO8859-2'
,
'romanian'
:
'ro_RO.ISO8859-2'
,
'ru'
:
'ru_RU.ISO8859-5'
,
'ru_ru'
:
'ru_RU.ISO8859-5'
,
'ru'
:
'ru_RU.UTF-8'
,
'ru.koi8r'
:
'ru_RU.KOI8-R'
,
'ru_ru'
:
'ru_RU.UTF-8'
,
'ru_ru.cp1251'
:
'ru_RU.CP1251'
,
'ru_ru.iso88595'
:
'ru_RU.ISO8859-5'
,
'ru_ru.koi8r'
:
'ru_RU.KOI8-R'
,
...
...
@@ -1326,13 +1390,15 @@ locale_alias = {
'rw'
:
'rw_RW.ISO8859-1'
,
'rw_rw'
:
'rw_RW.ISO8859-1'
,
'rw_rw.iso88591'
:
'rw_RW.ISO8859-1'
,
'sd'
:
'sd_IN@devanagari.UTF-8'
,
'se_no'
:
'se_NO.UTF-8'
,
'serbocroatian'
:
'sr_CS.ISO8859-2'
,
'sh'
:
'sr_CS.ISO8859-2'
,
'serbocroatian'
:
'sr_RS.UTF-8@latin'
,
'sh'
:
'sr_RS.UTF-8@latin'
,
'sh_ba.iso88592@bosnia'
:
'sr_CS.ISO8859-2'
,
'sh_hr'
:
'sh_HR.ISO8859-2'
,
'sh_hr.iso88592'
:
'hr_HR.ISO8859-2'
,
'sh_sp'
:
'sr_CS.ISO8859-2'
,
'sh_yu'
:
'sr_
CS.ISO8859-2
'
,
'sh_yu'
:
'sr_
RS.UTF-8@latin
'
,
'si'
:
'si_LK.UTF-8'
,
'si_lk'
:
'si_LK.UTF-8'
,
'sinhala'
:
'si_LK.UTF-8'
,
...
...
@@ -1355,23 +1421,30 @@ locale_alias = {
'sq'
:
'sq_AL.ISO8859-2'
,
'sq_al'
:
'sq_AL.ISO8859-2'
,
'sq_al.iso88592'
:
'sq_AL.ISO8859-2'
,
'sr'
:
'sr_CS.ISO8859-5'
,
'sr@cyrillic'
:
'sr_CS.ISO8859-5'
,
'sr@latn'
:
'sr_CS.ISO8859-2'
,
'sr'
:
'sr_RS.UTF-8'
,
'sr@cyrillic'
:
'sr_RS.UTF-8'
,
'sr@latin'
:
'sr_RS.UTF-8@latin'
,
'sr@latn'
:
'sr_RS.UTF-8@latin'
,
'sr_cs'
:
'sr_RS.UTF-8'
,
'sr_cs.iso88592'
:
'sr_CS.ISO8859-2'
,
'sr_cs.iso88592@latn'
:
'sr_CS.ISO8859-2'
,
'sr_cs.iso88595'
:
'sr_CS.ISO8859-5'
,
'sr_cs.utf8@latn'
:
'sr_CS.UTF-8'
,
'sr_cs@latn'
:
'sr_CS.ISO8859-2'
,
'sr_cs.utf8@latn'
:
'sr_RS.UTF-8@latin'
,
'sr_cs@latn'
:
'sr_RS.UTF-8@latin'
,
'sr_me'
:
'sr_ME.UTF-8'
,
'sr_rs'
:
'sr_RS.UTF-8'
,
'sr_rs.utf8@latn'
:
'sr_RS.UTF-8@latin'
,
'sr_rs@latin'
:
'sr_RS.UTF-8@latin'
,
'sr_rs@latn'
:
'sr_RS.UTF-8@latin'
,
'sr_sp'
:
'sr_CS.ISO8859-2'
,
'sr_yu'
:
'sr_
CS.ISO8859-5
'
,
'sr_yu'
:
'sr_
RS.UTF-8@latin
'
,
'sr_yu.cp1251@cyrillic'
:
'sr_CS.CP1251'
,
'sr_yu.iso88592'
:
'sr_CS.ISO8859-2'
,
'sr_yu.iso88595'
:
'sr_CS.ISO8859-5'
,
'sr_yu.iso88595@cyrillic'
:
'sr_CS.ISO8859-5'
,
'sr_yu.microsoftcp1251@cyrillic'
:
'sr_CS.CP1251'
,
'sr_yu.utf8@cyrillic'
:
'sr_
C
S.UTF-8'
,
'sr_yu@cyrillic'
:
'sr_
CS.ISO8859-5
'
,
'sr_yu.utf8@cyrillic'
:
'sr_
R
S.UTF-8'
,
'sr_yu@cyrillic'
:
'sr_
RS.UTF-8
'
,
'ss'
:
'ss_ZA.ISO8859-1'
,
'ss_za'
:
'ss_ZA.ISO8859-1'
,
'ss_za.iso88591'
:
'ss_ZA.ISO8859-1'
,
...
...
@@ -1379,6 +1452,7 @@ locale_alias = {
'st_za'
:
'st_ZA.ISO8859-1'
,
'st_za.iso88591'
:
'st_ZA.ISO8859-1'
,
'sv'
:
'sv_SE.ISO8859-1'
,
'sv.iso885915'
:
'sv_SE.ISO8859-15'
,
'sv_fi'
:
'sv_FI.ISO8859-1'
,
'sv_fi.iso88591'
:
'sv_FI.ISO8859-1'
,
'sv_fi.iso885915'
:
'sv_FI.ISO8859-15'
,
...
...
@@ -1396,6 +1470,7 @@ locale_alias = {
'ta_in'
:
'ta_IN.TSCII-0'
,
'ta_in.tscii'
:
'ta_IN.TSCII-0'
,
'ta_in.tscii0'
:
'ta_IN.TSCII-0'
,
'te'
:
'te_IN.UTF-8'
,
'tg'
:
'tg_TJ.KOI8-C'
,
'tg_tj'
:
'tg_TJ.KOI8-C'
,
'tg_tj.koi8c'
:
'tg_TJ.KOI8-C'
,
...
...
@@ -1471,6 +1546,7 @@ locale_alias = {
'zh_cn.gbk'
:
'zh_CN.gbk'
,
'zh_hk'
:
'zh_HK.big5hkscs'
,
'zh_hk.big5'
:
'zh_HK.big5'
,
'zh_hk.big5hk'
:
'zh_HK.big5hkscs'
,
'zh_hk.big5hkscs'
:
'zh_HK.big5hkscs'
,
'zh_tw'
:
'zh_TW.big5'
,
'zh_tw.big5'
:
'zh_TW.big5'
,
...
...
Misc/NEWS
Dosyayı görüntüle @
fc531534
...
...
@@ -70,6 +70,9 @@ Core and Builtins
Library
-------
- Issue #8374: Update the internal alias table in the :mod:`locale` module
to cover recent locale changes and additions.
- Issue #8348: Fix test ftp url in test_urllib2net.
- Issue #8204: Fix test_ttk notebook test by forcing focus.
...
...
Tools/i18n/makelocalealias.py
Dosyayı görüntüle @
fc531534
...
...
@@ -9,7 +9,7 @@
import
locale
# Location of the alias file
LOCALE_ALIAS
=
'/usr/
lib
/X11/locale/locale.alias'
LOCALE_ALIAS
=
'/usr/
share
/X11/locale/locale.alias'
def
parse
(
filename
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment