This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients ggenellina, lemburg, loewis, santhosh.thottingal, skrah
Date 2011-04-03.20:11:26
SpamBayes Score 0.000171779
Marked as misclassified No
Message-id <1301861487.73.0.245870526894.issue6895@psf.upfronthosting.co.za>
In-reply-to
Content
Is there another (authoritative) source for locale aliases apart
from X.org? On Ubuntu Lucid, many aliases for installed locales
are missing:


f = open("/var/lib/locales/supported.d/local")
locale_list = [loc.split()[0] for loc in f.readlines() \
               if not loc.startswith('#')]

for loc in locale_list:
    x = locale.setlocale(locale.LC_ALL, loc)
    try:
        y = locale.getlocale()
    except ValueError:
        print(loc)

aa_DJ
aa_ER
aa_ER@saaho
aa_ET
an_ES
ar_IN
ast_ES
ber_DZ
ber_MA
bn_BD
bo_CN
bo_IN
byn_ER
ca_ES@valencia
crh_UA
csb_PL
dv_MV
dz_BT
el_CY
en_AG
en_DK
en_NG
eu_FR
fil_PH
fur_IT
fy_NL
fy_DE
gez_ER
gez_ER@abegede
gez_ET
gez_ET@abegede
ha_NG
hne_IN
hsb_DE
ht_HT
hy_AM
ia
ig_NG
ik_CA
kk_KZ
kk_KZ
ks_IN
ks_IN@devanagari
ku_TR
lg_UG
li_BE
li_NL
mai_IN
mg_MG
ml_IN
mn_MN
my_MM
nan_TW@latin
nds_DE
nds_NL
ne_NP
nl_AW
om_ET
om_KE
or_IN
pa_PK
pap_AN
ps_AF
sa_IN
sc_IT
sd_IN
sd_IN@devanagari
shs_CA
sid_ET
so_DJ
so_ET
so_KE
so_SO
te_IN
ti_ER
ti_ET
tig_ER
tk_TM
tr_CY
tt_RU@iqtelif.UTF-8
ug_CN
wal_ET
wo_SN
yo_NG
zh_SG
History
Date User Action Args
2011-04-03 20:11:27skrahsetrecipients: + skrah, lemburg, loewis, ggenellina, santhosh.thottingal
2011-04-03 20:11:27skrahsetmessageid: <1301861487.73.0.245870526894.issue6895@psf.upfronthosting.co.za>
2011-04-03 20:11:27skrahlinkissue6895 messages
2011-04-03 20:11:26skrahcreate