This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation. |
Difference between revisions of "Translate Group-Office"
Line 1: | Line 1: | ||
− | You can translate Group-Office by copying all en | + | Example: You can translate Group-Office by copying all en.php files to de.php. In this case you are translating to the German (de) language. Look up your ISO language code here: |
http://www.loc.gov/standards/iso639-2/php/code_list.php | http://www.loc.gov/standards/iso639-2/php/code_list.php | ||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
− | language/*/en | + | language/*/en.php |
− | + | ||
</pre> | </pre> | ||
Line 13: | Line 12: | ||
<pre> | <pre> | ||
− | modules/*/language/en | + | modules/*/language/en.php |
− | + | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<b>Important!</b>Make sure you save your files in <b>UTF-8</b> encoding! Otherwise Group-Office will display garbage when you use non-ascii characters. | <b>Important!</b>Make sure you save your files in <b>UTF-8</b> encoding! Otherwise Group-Office will display garbage when you use non-ascii characters. | ||
− | You must add your language to language/languages.inc.php | + | You must add your language to language/languages.inc.php to enable it in Group-Office. |
==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 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=== |
− | We created a script that checks differences between | + | We created a script that checks differences between two languages. This way it's easy to add missing strings when a new version of Group-Office appears. When you're logged in as admin, you can run it from the browser: |
− | http:// | + | http://my.groupoffice.net/?r=maintenance/checkLanguage&lang1=en&lang2=de |
− | + | The above URL will show a comparison between English (lang1) and German (lang2). | |
− | + | ===Extract language files from Group-Office=== | |
− | + | You can extract all the language files from Group-Office by logging in as admin and running the following URL in the browser: | |
− | + | http://my.groupoffice.net/?r=maintenance/zipLanguage&lang=en | |
− | + | ||
− | + | ||
− | + | ||
− | http:// | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | This will save all | + | This URL will save all English language files in a zip file called "en.zip" which you can download. It can be easily unpacked to the Group-Office root. |
Revision as of 08:38, 5 July 2012
Example: You can translate Group-Office by copying all en.php files to de.php. In this case you are translating to the German (de) language. Look up your ISO language code here:
http://www.loc.gov/standards/iso639-2/php/code_list.php
The core language files are located in:
language/*/en.php
and for the modules:
modules/*/language/en.php
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 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 two languages. This way it's easy to add missing strings when a new version of Group-Office appears. When you're logged in as admin, you can run it from the browser:
http://my.groupoffice.net/?r=maintenance/checkLanguage&lang1=en&lang2=de
The above URL will show a comparison between English (lang1) and German (lang2).
Extract language files from Group-Office
You can extract all the language files from Group-Office by logging in as admin and running the following URL in the browser:
http://my.groupoffice.net/?r=maintenance/zipLanguage&lang=en
This URL will save all English language files in a zip file called "en.zip" which you can download. It can be easily unpacked to the Group-Office root.