equal
deleted
inserted
replaced
75 test-%: |
75 test-%: |
76 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ |
76 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ |
77 |
77 |
78 update-pot: |
78 update-pot: |
79 mkdir -p i18n |
79 mkdir -p i18n |
80 pygettext -d doc -p i18n --docstrings \ |
80 pygettext -d hg -p i18n --docstrings \ |
81 mercurial/commands.py hgext/*.py hgext/*/__init__.py |
81 mercurial/commands.py hgext/*.py hgext/*/__init__.py |
82 pygettext -d all -p i18n mercurial hgext doc |
82 # All strings marked for translation in Mercurial contain |
83 msgcat --sort-by-file i18n/doc.pot i18n/all.pot > i18n/hg.pot |
83 # ASCII characters only. But some files contain string |
84 rm i18n/doc.pot i18n/all.pot |
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 .PHONY: help all local build doc clean install install-bin install-doc \ |
92 .PHONY: help all local build doc clean install install-bin install-doc \ |
87 install-home install-home-bin install-home-doc dist dist-notests tests \ |
93 install-home install-home-bin install-home-doc dist dist-notests tests \ |
88 update-pot |
94 update-pot |