summaryrefslogtreecommitdiffstats
path: root/scripts/getlangnames.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-03-29 19:47:14 +0000
committerChris Lumens <clumens@redhat.com>2005-03-29 19:47:14 +0000
commit00ca3f0f4c30945c42b313716ef3a3189d43ddfa (patch)
treef0c5f75355f52ed11d7c310e1dab0c4303267884 /scripts/getlangnames.py
parentc5c389047f0895675c11746b7b8316826f99e4b8 (diff)
downloadanaconda-00ca3f0f4c30945c42b313716ef3a3189d43ddfa.tar.gz
anaconda-00ca3f0f4c30945c42b313716ef3a3189d43ddfa.tar.xz
anaconda-00ca3f0f4c30945c42b313716ef3a3189d43ddfa.zip
Corrected getlangnames.py for change in lang-table file format.
Diffstat (limited to 'scripts/getlangnames.py')
-rw-r--r--scripts/getlangnames.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/getlangnames.py b/scripts/getlangnames.py
index a1cae80f2..99ebda514 100644
--- a/scripts/getlangnames.py
+++ b/scripts/getlangnames.py
@@ -7,8 +7,13 @@ import language
rhpl.translate.cat.setunicode(1)
langs = language.InstallTimeLanguage()
-for lang in langs.available():
- langs.setRuntimeLanguage(lang)
- print lang, _(lang)
+names = {}
+for k in langs.localeInfo.keys():
+ langs.setRuntimeLanguage(k)
+ names[langs.localeInfo[k][0]] = _(langs.localeInfo[k][0])
-
+nameList = names.keys()
+nameList.sort()
+
+for k in nameList:
+ print k, names[k]