Mercurial > hg-stable
diff mercurial/i18n.py @ 30085:2bde971474d2
i18n: make the locale directory name the same string type as the datapath
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 08 Oct 2016 05:26:18 -0400 |
parents | d229be12e256 |
children | 8321b083a83d |
line wrap: on
line diff
--- a/mercurial/i18n.py Sat Oct 08 10:39:00 2016 -0400 +++ b/mercurial/i18n.py Sat Oct 08 05:26:18 2016 -0400 @@ -49,7 +49,7 @@ _ugettext = None def setdatapath(datapath): - localedir = os.path.join(datapath, 'locale') + localedir = os.path.join(datapath, pycompat.sysstr('locale')) t = gettextmod.translation('hg', localedir, _languages, fallback=True) global _ugettext try: