This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Difference between revisions of "Translate Group-Office"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
Line 1: Line 1:
 
You can translate Group-Office by copying all en.inc.php files to nl.inc.php and en.js files to nl.js. In case you are translating to the Dutch (nl) language. Look up your ISO language code here:
 
You can translate Group-Office by copying all en.inc.php files to nl.inc.php and en.js files to nl.js. In case you are translating to the Dutch (nl) language. Look up your ISO language code here:
  
[http://people.w3.org/rishida/utils/subtags/index.php?searchtype=4&searchtext=notext&submit=Display]
+
http://people.w3.org/rishida/utils/subtags/index.php?searchtype=4&searchtext=notext&submit=Display
  
 
The core language files are located in:
 
The core language files are located in:

Revision as of 15:03, 29 September 2008

You can translate Group-Office by copying all en.inc.php files to nl.inc.php and en.js files to nl.js. In case you are translating to the Dutch (nl) language. Look up your ISO language code here:

http://people.w3.org/rishida/utils/subtags/index.php?searchtype=4&searchtext=notext&submit=Display

The core language files are located in:

language/*/en.inc.php
language/*/en.js

and for the modules:

modules/*/language/en.inc.php
modules/*/language/en.js

Important!Make sure you save your files in UTF-8 encoding! Otherwise Group-Office will display garbage when you use non-ascii characters.

You must add your language to language/languages.inc.php and language/Languages.js to enable it in Group-Office.

Check differences between languages

We created a script that checks differences between English and your language. This way it's easy to add missing strings when a new version of Group-Office appears. You can get it here:

http://group-office.svn.sourceforge.net/viewvc/group-office/trunk/scripts/check_lang.php

Put it in the root of your Group-Office folder and open it in the browser:

http://your.host/groupoffice/check_lang.php?lang1=en&lang2=nl

This will compare english with dutch.

Extract language files from Group-Office

If you are on Linux you can extract all the language files from Group-Office with this script:

http://group-office.svn.sourceforge.net/viewvc/group-office/trunk/scripts/getlang.sh?view=log

Put it anywhere and use it like this:

./getlang.sh /path/to/groupoffice en

This will save all english language files in a folder "en" at the current working directory.