Re: [PATCH 14/15] gettextize: git-revert split up "could not revert/apply" message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 6, 2010 at 18:55, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote:
> (+cc: Christian)
>
> Ævar Arnfjörð Bjarmason wrote:
>
>> Split up the "could not %s %s... %s" message into "could not revert
>> %s... %s" and "could not apply %s... %s". This makes it easier for
>> translators to understand the message.
>
> Right, parts of speech can be a pain.  So:
> Acked-by: Jonathan Nieder <jrnieder@xxxxxxxxx>

Thanks.

>> --- a/t/t3507-cherry-pick-conflict.sh
>> +++ b/t/t3507-cherry-pick-conflict.sh
>> @@ -38,7 +38,7 @@ test_expect_success 'failed cherry-pick does not advance HEAD' '
>>       test "$head" = "$newhead"
>>  '
>>
>> -test_expect_success 'advice from failed cherry-pick' "
>> +test_expect_success NO_GETTEXT_POISON 'advice from failed cherry-pick' "
>
> An idea (it may or may not be a good one ;-)): what if we made the gettext
> poison into an automatically generated .po file?  Then testing poison
> would be a special case of running tests with an arbitrary locale:
>
>  $ TEST_LANGUAGE=poison prove t[0-9]*.sh
>
> and this test prerequisite could be more intuitively named LOCALE_C or
> similar.

The issue with that is that gettext depends on setlocale(), which
requires a *valid* locale. This is why I skip the t/lib-gettext.sh
tests unless `locale -a` says is_IS is there, because even if we
compile is.po using it won't work without the locale.

So to do this we'd have steal some locale.

Also, the set of tests we want to skip under POISON (i.e. automated
garbage) is slightly different from the tests we want to skip under
TEST_LOCALE=, because some of those tests are checking for the %s in
"file failed: %s". So they'll fail under POISON, but shouldn't fail
under any translation.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]