equal
deleted
inserted
replaced
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: |