Translator documentation: Difference between revisions

m
(restore Korean to English)
Tag: 2017 source edit
 
(2 intermediate revisions by one other user 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}}
<seo metak="translation, documentation, translator, localize, localization, i18n, l18n, internationalization, language" />


=[[File:Language.png]] Translate Dolibarr Application into your language=
=[[File:Language.png]] Translate Dolibarr Application into your language=
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://www.transifex.com/dolibarr-association/dolibarr/
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 transifex translations also synced to maintenance releases?
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 transifex changes appear in all version 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).
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.
59

edits