mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
templater: tell hggettext to collect help of template functions
This commit is contained in:
parent
eeace59f46
commit
6c27e6c97a
1
Makefile
1
Makefile
@ -118,6 +118,7 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext
|
||||
hgext/*.py hgext/*/__init__.py \
|
||||
mercurial/fileset.py mercurial/revset.py \
|
||||
mercurial/templatefilters.py mercurial/templatekw.py \
|
||||
mercurial/templater.py \
|
||||
mercurial/filemerge.py \
|
||||
$(DOCFILES) > i18n/hg.pot.tmp
|
||||
# All strings marked for translation in Mercurial contain
|
||||
|
@ -793,3 +793,6 @@ def stylemap(styles, paths=None):
|
||||
return style, mapfile
|
||||
|
||||
raise RuntimeError("No hgweb templates found in %r" % paths)
|
||||
|
||||
# tell hggettext to extract docstrings from these functions:
|
||||
i18nfunctions = funcs.values()
|
||||
|
Loading…
Reference in New Issue
Block a user