Translator documentation: Difference between revisions

Jump to navigation Jump to search
m
Line 3: Line 3:
Dolibarr languages files are developed in French and English by default.
Dolibarr languages files are developed in French and English by default.


There are 3 methods for translating Dolibarr (phpLangEditor, iniTranslation and the manual method). They are in order of preference:
There are 4 methods for translating Dolibarr (1 automatic: autotranslator, 3 manual: phpLangEditor, iniTranslation and the completely manual method). They are in order of preference:


=== Translation via the Firefox plugin phpLangEditor ===
=== Automatic Translation with autotranslator.php tool ===
 
* OS transltor: All
* Tool: autotranslator.php provided with Dolibarr 2.5.1 and higher in dev/translation directory.
 
To make or update all files of a language code, just run the script:
  autotranslator.php lang_code_source lang_code_target
For example :
  autotranslator.php en_US pt_PT to translate into portugues (pt_PT) using english (en_US) files.
 
All non existing files will be created, all existing files will be update.
The tool use Google translation service to find the translation value of a string.
Your PHP must have permission to write into htdocs/langs directory and must have curl functions availables.
 
 
=== Manual Translation with the Firefox plugin phpLangEditor ===


* OS translator: All
* OS translator: All
Line 21: Line 36:
# Edit the file with a text editor to remove or correct the first comment line. Indeed, with phpLangEditor, it is not possible to translate the lines Discussed (starting with #), the file contains translated once recorded the comment line of the source file. A small manual editing is needed to correct or delete this line, although this does not adversely affect the proper functioning of the new file. Lang.
# Edit the file with a text editor to remove or correct the first comment line. Indeed, with phpLangEditor, it is not possible to translate the lines Discussed (starting with #), the file contains translated once recorded the comment line of the source file. A small manual editing is needed to correct or delete this line, although this does not adversely affect the proper functioning of the new file. Lang.


=== Translation by iniTranslator ===
=== Manual Translation with iniTranslator ===


* Translator OS: Windows
* Translator OS: Windows

Navigation menu