Show More
@@ -77,11 +77,17 b' test-%:' | |||
|
77 | 77 | |
|
78 | 78 | update-pot: |
|
79 | 79 | mkdir -p i18n |
|
80 |
pygettext -d |
|
|
81 | mercurial/commands.py hgext/*.py hgext/*/__init__.py | |
|
82 | pygettext -d all -p i18n mercurial hgext doc | |
|
83 | msgcat --sort-by-file i18n/doc.pot i18n/all.pot > i18n/hg.pot | |
|
84 | rm i18n/doc.pot i18n/all.pot | |
|
80 | pygettext -d hg -p i18n --docstrings \ | |
|
81 | mercurial/commands.py hgext/*.py hgext/*/__init__.py | |
|
82 | # All strings marked for translation in Mercurial contain | |
|
83 | # ASCII characters only. But some files contain string | |
|
84 | # literals like this '\037\213'. xgettext thinks it has to | |
|
85 | # parse these them even though they are not marked for | |
|
86 | # translation. Extracting with an explicit encoding of | |
|
87 | # ISO-8859-1 will make xgettext "parse" and ignore them. | |
|
88 | find mercurial hgext doc -name '*.py' | xargs \ | |
|
89 | xgettext --from-code ISO-8859-1 --join --sort-by-file \ | |
|
90 | -d hg -p i18n -o hg.pot | |
|
85 | 91 | |
|
86 | 92 | .PHONY: help all local build doc clean install install-bin install-doc \ |
|
87 | 93 | install-home install-home-bin install-home-doc dist dist-notests tests \ |
General Comments 0
You need to be logged in to leave comments.
Login now