[Top][All Lists]

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

Re: [bug-gettext] xgettext cannot extract strings after ' in here-doc in

From: Didier Spaier
Subject: Re: [bug-gettext] xgettext cannot extract strings after ' in here-doc in shell script
Date: Mon, 22 Apr 2013 21:03:59 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130219 Thunderbird/17.0.3

On 22/04/2013 14:55, Андрей Черепанов wrote:

Hash: SHA1

My shell script

fatal "first"
cat <<EOF
fatal "second"

Try to extract strings from script:

xgettext -L shell -kfatal --omit-header -o - ll
#: ll:2
msgid "first"
msgstr ""

Well, parser processes all contents from apostroph (') to the end of
file as string.

This situation is happened if script have odd numbers of string
delimiters in here-doc in shell.

Possible solution: ignore here-doc block in shell language.

I disagree with the proposed solution.

If the here document feeds another shell script to be written
by the first one, for instance, it would prevent the second
script's internationalization

Same if the here document feeds a 'dialog' command.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]