summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
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")