On Fri, 2013-05-24 at 15:55 -0400, Chris Lumens wrote:
Note the hack warning. This cannot be added to mangleMap (where it
should go)
because python-babel does not understand that setting and anaconda will not
run in the correct language.
---
po/LINGUAS | 2 +-
pyanaconda/localization.py | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/po/LINGUAS b/po/LINGUAS
index 63f8e7c..0984c61 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -1,2 +1,2 @@
# Set of available languages.
-af am ar as ast bal be bg bn bn_IN bs ca cs cy da de de_CH el en@quot en@boldquot en_GB
es et eu eu_ES fa fi fr gl gu he hi hr hu hy id ilo is it ja ka kk kn ko lt lv mai mk ml
mr ms nb nds ne nl nn nso or pa pl pt pt_BR ro ru si sk sl sq sr sr@latin sv ta te tg th
tr uk ur vi zh_CN zh_TW zu
+af am ar as ast bal be bg bn bn_IN bs ca cs cy da de de_CH el en@quot en@boldquot en_GB
es et eu eu_ES fa fi fr gl gu he hi hr hu hy ia id ilo is it ja ka kk kn ko lt lv mai mk
ml mr ms nb nds ne nl nn nso or pa pl pt pt_BR ro ru si sk sl sq sr sr@latin sv ta te tg
th tr uk ur vi zh_CN zh_TW zu
diff --git a/pyanaconda/localization.py b/pyanaconda/localization.py
index e036d2e..84cfbb3 100644
--- a/pyanaconda/localization.py
+++ b/pyanaconda/localization.py
@@ -300,7 +300,12 @@ def write_language_configuration(lang, root):
try:
fpath = os.path.normpath(root + LOCALE_CONF_FILE_PATH)
with open(fpath, "w") as fobj:
- fobj.write('LANG="%s"\n' % lang.lang)
+ # FIXME: Remove this annoying hack once python-babel includes the
+ # right information.
+ if lang.lang == "ia":
+ fobj.write('LANG="ia_FR"\n')
One thing has just
come to my mind -- it should probably be
"ia_FR.utf-8". There were some problems when we missed the "utf-8"
suffix in that file. And 'locale -a|grep ^ia' gives both "ia_FR" and
"ia_FR.utf-8".
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic