[PATCH] py3: make gettext domain a system string

Yuya Nishihara yuya at tcha.org
Sun Mar 4 00:15:38 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at 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

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


More information about the Mercurial-devel mailing list