Here are some trivial fixes to the gettext infrastructure. I
encountered these while doing more significant work.
It's based on next, and the gettext series I'm about to send soon will
be based on this one.
Ævar Arnfjörð Bjarmason (3):
gettext: update test/is.po to match t/t0200/test.c
Makefile: provide a --msgid-bugs-address to xgettext(1)
gettext: msgmerge is.po and add Language: header
Makefile | 7 ++++---
po/is.po | 10 ++++++----
t/t0200-gettext-basic.sh | 2 +-
3 files changed, 11 insertions(+), 8 deletions(-)
--
1.7.2.2.513.g82b8
Change the invocations of xgettext to use the --msgid-bugs-address
option. This has the effect of adding a Report-Msgid-Bugs-To header to
the git.pot and the derived *.po files. Doing so is recommended by the
gettext manual.
If this isn't added the Report-Msgid-Bugs-To already in po/is.po will
be removed by msgmerge(1).
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
Makefile | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Change test.c to use '' quotes around "git help COMMAND" as git.c
does. An earlier version of the gettext series didn't use '' quotes,
but I hadn't run msgmerge since then so I didn't spot it.
For reference, the msgmerge command:
msgmerge --backup=off -U is.po git.pot
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
po/is.po | 4 ++--
t/t0200-gettext-basic.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
@@ -10,8 +10,8 @@ msgstr """Content-Transfer-Encoding: 8bit\n"#: t/t0200/test.c:4-msgid"See git help COMMAND for more information on a specific command."-msgstr"Sjá git help SKIPUN til að sjá hjálp fyrir tiltekna skipun."+msgid"See 'git help COMMAND' for more information on a specific command."+msgstr"Sjá 'git help SKIPUN' til að sjá hjálp fyrir tiltekna skipun."#. TRANSLATORS: This is a test. You don't need to translate it.#: t/t0200/test.c:9
@@ -69,7 +69,7 @@ test_expect_success GETTEXT_LOCALE 'xgettext: C extraction of _() and N_() strinprintf"Sjá git help SKIPUN til að sjá hjálp fyrir tiltekna skipun.">>expect&&LANGUAGE=isLC_ALL="$is_IS_locale"gettext"TEST: A C test string">actual&&printf"\n">>actual&&-LANGUAGE=isLC_ALL="$is_IS_locale"gettext"See git help COMMAND for more information on a specific command.">>actual&&+LANGUAGE=isLC_ALL="$is_IS_locale"gettext"See '\''git help COMMAND'\'' for more information on a specific command.">>actual&&test_cmpexpectactual'
Change is.po to use the header order added by msgmerge(1), this'll
make subsequent diffs to it smaller and easier to manage. While I'm at
it add a Language header indicating that the file is in
Icelandic.
When we add more *.po files later we should add a Language header to
those as well.
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
po/is.po | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
On Sat, Aug 28, 2010 at 17:54, Ævar Arnfjörð Bjarmason [off-list ref] wrote:
Here are some trivial fixes to the gettext infrastructure. I
encountered these while doing more significant work.
It's based on next, and the gettext series I'm about to send soon will
be based on this one.
Please disregard this series. It has a bug, and in any case it's
better folded into a future gettext series that I'll submit later.