Ubuntu – Change system language for Gramps in .desktop file

15.04gnomegnome-terminallanguage

I would like to start the genealogy program Gramps with a language (English) other than my locale one (Spanish). I successfully tried to run Gramps in terminal via

 LANG=en_GB gramps

I would like, now, to add this command in the .desktop file in /usr/share/applications/ to be able to start Gramps in the English language, but I cannot get it to run like this

EXEC=LANG=en_GB gramps

What can I do?

Edit:
For those interested: the suggestion by Jacob down below helped me to start gramps in the given language English via the .desktop file. In addition, I have used the following two commands so that gramps in terminal starts in English as well:

echo 'LANGUAGE=en_GB PATH=/usr/bin/gramps:$PATH' >> ~/.bash_profile
source ~/.bash_profile
echo 'alias gramps='LANGUAGE=en_GB /usr/bin/gramps'' >> ~/.bashrc
source ~/.bashrc

Logout and login!

Best Answer

I installed Gramp and tried it here, and this should really work:

Exec=/bin/bash -c "LANGUAGE=en_GB gramps"

LANGUAGE= takes precedence over LANG=

Note

Make sure you run the application from the local .desktop file: After editing the local one, make sure you log out / in before running it again.

Related Question