mercurial/i18n.py
changeset 30085 2bde971474d2
parent 30050 d229be12e256
child 30301 8321b083a83d
equal deleted inserted replaced
30084:a492610a2fc1 30085:2bde971474d2
    47         pass
    47         pass
    48 
    48 
    49 _ugettext = None
    49 _ugettext = None
    50 
    50 
    51 def setdatapath(datapath):
    51 def setdatapath(datapath):
    52     localedir = os.path.join(datapath, 'locale')
    52     localedir = os.path.join(datapath, pycompat.sysstr('locale'))
    53     t = gettextmod.translation('hg', localedir, _languages, fallback=True)
    53     t = gettextmod.translation('hg', localedir, _languages, fallback=True)
    54     global _ugettext
    54     global _ugettext
    55     try:
    55     try:
    56         _ugettext = t.ugettext
    56         _ugettext = t.ugettext
    57     except AttributeError:
    57     except AttributeError: