Re: [PATCH v2 11/11] i18n: difftool: mark warnings for translation
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Oct 1, 2016, 19:56 UTC
- Message-ID
- <34c793f6-b297-3040-b5fa-29f4a9480cd2@gmail.com>
- In-Reply-To
- <xmqqtwd3wooa.fsf@gitster.mtv.corp.google.com>
W dniu 26.09.2016 o 01:21, Junio C Hamano pisze:
Show 9 quoted lines
> Vasco Almeida <vascomalmeida@sapo.pt> writes:
>
>> - warn << 'EOF';
>> + warn __ <<'EOF';
>> Combined diff formats ('-c' and '--cc') are not supported in
>> directory diff mode ('-d' and '--dir-diff').
>> EOF
>
> Wow, didn't imagine gettext would pick this up. Nice.From gettext documentation: https://www.gnu.org/software/gettext/manual/gettext.html
15 Other Programming Languages [...] 15.5 Individual Programming Languages [...] 15.5.18 Perl [...] 15.5.18.4 What are Strings And Quote-like Expressions?
Perl offers a plethora of different string constructs. Those that can be used either as arguments to functions or inside braces for hash lookups are generally supported by xgettext.
[...]
* here documents
print gettext <<'EOF';
program not found in $PATH
EOF print ngettext <<EOF, <<"EOF";
one file deleted
EOF
several files deleted
EOFHere-documents are recognized. If the delimiter is enclosed in single quotes, the string is not interpolated. If it is enclosed in double quotes or has no quotes at all, the string is interpolated.
Delimiters that start with a digit are not supported!
-- Jakub Narębski