i18n: get translation entries for description of each compression engines
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 15 Aug 2017 21:09:33 +0900
changeset 33820 fa7e30efe05a
parent 33819 d5ef17608159
child 33821 3c91cc0c5fde
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.
Makefile
mercurial/util.py
--- 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