comparison Makefile @ 8542:de150a942ec8

i18n: accurately generate hg.pot
author Martin Geisler <mg@lazybytes.net>
date Thu, 21 May 2009 23:43:13 +0200
parents 94e91205d9b6
children 34754aa62cd8
comparison
equal deleted inserted replaced
8541:06ace50443f6 8542:de150a942ec8
79 79
80 update-pot: i18n/hg.pot 80 update-pot: i18n/hg.pot
81 81
82 i18n/hg.pot: $(PYTHON_FILES) 82 i18n/hg.pot: $(PYTHON_FILES)
83 mkdir -p i18n 83 mkdir -p i18n
84 pygettext -d hg -p i18n --docstrings \ 84 $(PYTHON) i18n/hggettext mercurial/commands.py \
85 mercurial/commands.py hgext/*.py hgext/*/__init__.py 85 hgext/*.py hgext/*/__init__.py > i18n/hg.pot
86 # All strings marked for translation in Mercurial contain 86 # All strings marked for translation in Mercurial contain
87 # ASCII characters only. But some files contain string 87 # ASCII characters only. But some files contain string
88 # literals like this '\037\213'. xgettext thinks it has to 88 # literals like this '\037\213'. xgettext thinks it has to
89 # parse them even though they are not marked for translation. 89 # parse them even though they are not marked for translation.
90 # Extracting with an explicit encoding of ISO-8859-1 will make 90 # Extracting with an explicit encoding of ISO-8859-1 will make