Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] i18n: disable i18n for shell scripts if NO_GETTEXT defined

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:49

Possibly related (same subject, not in this thread)

Johannes Sixt [off-list ref] writes:
... We have, e.g., NO_MMAP, and I can set it to request
that some alternative is used, even if I have a working mmap(). The option
name "NO_GETTEXT" is in exactly the same spirit.
quoted
In the current approach we take for shell scripts, we cannot have "No i18n
whatsoever and messages are emit with printf and echo". We always have to
go through gettext/eval_gettext even though they may be an implementation
that does not do i18n at all.
Just like we go through _() in C code, even though there may be an
implementation that does not do i18n at all, right?
Yes, just like that. The small detail that _() can be #define'd out to
empty while gettext/eval_gettext cannot be made to be no-impact like that
does not really matter.
In C, it is easy, in shell code it may be more involved.
Correct.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help