Thread (113 messages) 113 messages, 3 authors, 2016-06-15

Re: [PATCH 03/72] t/test-lib.sh: add always-set NO_GETTEXT_POISON prerequisite

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:50:37

On Sun, Feb 20, 2011 at 23:10, Jonathan Nieder [off-list ref] wrote:
Ævar Arnfjörð Bjarmason wrote:
quoted
Well, the feature I have is to inject garbage into the gettext strings
in an effort to smoke out when I break the plumbing. So I think given
that functionality calling it NO_GETTEXT_POISON makes sense.

But I plan to add something to smoke other languages etc. later. Then
I might name that other prerequisite something else.
On second thought, another possibility would be _two_ prerequisites,
one NO_GETTEXT_POISON one and one ENGLISH one.  The weird edge cases
could require NO_GETTEXT_POISON, causing the reader to look to
t/README to figure out what is going on.  The others would just use
ENGLISH.

Does that sound reasonable?
Yes, I suggested implementing that in the "enter the commit message"
patch, but since we don't have a 100% translation yet I was going to
wait until then.

It's also a very low priority, the point of these tests is to make
sure I don't make a plumbing message translatable. The things that
start failing under a testing mode like ENGLISH are by definition a
subset of the things that'll start failing under NO_GETTEXT_POISON. So
there's not a lot of incentive for me to implement that.

The only reason I can think of to have it is to make sure that
messages like the "enter the commit message" ones have the correct
newlines in all languages, but msgfmt --check catches that anyway, or
to somehow test Git's output in different languages, but I'd rather do
that differently (not test output, but behavior).

So given all of the above I might never get around to implementing it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help