New intl.py
svn: r585
This commit is contained in:
parent
e9f9eb6aa3
commit
761f88ab2d
29
gramps/src/intl.py
Normal file
29
gramps/src/intl.py
Normal file
@ -0,0 +1,29 @@
|
||||
import sys
|
||||
|
||||
ver = sys.version[0:3]
|
||||
|
||||
try:
|
||||
if ver == "1.5":
|
||||
from intl15 import *
|
||||
elif ver == "2.0":
|
||||
from intl20 import *
|
||||
elif ver == "2.1":
|
||||
from intl21 import *
|
||||
else:
|
||||
def gettext(s):
|
||||
return s
|
||||
|
||||
def textdomain(s):
|
||||
return
|
||||
|
||||
def bindtextdomain(s,x):
|
||||
return
|
||||
except:
|
||||
def gettext(s):
|
||||
return s
|
||||
|
||||
def textdomain(s):
|
||||
return
|
||||
|
||||
def bindtextdomain(s,x):
|
||||
return
|
Loading…
Reference in New Issue
Block a user