summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-29 23:57:25 +0000
committerMatt Wilson <msw@redhat.com>2000-02-29 23:57:25 +0000
commitfc5839d2e4e693c7e11a33380a02607de9ceb36b (patch)
tree3b20c4442e99d211bc546843aea9e51394454630 /gui.py
parentbb04e5e0d741a60eab15c731d4de0d918ca3726d (diff)
downloadanaconda-fc5839d2e4e693c7e11a33380a02607de9ceb36b.tar.gz
anaconda-fc5839d2e4e693c7e11a33380a02607de9ceb36b.tar.xz
anaconda-fc5839d2e4e693c7e11a33380a02607de9ceb36b.zip
o massive move to a better translation model
o rename unprobed monitor to Generic Monitor
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/gui.py b/gui.py
index 59f011428..cc6cf0b1c 100755
--- a/gui.py
+++ b/gui.py
@@ -1,16 +1,11 @@
import gettext_rh
import os
-
-cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale")
-
-def _(string):
- return cat.gettext(string)
-
from gtk import *
from gtk import _root_window
from _gtk import gtk_set_locale
import GdkImlib
from GDK import *
+from translate import cat, _
im = None
splashwindow = None
@@ -256,17 +251,14 @@ class InstallInterface:
class InstallControlWindow (Thread):
def setLanguage (self, lang):
- global cat
-
newlangs = [lang]
if len(lang) > 2:
newlangs.append(lang[:2])
self.locale = lang[:2]
- gettext_rh.setlangs (newlangs)
-
- cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale")
+ cat.setlangs (newlangs)
+
for l in newlangs:
if os.access ("/etc/gtk/gtkrc." + l, os.R_OK):
rc_parse("/etc/gtk/gtkrc." + l)