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.
--- a/Makefile Tue Aug 15 21:06:26 2017 +0900
+++ b/Makefile Tue Aug 15 21:09:33 2017 +0900
@@ -132,6 +132,7 @@
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
--- a/mercurial/util.py Tue Aug 15 21:06:26 2017 +0900
+++ b/mercurial/util.py Tue Aug 15 21:09:33 2017 +0900
@@ -3759,5 +3759,7 @@
return items
+i18nfunctions = bundlecompressiontopics().values()
+
# convenient shortcut
dst = debugstacktrace