Changes

Jump to: navigation, search

Howto:Change the language of reports

840 bytes added, 15:11, 31 December 2012
Run GRAMPS in a different language
== Run GRAMPS in a different language==
=== Version 4.0+ ===
First, let us learn how to run gramps from a terminal or console (the so called CLI-Command Line Interface, which you find typically in the System Menu of your task bar).
You will need to make the alias command unique, so in this instance I have used <code>gramps_nl</code>. Now save the file. The UNIX terminal will need restarted for the new setting to take effect. Enter the alias command <code>gramps_nl</code> to run gramps in another locale. Multiple alias commands can be setup for multiple locales.
 
If you want to run Gramps in a locale you did not install, things will only work partially. You first need to set a fallback which is installed, or Gramps will never start. For example, if you have nl_BE.UTF-8 installed, and want to run in Swedish, you can do:
 
LC_ALL=C.UTF-8 LANG="sv" python3 gramps
 
This assumes the Gramps translations are installed globally. If this is not the case, you need to give Gramps the directory where the translations will be found. A translation is called ''gramps.mo'', you can find it in linux with the ''locate'' command. For example, if you have Swedish in directory /home/me/gramps/mo/sv/gramps.mo, you can direct Gramps there using:
GRAMPSI18N=/home/me/gramps/mo LC_ALL=C.UTF-8 LANG="sv" python3 gramps
Alternatively you can add a new item to the menu of GNOME or KDE, so this command needs not to be entered in a terminal, but can be called from the menu.
 
===Add KDE Menu Item===
*Command: <code>LANG=nl_BE.UTF-8; /usr/bin/gramps</code>
Change LANG to whatever you wanted as described in the previous section.
Leave all other options as default. To add the GRAMPS icon, click on the icon beside Name and Description fields

Navigation menu