home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Australian Personal Computer 2000 July
/
CD 3
/
redhat-6.2.iso
/
RedHat
/
instimage
/
usr
/
lib
/
anaconda
/
translate.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2000-03-08
|
377 b
|
16 lines
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