diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-20 19:17:44 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-20 19:17:44 +0000 |
commit | fd3c67830910dc379f7b89136db236bbb375f1a0 (patch) | |
tree | fd996aa00d7fa71e643d54bb831ace14b2e80271 /gui.py | |
parent | 9ce6c239bef3434343829763cbf03988b4b1f1fd (diff) | |
download | anaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.tar.gz anaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.tar.xz anaconda-fd3c67830910dc379f7b89136db236bbb375f1a0.zip |
more language selection changes
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |