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
(Contributing your translation)
(Contributing your translation)
Line 36: Line 36:
  
 
==Contributing your translation==
 
==Contributing your translation==
It would be great if you would let other people of the Group-Office community benefit from your translation. If you send it to mailto:info@intermesh.nl, your language will be put into the main distribution.
+
It would be great if you would let other people of the Group-Office community benefit from your translation. If you send it to info@intermesh.nl, your language will be put into the main distribution.
  
 
==Check differences between languages==
 
==Check differences between languages==

Revision as of 10:17, 19 October 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

You must remove these lines from the *.js files:

Ext.namespace('GO.<module>');
GO.<module>.lang={};

In the *.inc.php files you must uncomment this lines:

require_once($GO_LANGUAGE->get_fallback_language_file('<module>'));

If you don't do this the language won't fall back on English if a string doesn't exist.

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.

Contributing your translation

It would be great if you would let other people of the Group-Office community benefit from your translation. If you send it to info@intermesh.nl, your language will be put into the main distribution.

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.