Thread (113 messages) flat view 113 messages, 3 authors, 2016-06-15
DORMANTno replies

[PATCH v2 0/3] No-op C gettext wrappers

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:50:37

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 messages

Thoughts 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help