From a4387d5cb580efdc43e2cb2d9cce3d72680e0166 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 10 Sep 2010 17:43:13 +0000 Subject: [PATCH] gettext docs: add a "Testing your changes" section to po/README MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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. -- 2.30.2