diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-29 23:57:25 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-29 23:57:25 +0000 |
commit | fc5839d2e4e693c7e11a33380a02607de9ceb36b (patch) | |
tree | 3b20c4442e99d211bc546843aea9e51394454630 /gui.py | |
parent | bb04e5e0d741a60eab15c731d4de0d918ca3726d (diff) | |
download | anaconda-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-x | gui.py | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -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) |