From: Ævar Arnfjörð Bjarmason Date: Fri, 10 Sep 2010 17:43:13 +0000 (+0000) Subject: gettext docs: add a "Testing your changes" section to po/README X-Git-Tag: ko-pu~10^2~47 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4387d5cb580efdc43e2cb2d9cce3d72680e0166;p=git.git gettext docs: add a "Testing your changes" section to po/README 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 --- diff --git a/po/README b/po/README index 51d6f3b5c..8ba06c848 100644 --- a/po/README +++ b/po/README @@ -56,3 +56,16 @@ and then in the po/ directory do: msgmerge --add-location --backup=off -U XX.po git.pot Where XX.po is the file you want to update. + +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.