running app in a different language
Heinrich Rebehn
rebehn at ant.uni-bremen.de
Wed Mar 1 09:32:46 UTC 2006
Duncan Lithgow wrote:
> I want to add an icon to run GRAMPS (a linux geneology app) in different
> languages to produce reports in german and danish, although I usually
> use it in english. I have installed the needed packages and it start
> fine, in the other language if i type in the command line:
>
> $ LANGUAGE=de_DE:de LANG=de_DE.UTF-8 /usr/bin/gramps
>
> But if I put "LANGUAGE=de_DE:de LANG=de_DE.UTF-8 /usr/bin/gramps" into
> the 'command' part of a new icon in the Applications Menu Editor I get
> the error:
>
> Error
> Details: Failed to execute child process "LANGUAGE=de_DE:de" (No such
> file or directory)
>
> If I switch it around to "/usr/bin/gramps LANGUAGE=de_DE:de
> LANG=de_DE.UTF-8" I get the error:
>
> Cannot launch entry
> Details: Failed to execute child process "LANGUAGE=de_DE:de" (No such
> file or directory)
>
> What am I doing wrong?
>
It seems that the supplied command is executed directly, not via a shell.
Try
bash -c 'LANGUAGE=de_DE:de LANG=de_DE.UTF-8 /usr/bin/gramps'
That should work.
HTH
--
Heinrich Rebehn
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax : -3341
More information about the ubuntu-users
mailing list