File mercurial-locale-path-fix.patch of Package mercurial.openSUSE_Leap_42.2_Update
Index: mercurial-3.8.1/mercurial/i18n.py
===================================================================
--- mercurial-3.8.1.orig/mercurial/i18n.py
+++ mercurial-3.8.1/mercurial/i18n.py
@@ -46,7 +46,7 @@ if (os.name == 'nt'
_ugettext = None
def setdatapath(datapath):
- localedir = os.path.join(datapath, 'locale')
+ localedir = '/usr/share/locale'
t = gettextmod.translation('hg', localedir, _languages, fallback=True)
global _ugettext
try: