help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] What options exist to translate shell scripts?


From: Greg Wooledge
Subject: Re: [Help-bash] What options exist to translate shell scripts?
Date: Fri, 21 Mar 2014 14:31:51 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Mar 21, 2014 at 04:36:53PM +0000, Patrick Schleizer wrote:
> are there any gettext alternatives?
> 
> What are the options to make shell scripts translatable?

Bash has a $"..." quoting mode that invokes translations for strings,
but it is insecure (the translated string is subject to expansions which
the script cannot predict or prevent -- these expansions may include
arbitrary code execution).

http://mywiki.wooledge.org/BashFAQ/098 explains how to use the $"..."
syntax.

http://www.gnu.org/software/gettext/manual/html_node/bash.html explains
why it's insecure.



reply via email to

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