[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28423] gnu: Add imb-openmpi.
From: |
Ludovic Courtès |
Subject: |
[bug#28423] gnu: Add imb-openmpi. |
Date: |
Tue, 03 Oct 2017 21:51:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Dave Love <address@hidden> skribis:
> Ludovic Courtès <address@hidden> writes:
>
>> You didn’t ask though, did you? ;-)
>
> I thought I had, twice. Oh, well, sorry!
>
>>> of the doc string rules for translation, and why they seem to be
>>> different from what gettext say in terms of placeholders in format
>>> strings. I think that needs documenting anyhow.
>>
>> In po/packages/Makevars, we define only two keywords for translatable
>> strings: ‘synopsis’ and ‘description’. Thus, xgettext will extract this
>> string:
>>
>> (synopsis "This is translatable")
>>
>> but it will not extract this:
>>
>> (synopsis (string-append "This is " "not translatable"))
>
> The question would have been why
>
> (format-string #f ("Package variant ~a is not translatable" x))
Strings are not applicable. You probably meant:
(G_ "Foo ~a bar")
> when the sprintf equivalent would be, as I understand what the gettext
> doc says.
In the example above, if we define ‘G_’ as an xgettext keyword in
‘Makevars’, the string is indeed extracted. But that’s not what was
happening here.
HTH!
Ludo’.