59
edits
mNo edit summary Tag: 2017 source edit |
|||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
[[zh:翻译文档]] | [[zh:翻译文档]] | ||
<!-- END interlang links --> | <!-- END interlang links --> | ||
{{#metamaster:keywords|translation, documentation, translator, localize, localization, i18n, l18n, internationalization, language}} | |||
=[[File:Language.png]] Translate Dolibarr Application into your language= | |||
Dolibarr language files are already translated in several languages. | |||
English is the default and always complete. Other languages depend on contributions. This tutorial can help you complete a translation for a language not yet available or somehow incorrect. | |||
Dolibarr can be translated by three different means: | Dolibarr can be translated by three different means: | ||
| Line 27: | Line 26: | ||
===Using the web interface (for translators)=== | ===Using the web interface (for translators)=== | ||
If you want to help to translate Dolibarr in your own language, check the project's page at https:// | If you want to help to translate Dolibarr in your own language, check the project's page at https://app.transifex.com/dolibarr-association/dolibarr/dashboard/ | ||
You can then register an account and request joining the project team for the language(s) you're targeting. A manager will have to accept your request, so please be patient. | You can then register an account and request joining the project team for the language(s) you're targeting. A manager will have to accept your request, so please be patient. | ||
| Line 172: | Line 171: | ||
This is short questions and answers you may also ask about transifex translation process: | This is short questions and answers you may also ask about transifex translation process: | ||
1) Is the sync on a regular time interval? | 1) Is the sync done on a regular time interval? | ||
No. It is done where there is enough translation submitted. It is also done on a beta branch just before creating the final release package. | No. It is done where there is enough translation submitted. It is also done on a beta branch just before creating the final release package. | ||
2) Are all the translations synced to git or only the reviewed translations? Do I need to review before sync is done? | 2) Are all the translations synced to git or only the reviewed translations ? Do I need to review before sync is done? | ||
When a Sync is done, transifex files overwrites files into git, but only if there is at least on record modified for the file. | When a Sync is done, transifex files overwrites files into git, but only if there is at least on record modified for the file. | ||
You don't have to make a review before sync is done. Making review is above all to know which lines were manually reviewed and which one was initially translated using a robot. | You don't have to make a review before sync is done. Making review is above all to know which lines were manually reviewed and which one was initially translated using a robot. The sync always take the last translated version, even if the new translation was not reviewed. | ||
3) In which Dolibarr releases will translations be available? Are | 3) In which Dolibarr releases will translations be available? Are Transifex translations also synced to maintenance releases? | ||
Sync is always done on develop and/or beta. | Sync is always done on develop and/or beta. | ||
So | So Transifex changes appear in all versions whose branch is created after the Transifex change (a sync is always done before creating a new branch). Once a branch is created, the new changes into Transifex will be available only for the next branch. The reason for this is that we do not manage branch/versions on Transifex (not yet). | ||
==Manual Translation (not recommended)== | ==Manual Translation (not recommended)== | ||
| Line 229: | Line 228: | ||
php autotranslator.php lang_code_source lang_code_target GOOGLEAPIKEY | php autotranslator.php lang_code_source lang_code_target GOOGLEAPIKEY | ||
</syntaxhighlight> | </syntaxhighlight> | ||
For example : | For example<span> </span>: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
php autotranslator.php en_US pt_PT GOOGLEAPIKEY | php autotranslator.php en_US pt_PT GOOGLEAPIKEY | ||
| Line 265: | Line 264: | ||
====Create a new page for the translated version.==== | ====Create a new page for the translated version.==== | ||
Start by creating a new page for the translated version. To do this, you can access an non existant URL : for example [[Translator documentation|<code>https://wiki.dolibarr.org/index.php/Ma_nouvelle_page_en_français</code>]] | Start by creating a new page for the translated version. To do this, you can access an non existant URL<span> </span>: for example [[Translator documentation|<code>https://wiki.dolibarr.org/index.php/Ma_nouvelle_page_en_français</code>]] | ||
The chosen title for the translated version of the page should be the translation of the title of the original English page. | The chosen title for the translated version of the page should be the translation of the title of the original English page. | ||
edits