diff options
author | Ján ONDREJ <ondrejj@salstar.sk> | 2008-06-04 06:38:02 +0000 |
---|---|---|
committer | Ján ONDREJ <ondrejj@salstar.sk> | 2008-06-04 06:38:02 +0000 |
commit | 96d7f3e7e678a8ac9919ce628c2f792d4cb57955 (patch) | |
tree | 71d6ba7f9e48f87f90a8f8d5c8937c229913d6c5 /language.py | |
parent | e772036e9972589c7808428c9fd00b90b2089a66 (diff) | |
download | anaconda-96d7f3e7e678a8ac9919ce628c2f792d4cb57955.tar.gz anaconda-96d7f3e7e678a8ac9919ce628c2f792d4cb57955.tar.xz anaconda-96d7f3e7e678a8ac9919ce628c2f792d4cb57955.zip |
2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)
* po/sk.po: Typo fix.
Diffstat (limited to 'language.py')
-rw-r--r-- | language.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/language.py b/language.py index 908b3f2df..64ecca2fb 100644 --- a/language.py +++ b/language.py @@ -24,7 +24,7 @@ import os import string import locale -from rhpl.translate import cat +import gettext from rhpl.simpleconfig import SimpleConfigFile import logging @@ -213,7 +213,10 @@ class Language: except locale.Error: pass - cat.setlangs(expandLangs(os.environ["LANG"])) + # XXX: oh ick. this is the sort of thing which you should never do... + # but we switch languages at runtime and thus need to invalidate + # the set of languages/mofiles which gettext knows about + gettext._translations = {} def write(self, instPath): f = open(instPath + "/etc/sysconfig/i18n", "w") |