changeset 33820:fa7e30efe05a

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.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 15 Aug 2017 21:09:33 +0900
parents d5ef17608159
children 3c91cc0c5fde
files Makefile mercurial/util.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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