From: Ævar Arnfjörð Bjarmason Date: Fri, 10 Sep 2010 19:35:49 GMT Subject: [PATCH 1/5] gettext docs: add a "Testing your changes" section to po/README Message-ID: <1284147353-18000-2-git-send-email-avarab@gmail.com> In-Reply-To: Change po/README to tell translators that they should do `make` at the top-level before submitting their translations. Many common errors will be caught with the `msgfmt --check` run that the Makefile will compile the message catalogs with. Signed-off-by: Ævar Arnfjörð Bjarmason --- po/README | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/po/README b/po/README index cca8012..4d23ca6 100644 --- a/po/README +++ b/po/README @@ -66,3 +66,17 @@ But then you need remember to remove the comments before you submit the file upstream: perl -pi -e 's/^#: .*\n//' XX.po + + +Testing your changes +-------------------- + +Before you submit your changes go back to the top-level and do: + + make + +On systems with GNU gettext (i.e. not Solaris) this will compile your +changed PO file with `msgfmt --check`, the --check option flags many +common errors, e.g. missing printf format strings, or translated +messages that deviate from the originals in whether they begin/end +with a newline or not. -- 1.7.2.3.313.gcd15