Difference between revisions of "Locale Settings"

From GnuCash
Jump to: navigation, search
(Move the most recent lang section from translation in an own page)
 
(Fix variable expansion in windows)
Line 16: Line 16:
 
If you are running GnuCash 2.4.0 (or newer) on Windows, you can set the interface language by editing the file "environment" in the folder "C:\Program Files\gnucash\etc\gnucash" (or wherever you installed GnuCash into).  
 
If you are running GnuCash 2.4.0 (or newer) on Windows, you can set the interface language by editing the file "environment" in the folder "C:\Program Files\gnucash\etc\gnucash" (or wherever you installed GnuCash into).  
 
If you want to change the default language to English, you should un-comment the following lines (remove # sign to un-comment) at the end of that file
 
If you want to change the default language to English, you should un-comment the following lines (remove # sign to un-comment) at the end of that file
  LANG={en_US}
+
  LANG=en_US
  LANGUAGE=en_US
+
  LANGUAGE={LANG}
You should also remove the "{" in the second line.
+
Note that the second line should remain as-is.  The braces are a variable expansion of the LANG variable.
  
 
The Language lines in your Environment folder should look like this (change language variables based on desired language):
 
The Language lines in your Environment folder should look like this (change language variables based on desired language):
  
 
  LANG=fr_CA
 
  LANG=fr_CA
  LANGUAGE=fr_CA
+
  LANGUAGE={LANG}
  
 
(Older GnuCash versions had to change the file "<tt>gnucash.cmd</tt>" in the folder "<tt>C:\Program Files\gnucash\bin</tt>" (or wherever you installed GnuCash into). In those older versions, you had to add lines saying <tt>set LANGUAGE=en_US</tt> and <tt>set LANG=en_US</tt> to the end of the file.)
 
(Older GnuCash versions had to change the file "<tt>gnucash.cmd</tt>" in the folder "<tt>C:\Program Files\gnucash\bin</tt>" (or wherever you installed GnuCash into). In those older versions, you had to add lines saying <tt>set LANGUAGE=en_US</tt> and <tt>set LANG=en_US</tt> to the end of the file.)

Revision as of 19:10, 10 January 2011

While Gnucash was written in american english, there are many translations available. This page shows, how to adjust them.

System settings

In general GnuCash uses the settings of your computer. But there some cases, where you wish to tweak them. How to do this depends on your operating system.

Changing the Language on Linux

In either case, you can easily switch between the various languages the gnucash has available by placing the LANG env var before the call to the executable:

LANG=pt_BR /opt/gnucash-svn/bin/gnucash

Changing the Language on Windows

If you are running GnuCash 2.4.0 (or newer) on Windows, you can set the interface language by editing the file "environment" in the folder "C:\Program Files\gnucash\etc\gnucash" (or wherever you installed GnuCash into). If you want to change the default language to English, you should un-comment the following lines (remove # sign to un-comment) at the end of that file

LANG=en_US
LANGUAGE={LANG}

Note that the second line should remain as-is. The braces are a variable expansion of the LANG variable.

The Language lines in your Environment folder should look like this (change language variables based on desired language):

LANG=fr_CA
LANGUAGE={LANG}

(Older GnuCash versions had to change the file "gnucash.cmd" in the folder "C:\Program Files\gnucash\bin" (or wherever you installed GnuCash into). In those older versions, you had to add lines saying set LANGUAGE=en_US and set LANG=en_US to the end of the file.)

Changing the Language on OSX

If you are running GnuCash 2.4.0 (or newer) on OSX, you can set the interface language by creating/editing the file "environment.sh" in the folder "Gnucash.app/Contents/Resources". You can get there by right clicking on the Application and choosing "Show Package Contents" and then navigating to "Contents" and then "Resources".

Create a file named "environment.sh" with the following lines (change language variables based on desired language):

export LANG=nl_NL.UTF-8 
export LANGUAGE=nl_NL.UTF-8