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

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Aug. 15, 2017, 4:19 p.m.
Message ID <2f24939cbd6674abc681.1502813946@speaknoevil>
Download mbox | patch
Permalink /patch/23022/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Aug. 15, 2017, 4:19 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@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.
Augie Fackler - Aug. 15, 2017, 7:57 p.m.
On Wed, Aug 16, 2017 at 01:19:06AM +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@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

queued, thanks

Patch

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