|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/share/yum-cli/ |
Upload File : |
#!/usr/bin/env python
"""i18n abstraction
License: GPL
Author: Vladimir Bormotov <bor@vb.dn.ua>
$Id: i18n.py,v 1.3 2004/01/28 07:31:02 skvidal Exp $
"""
# $RCSfile: i18n.py,v $
__version__ = "$Revision: 1.3 $"[11:-2]
__date__ = "$Date: 2004/01/28 07:31:02 $"[7:-2]
try:
import gettext
import sys
if sys.version_info[0] == 2:
t = gettext.translation('yum')
_ = t.gettext
else:
gettext.bindtextdomain('yum', '/usr/share/locale')
gettext.textdomain('yum')
_ = gettext.gettext
except:
def _(str):
"""pass given string as-is"""
return str
if __name__ == '__main__':
pass
# vim: set ts=4 et :