File mercurial-locale-path-fix.patch of Package mercurial

--- mercurial-7.0.2-orig/mercurial/i18n.py	2025-05-07 11:01:05.000000000 +0100
+++ mercurial-7.0.2/mercurial/i18n.py	2025-05-23 14:09:52.127300176 +0100
@@ -55,7 +55,7 @@
 
 
 datapath = pycompat.fsdecode(resourceutil.datapath)
-localedir = os.path.join(datapath, 'locale')
+localedir = os.getenv('OPENSUSE_HG_LOCALE_PATH', '/usr/share/locale')
 t = gettextmod.translation('hg', localedir, _languages, fallback=True)
 try:
     _ugettext = t.ugettext  # pytype: disable=attribute-error
openSUSE Build Service is sponsored by