bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: advice on marking strings in bash scripts


From: Bruno Haible
Subject: Re: advice on marking strings in bash scripts
Date: Tue, 14 Dec 2010 22:18:51 +0100
User-agent: KMail/1.9.9

Eric Blake wrote:
> http://www.gnu.org/software/gettext/manual/gettext.html#xgettext-Invocation
> doesn't mention 'xgettext -L Shell' as a valid option, but xgettext
> --help does (I'm using xgettext 0.18.1).

Indeed, that's an omission from the documentation. Will be fixed. Thanks.

> Meanwhile, I'm trying to figure out how to mark strings for translation
> in a shell script.

This is described in
<http://www.gnu.org/software/gettext/manual/html_node/sh.html>
and the subordinate pages.

> According to 
> http://www.gnu.org/software/gettext/manual/gettext.html#bash, use of $""
> in bash is discouraged because bash mistakenly re-interprets translated
> contents, allowing a translator to inject arbitrary shell commands.

Yes.

Bruno



reply via email to

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