From c8b11bcb1f497836bd8b8ae590ff91a204f98f46 Mon Sep 17 00:00:00 2001 From: FUJIWARA Katsunori Date: Tue, 15 Aug 2017 21:09:33 +0900 Subject: [PATCH] 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 | 1 + mercurial/util.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f994a43bac..44316c8833 100644 --- a/Makefile +++ b/Makefile @@ -132,6 +132,7 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext 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 index a7c1b14a1d..55960b4342 100644 --- a/mercurial/util.py +++ b/mercurial/util.py @@ -3759,5 +3759,7 @@ def bundlecompressiontopics(): return items +i18nfunctions = bundlecompressiontopics().values() + # convenient shortcut dst = debugstacktrace