Submitter | Yuya Nishihara |
---|---|
Date | March 4, 2018, 12:15 a.m. |
Message ID | <de317419d5babc9b88aa.1520122538@mimosa> |
Download | mbox | patch |
Permalink | /patch/28888/ |
State | Accepted |
Headers | show |
Comments
On Sat, Mar 03, 2018 at 07:15:38PM -0500, Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara <yuya@tcha.org> > # Date 1520122367 18000 > # Sat Mar 03 19:12:47 2018 -0500 > # Node ID de317419d5babc9b88aa17664eed96e8d7f8dbe8 > # Parent 1880fc2cbfc27c8b2fb0073f8aa9c0fa54937969 > py3: make gettext domain a system string queued, thanks
Patch
diff --git a/mercurial/i18n.py b/mercurial/i18n.py --- a/mercurial/i18n.py +++ b/mercurial/i18n.py @@ -51,7 +51,7 @@ if (pycompat.iswindows 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