diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-29 23:57:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-29 23:57:39 +0000 |
commit | a6d7cd1d6cbbd7135b2b89e2a5bfe6d472422747 (patch) | |
tree | 03c2870c0ca583185c25e4fcddb83165d3f5fd76 | |
parent | fc5839d2e4e693c7e11a33380a02607de9ceb36b (diff) | |
download | anaconda-a6d7cd1d6cbbd7135b2b89e2a5bfe6d472422747.tar.gz anaconda-a6d7cd1d6cbbd7135b2b89e2a5bfe6d472422747.tar.xz anaconda-a6d7cd1d6cbbd7135b2b89e2a5bfe6d472422747.zip |
add translate.py
-rw-r--r-- | translate.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/translate.py b/translate.py new file mode 100644 index 000000000..917ababd4 --- /dev/null +++ b/translate.py @@ -0,0 +1,15 @@ +import gettext_rh + +class i18n: + def __init__(self): + self.cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale") + + def setlangs(self, langs): + gettext_rh.setlangs (langs) + self.cat = gettext_rh.Catalog ("anaconda", "/usr/share/locale") + + def gettext(self, string): + return self.cat.gettext(string) + +cat = i18n() +_ = cat.gettext |