Changes

Jump to: navigation, search

Howto:Change the language of reports

492 bytes added, 03:21, 7 October 2019
no edit summary
{{stub}}<!--merge into manual and update-->
{{man note|These instruction are Gramps 3.x or older.|modify accordingly for Gramps 4.x or greater, see the [[Gramps_{{Version manual}}_Wiki_Manual_-_Settings#Language|user manual]]}}
 
How you can produce reports in a language different from the language you installed your operating system in.
LC_ALL=nl_BE.UTF-8 LANGUAGE="sv" python3 gramps
'''N.B.:''' {{man note|Note|LC_TIME, which localizes date/time formats and translations, doesn't affect formats--those are set in Preferences--but does affect translations of month and day names (e.g. 'March' and 'Sunday') as well as qualifiers like 'before' and 'between'. Setting it will override LANG and LANGUAGE but not LC_ALL, which overrides everything else.}}
Gramps '''requires''' an UTF-8 locale to work correctly in most cases.
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===
*Right Click on <code>'K'</code> -> select <code>'Menu Editor'</code>
*Click on <code>'Office'</code>
*Click on <code>'New Item'</code>, Enter <code>'Gramps Genealogy System (nl)'</code>
In each of the fields enter:
===Add Windows OS Menu Item===
{{man note|These instruction are Gramps 3.x or older.|modify accordingly for Gramps 4.x or greater, see the [[Gramps_{{Version manual}}_Wiki_Manual_-_Settings#Language|user manual]]}} 
On Windows you need to run the command line (cmd.exe) and type two lines similar to this:
SET LANG=nl_BE.UTF-8
This can be saved to a .bat file for easy execution.
See also: [[Gramps_4.2_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Settings#MS_Windows|Settings for Microsoft Windows]]
===Change Mac OS X application defaults===
==How to install a locale==
{{man note|These instruction are Gramps 3.x or older.|modify accordingly for Gramps 4.x or greater, see the [[Gramps_{{Version manual}}_Wiki_Manual_-_Settings#Language|user manual]]}}
 
For the above to work, you must have the needed locales installed. This will be distribution specific. Add to this wiki if you know how to do this in a distribution not listed.
Execute
sudo dpkg-reconfigure locales
and select from the choices given the locales you need. Using UTF8 is advised, eg for ''nl_BE'': choose ''nl_BE.UTF-8''
== Run the report==

Navigation menu