author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Mon, 13 Sep 2010 12:42:29 +0000 (12:42 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:58:18 +0000 (07:58 +0000) | ||
commit | 17ba7b80b78795e9ee6ff59f6f85178b5d155d3f | |
tree | 99bd32336289a31ec4dba06bf1822e58bf28f593 | tree | snapshot |
parent | c02a9ec903b0f727b554e762b1f3f71093fa7c5a | commit | diff |
Makefile: only add gettext tests on XGETTEXT_INCLUDE_TESTS=YesPlease
Change the "pot" target so that the xgettext(1) invocation no longer
include test files from t/t0200.
These should only be included in the Icelandic is.po file since Git's
own test suite uses them for regression tests, but nobody else should
translate them. Previously I indicated this with a TRANSLATORS comment
for all the strings:
#. TRANSLATORS: This is a test. You don't need to translate it.
#, c-format
msgid "TEST: A C test string %s"
msgstr ""
But if translators follow those instructions they'll never have 100%
translation coverage. It's much better to add a hidden option so that
is.po now has to use a special git.pot file for msgmerge(1):
make pot XGETTEXT_INCLUDE_TESTS=YesPlease
But everything else can continue to use the documented:
make pot
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Change the "pot" target so that the xgettext(1) invocation no longer
include test files from t/t0200.
These should only be included in the Icelandic is.po file since Git's
own test suite uses them for regression tests, but nobody else should
translate them. Previously I indicated this with a TRANSLATORS comment
for all the strings:
#. TRANSLATORS: This is a test. You don't need to translate it.
#, c-format
msgid "TEST: A C test string %s"
msgstr ""
But if translators follow those instructions they'll never have 100%
translation coverage. It's much better to add a hidden option so that
is.po now has to use a special git.pot file for msgmerge(1):
make pot XGETTEXT_INCLUDE_TESTS=YesPlease
But everything else can continue to use the documented:
make pot
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Makefile | diff | blob | history |