[GRASS-user] Set language in Linux

Glynn Clements glynn at gclements.plus.com
Wed Feb 3 12:31:48 EST 2010


Markus Neteler wrote:

> On Wed, Feb 3, 2010 at 1:35 PM, Gilbert Ferrara
> <gilbertferrara1974 at gmail.com> wrote:
> > I just want to provide GRASS64 in two languages and without the user has to
> > define lang in the bash_profiles.
> > My idea was to create 2 files: grass64eng and grass64sp each one with
> > different language sets. So the user would have only to select the adequate
> > file.
> 
> 
> I would create
> 
> grass64eng
>        export LANG=en_US
>        export LANGUAGE=en_US
>        export LC_MESSAGES=en_US
>        grass64 "$@"

Make the last line:

	exec grass64 "$@"

so that the grass64 script "takes over" from the grass64eng script,
rather than as a child process.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list