31,003
edits
No edit summary |
|||
| Line 5: | Line 5: | ||
Dolibarr language files are translated in several languages. | Dolibarr language files are translated in several languages. | ||
French and English are by default always complete. Other languages depend on contributions. This tutorial can help you to complete a translation that does not exists or is not correct for another language. | French and English are by default always complete. Other languages depend on contributions. This tutorial can help you to complete a translation that does not exists or is not correct for another language. | ||
There are 3 methods for translating Dolibarr (1 automatic: autotranslator, 2 manual: a completely manual method or transifex). | |||
There are | |||
== Automatic Translation with autotranslator.php tool == | == Automatic Translation with autotranslator.php tool == | ||
| Line 12: | Line 11: | ||
* Translator OS: All | * Translator OS: All | ||
* Tool: '''autotranslator.php''' provided with Dolibarr in directory '''dev/translation'''. | * Tool: '''autotranslator.php''' provided with Dolibarr in directory '''dev/translation'''. | ||
This method is recommended when starting translation for a language not already initialized. If there is already a translation available but you need to add missing key or correct errors, try to use next method. | This method is recommended when starting translation for a language not already initialized. If there is already a translation available but you need to add missing key or correct errors, try to use next transifex method. | ||
To make or update all files of a language code, just run the script: | To make or update all files of a language code, just run the script: | ||
| Line 28: | Line 27: | ||
Your PHP must also have permissions to write into '''htdocs/langs''' directory and must have curl functions available. | Your PHP must also have permissions to write into '''htdocs/langs''' directory and must have curl functions available. | ||
== Manual Translation | == Manual Translation (not recommanded) == | ||
To translate Dolibarr into another language, go to the langs directory and create a folder/directory named with the code language to translate (follow the existing format, for example en_US, en_GB, es_ES, de_DE, etc...). Then copy the files from an existing language directory (for example en_US/main.lang, en_GB/bills.lang), into the new language directory that you have just created. | To translate Dolibarr into another language, go to the langs directory and create a folder/directory named with the code language to translate (follow the existing format, for example en_US, en_GB, es_ES, de_DE, etc...). Then copy the files from an existing language directory (for example en_US/main.lang, en_GB/bills.lang), into the new language directory that you have just created. | ||
| Line 74: | Line 57: | ||
must be present or added to the myfile.lang file. | must be present or added to the myfile.lang file. | ||
== Manual Translation using Transifex online service== | |||
== Manual Translation using Transifex online service (recommanded) == | |||
Transifex is a web application that provides an online platform for translation projects. It includes teams and discussion tools, translation memory, glossary, proofreading and a lot of other features. | Transifex is a web application that provides an online platform for translation projects. It includes teams and discussion tools, translation memory, glossary, proofreading and a lot of other features. | ||