[PATCH v2 0/3] No-op C gettext wrappers
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Feb 21, 2011, 04:00 UTC
- Message-ID
- <20110221040012.GB26968@elie>
- In-Reply-To
- <1298143495-3681-1-git-send-email-avarab@gmail.com>
Hi,
Ævar Arnfjörð Bjarmason wrote:
> As discussed on-list previously I'm remaking the gettext series in a > form that'll be easier to swallow.
Here's a reroll of the skeleton gettext.h wrapper as requested. I'll send some gettextization patches in a separate series, time permitting.
Changes from v1:
- renamed NO_GETTEXT_POISON prereq to C_LOCALE_OUTPUT. This should make it possible to reuse that prereq is the test suite ever learns a --lang option. Hopefully this will also make it easier for authors of new tests to tell whether that prereq needs to be set. - GETTEXT_POISON can be enabled or disabled at runtime - _() is an inline function to catch misuses like
const char *some_strings[] = { _("foo"), _("bar"), _("baz") };
- combined some patches, tweaked commit messagesThoughts welcome, as always. Jonathan Nieder (1): tests: let GETTEXT_POISON be disabled at run time
Ævar Arnfjörð Bjarmason (2): i18n: add no-op _() and N_() wrappers tests: add GETTEXT_POISON to simulate unfriendly translator
Makefile | 9 +++++++++ cache.h | 1 + gettext.c | 14 ++++++++++++++ gettext.h | 32 ++++++++++++++++++++++++++++++++ t/test-lib.sh | 9 +++++++++ 5 files changed, 65 insertions(+), 0 deletions(-) create mode 100644 gettext.c create mode 100644 gettext.h