Translator documentation: Difference between revisions

Jump to navigation Jump to search
m
Line 9: Line 9:


* Translator OS: All
* Translator OS: All
* Tool: autotranslator.php provided with Dolibarr 2.5.1 and higher in dev/translation directory.
* Tool: autotranslator.php provided with Dolibarr 2.5.1 and higher in directory '''dev/translation'''.


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 19: Line 19:
php autotranslator.php en_US pt_PT
php autotranslator.php en_US pt_PT
</source>
</source>
to translate into portugues (pt_PT) using english (en_US) files.
to translate into Portuguese (pt_PT) using English (en_US) files.


All non existing files will be created, all existing files will be update.
All non existing files will be created, all existing files will be update.
The tool use [http://translate.google.com Google translation] service to find the translation value of a string, so a working internet connection is required from station running the script.
The tool use [http://translate.google.com Google translation] service to find the translation value of a string, so a working Internet connection is required from station running the script.
Your PHP must also have permissions to write into htdocs/langs directory and must have curl functions availables.
Your PHP must also have permissions to write into '''htdocs/langs''' directory and must have curl functions available.


== Manual Translation with the Firefox plugin phpLangEditor ==
== Manual Translation with the Firefox plugin phpLangEditor ==

Navigation menu