Mercurial > hg
diff mercurial/i18n.py @ 36692:aeaf9c7f7528
py3: make gettext domain a system string
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 03 Mar 2018 19:12:47 -0500 |
parents | d00ec62d156f |
children | 5bc7ff103081 |
line wrap: on
line diff
--- a/mercurial/i18n.py Sun Mar 04 07:03:50 2018 -0500 +++ b/mercurial/i18n.py Sat Mar 03 19:12:47 2018 -0500 @@ -51,7 +51,7 @@ def setdatapath(datapath): datapath = pycompat.fsdecode(datapath) localedir = os.path.join(datapath, pycompat.sysstr('locale')) - t = gettextmod.translation('hg', localedir, _languages, fallback=True) + t = gettextmod.translation(r'hg', localedir, _languages, fallback=True) global _ugettext try: _ugettext = t.ugettext