[PATCH] Add support for the Interlingua language (#872423).

Chris Lumens clumens at redhat.com
Fri May 24 19:55:36 UTC 2013


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 at quot en at 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 at 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 at quot en at 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 at 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')
+            else:
+                fobj.write('LANG="%s"\n' % lang.lang)
 
     except IOError as ioerr:
         msg = "Cannot write language configuration file: %s" % ioerr.strerror
-- 
1.8.1.2



More information about the anaconda-patches mailing list