summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
authorJán ONDREJ <ondrejj@salstar.sk>2008-06-04 06:38:02 +0000
committerJán ONDREJ <ondrejj@salstar.sk>2008-06-04 06:38:02 +0000
commit96d7f3e7e678a8ac9919ce628c2f792d4cb57955 (patch)
tree71d6ba7f9e48f87f90a8f8d5c8937c229913d6c5 /language.py
parente772036e9972589c7808428c9fd00b90b2089a66 (diff)
downloadanaconda-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.py7
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")