[PATCH 6 of 6] i18n: get translation entries for description of each compression engines

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue Aug 15 12:19:06 EDT 2017


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1502798973 -32400
#      Tue Aug 15 21:09:33 2017 +0900
# Node ID 2f24939cbd6674abc6815746a07049fa98fa7fa6
# Parent  9278f5eb1e79227c875ddf3a2147b18fc529c504
# Available At https://bitbucket.org/foozy/mercurial-wip
#              hg pull https://bitbucket.org/foozy/mercurial-wip -r 2f24939cbd66
# EXP-Topic i18n-fix-update-pot-issues
i18n: get translation entries for description of each compression engines

Now, hggettext can be applied safely on util.py, of which
i18nfunctions contains appropriate objects related to each compression
types.

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -132,6 +132,7 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n
 	  mercurial/templater.py \
 	  mercurial/filemerge.py \
 	  mercurial/hgweb/webcommands.py \
+	  mercurial/util.py \
 	  $(DOCFILES) > i18n/hg.pot.tmp
         # All strings marked for translation in Mercurial contain
         # ASCII characters only. But some files contain string
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -3759,5 +3759,7 @@ def bundlecompressiontopics():
 
     return items
 
+i18nfunctions = bundlecompressiontopics().values()
+
 # convenient shortcut
 dst = debugstacktrace


More information about the Mercurial-devel mailing list