mercurial/i18n.py
changeset 36835 5bc7ff103081
parent 36692 aeaf9c7f7528
child 38312 79dd61a4554f
equal deleted inserted replaced
36834:1527f40de3b3 36835:5bc7ff103081
    48 
    48 
    49 _ugettext = None
    49 _ugettext = None
    50 
    50 
    51 def setdatapath(datapath):
    51 def setdatapath(datapath):
    52     datapath = pycompat.fsdecode(datapath)
    52     datapath = pycompat.fsdecode(datapath)
    53     localedir = os.path.join(datapath, pycompat.sysstr('locale'))
    53     localedir = os.path.join(datapath, r'locale')
    54     t = gettextmod.translation(r'hg', localedir, _languages, fallback=True)
    54     t = gettextmod.translation(r'hg', localedir, _languages, fallback=True)
    55     global _ugettext
    55     global _ugettext
    56     try:
    56     try:
    57         _ugettext = t.ugettext
    57         _ugettext = t.ugettext
    58     except AttributeError:
    58     except AttributeError: