If we change language during Python, build the new locale files.
We hit this on DVD installs (or if nopass is provided) since we completely
skip loader's language selection screen.
---
anaconda | 1 +
pyanaconda/iw/language_gui.py | 1 +
pyanaconda/kickstart.py | 1 +
pyanaconda/language.py | 20 +++++++++++++++++++-
pyanaconda/textw/language_text.py | 1 +
5 files changed, 23 insertions(+), 1 deletions(-)
+def langComponents(astring):
+ pattern = re.compile("(?P<language>[A-Za-z]+)(_(?P<territory>[A-Za-z]+))?(.(?P<codeset>[-w]+))?(@(?P<modifier>[-w]+))?")
+ m = pattern.match(astring)
+ return m.groupdict()
+
# Converts a single language into a "language search path". For example,
-# fr_FR.utf8@euro would become "fr_FR.utf8@eueo fr_FR.utf8 fr_FR fr"
+# fr_FR.utf8@euro would become "fr_FR.utf8@euro fr_FR.utf8 fr_FR fr"
def expandLangs(astring):
langs = [astring]
charset = None
@@ -200,6 +206,18 @@ class Language(object):
def available(self):
return self.nativeLangNames.keys()
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
04-06-2011, 08:10 PM
Chris Lumens
If we change language during Python, build the new locale files.
We hit this on DVD installs (or if nopass is provided) since we completely
skip loader's language selection screen.
---
anaconda | 1 +
pyanaconda/iw/language_gui.py | 1 +
pyanaconda/kickstart.py | 1 +
pyanaconda/language.py | 20 +++++++++++++++++++-
pyanaconda/textw/language_text.py | 1 +
5 files changed, 23 insertions(+), 1 deletions(-)
+def langComponents(astring):
+ pattern = re.compile("(?P<language>[A-Za-z]+)(_(?P<territory>[A-Za-z]+))?(.(?P<codeset>[-w]+))?(@(?P<modifier>[-w]+))?")
+ m = pattern.match(astring)
+ return m.groupdict()
+
# Converts a single language into a "language search path". For example,
-# fr_FR.utf8@euro would become "fr_FR.utf8@eueo fr_FR.utf8 fr_FR fr"
+# fr_FR.utf8@euro would become "fr_FR.utf8@euro fr_FR.utf8 fr_FR fr"
def expandLangs(astring):
langs = [astring]
charset = None
@@ -200,6 +206,18 @@ class Language(object):
def available(self):
return self.nativeLangNames.keys()