summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-20 19:17:44 +0000
committerMatt Wilson <msw@redhat.com>1999-09-20 19:17:44 +0000
commitfd3c67830910dc379f7b89136db236bbb375f1a0 (patch)
treefd996aa00d7fa71e643d54bb831ace14b2e80271 /gui.py
parent9ce6c239bef3434343829763cbf03988b4b1f1fd (diff)
downloadanaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.tar.gz
anaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.tar.xz
anaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.zip
more language selection changes
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index c2a2eb07e..fd077e505 100755
--- a/gui.py
+++ b/gui.py
@@ -1,7 +1,17 @@
import gettext
cat = gettext.Catalog ("anaconda", "/usr/share/locale")
-_ = cat.gettext
+
+def _(string):
+ return cat.gettext(string)
+
+def setLanguage (lang):
+ global cat
+ newlangs = [lang]
+ if len(lang) > 2:
+ newlangs.append(lang[:2])
+ gettext.setlangs (newlangs)
+ cat = gettext.Catalog ("anaconda", "/usr/share/locale")
from gtk import *
from gtk import _root_window