Documentación traductores: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Tag: 2017 source edit
 
Line 9: Line 9:
<!-- END interlang links -->
<!-- END interlang links -->


= [[File:Language.png]] Traducir Dolibarr a otro idioma =
=[[File:Language.png]] Traducir Dolibarr a otro idioma=
Dolibarr se desarrolla por defecto en inglés
Dolibarr se desarrolla por defecto en inglés


Existen 3 métodos para realizar la traducción de Dolibarr:
Existen 3 métodos para realizar la traducción de Dolibarr:
# Automático mediante autotranslator.php
 
# Manualmente mediante la modificación de los archivos de idiomas
#Automático mediante autotranslator.php
# Manualmente usando Transifex.com (oficial y recomendado).
#Manualmente mediante la modificación de los archivos de idiomas
#Manualmente usando Transifex.com (oficial y recomendado).


Los describimos por orden de preferencia:
Los describimos por orden de preferencia:


== Traducción via transifex (recomendada) ==
==Traducción via transifex (recomendada)==
{{ToTranslate}}
{{ToTranslate}}


Line 27: Line 28:


===Create transifex account and choose language===
===Create transifex account and choose language===
If you want to help translating Dolibarr in your own language, please refer to http://transifex.com/projects/p/dolibarr/ and see if language is already supported. If it exists (many teams are already working for the project), you can ask to join the team and start to translate right away; if there is not a team for your language, you should request a new translation team on Transifex. It can be done directly using transifex.com interface on the website.
If you want to help translating Dolibarr in your own language, please refer to https://app.transifex.com/dolibarr-association/dolibarr/dashboard/ and see if language is already supported. If it exists (many teams are already working for the project), you can ask to join the team and start to translate right away; if there is not a team for your language, you should request a new translation team on Transifex. It can be done directly using transifex.com interface on the website.


===Using the web interface (for translators) ===
===Using the web interface (for translators)===
If language is already available onto page  http://transifex.com/projects/p/dolibarr/, just create an account and follow instruction of transifex web site to translate files.
If language is already available onto page  https://app.transifex.com/dolibarr-association/dolibarr/dashboard/, just create an account and follow instruction of transifex web site to translate files.


Note, that this web interface must not be used to translate en_US language that is source. Any change on source language must be done by submiting code change using GitHub Pull Requests.
Note, that this web interface must not be used to translate en_US language that is source. Any change on source language must be done by submiting code change using GitHub Pull Requests.


=== Using TX command line client (for Dolibarr [[:Category:Yoda]] team) ===
===Using TX command line client (for Dolibarr [[:Category:Yoda]] team)===
This describe how to use Transifex from command line. However, this is reserved to Dolibarr admin users to synchronize Transifex with Dolibarr main sources.
This describe how to use Transifex from command line. However, this is reserved to Dolibarr admin users to synchronize Transifex with Dolibarr main sources.


Line 104: Line 105:
<nowiki>[dolibarr.resource]</nowiki>
<nowiki>[dolibarr.resource]</nowiki>


source_lang: this is the source language of the resource.<br/>
source_lang: this is the source language of the resource.<br />
source_file: this points to the source file directly.<br/>
source_file: this points to the source file directly.<br />
file_filter: here we hold the expression used to identify translation files under the specific project. ''not mandatory''<br/>
file_filter: here we hold the expression used to identify translation files under the specific project. ''not mandatory''<br />
trans.<lang>: this is used for translation files that don’t follow a common naming schema and the file expression cannot be used to track them. ''not mandatory''<br/>
trans.<lang>: this is used for translation files that don’t follow a common naming schema and the file expression cannot be used to track them. ''not mandatory''<br />
host: in case the project doesn’t use the default Transifex server as specified in the [main] section, it can override it using this option. ''not mandatory''<br/>
host: in case the project doesn’t use the default Transifex server as specified in the [main] section, it can override it using this option. ''not mandatory''<br />


====TX Client use====
====TX Client use====
Line 133: Line 134:
'''tx pull'''
'''tx pull'''


Used to pull changes from Transifex server to your computer<br/>
Used to pull changes from Transifex server to your computer<br />
Additional options for the tx pull command are:
Additional options for the tx pull command are:
<code><pre>
<code><pre>
Line 162: Line 163:
</source>
</source>


=== Other questions on transifex process ===
===Other questions on transifex process===
This is short questions and answer yuo may also ask about transifex translation process:
This is short questions and answer yuo may also ask about transifex translation process:


Line 179: Line 180:
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, then new changes into transifex will be available only for next branch. Reason of this is that transifex is not able to manage branch/versions (not yet).
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, then new changes into transifex will be available only for next branch. Reason of this is that transifex is not able to manage branch/versions (not yet).


== Traducción totalmente manual (no recomendada) ==
==Traducción totalmente manual (no recomendada)==


Para traducir Dolibarr a otro idioma, vaya a la carpeta langs y cree una carpeta llamada con el código de idioma a traducir (Siguiendo el mismo formato de las ya existentes, por ejemplo en_US, fr_FR, es_ES, de_DE, etc...).
Para traducir Dolibarr a otro idioma, vaya a la carpeta langs y cree una carpeta llamada con el código de idioma a traducir (Siguiendo el mismo formato de las ya existentes, por ejemplo en_US, fr_FR, es_ES, de_DE, etc...).
Line 211: Line 212:
debe de ser añadida a los ficheros .lang
debe de ser añadida a los ficheros .lang


== Traducción automática mediante la utilidad autotranslator.php (no recomendada) ==
==Traducción automática mediante la utilidad autotranslator.php (no recomendada)==


* SO del traductor: Cualquiera
*SO del traductor: Cualquiera
* Utilidad: autotranslator.php viene con Dolibarr, se encuentra en la carpeta '''dev/translation'''.
*Utilidad: autotranslator.php viene con Dolibarr, se encuentra en la carpeta '''dev/translation'''.


Para traducir o actualizar todos los archivos en un nuevo idioma, símplemente ejecute el script:
Para traducir o actualizar todos los archivos en un nuevo idioma, símplemente ejecute el script:
Line 230: Line 231:
Su PHP debe de tener permisios de escritura en la carpeta '''htdocs/langs''' y disponer de las funciones de la extensión curl disponibles.
Su PHP debe de tener permisios de escritura en la carpeta '''htdocs/langs''' y disponer de las funciones de la extensión curl disponibles.


= [[File:Language.png]] Difusión o inegras su idioma =
=[[File:Language.png]] Difusión o inegras su idioma=


Lo mejor que puede hacer, después de realizar una traducción, es incluirla incluye en la versión oficial de Dolibarr.
Lo mejor que puede hacer, después de realizar una traducción, es incluirla incluye en la versión oficial de Dolibarr.


Si usted ha completado archivos .lang existentes en Dolibarr de forma incompleta o si ha creado nuevos archivos .lang para un nuevo idioma, puede :
Si usted ha completado archivos .lang existentes en Dolibarr de forma incompleta o si ha creado nuevos archivos .lang para un nuevo idioma, puede<span> </span>:


* Incluir sus cambios o archivos en la versión oficial de Dolibarr. Es posible, si sabe usar un sistema GIT. Para ello cree una cuenta en {{TemplateUrlSCM}}, haga un fork del proyecto Dolibarr, haga sus cambios y mande un Pull Request.  
*Incluir sus cambios o archivos en la versión oficial de Dolibarr. Es posible, si sabe usar un sistema GIT. Para ello cree una cuenta en {{TemplateUrlSCM}}, haga un fork del proyecto Dolibarr, haga sus cambios y mande un Pull Request.
* o envíe sus archivos por e-mail en un adjunto a la lista inglesa: '''dolibarr-dev@nongnu.org''' (Inscripción en {{TemplateURLMLDev}}). Un desarrollador lo integrará por usted.
*o envíe sus archivos por e-mail en un adjunto a la lista inglesa: '''dolibarr-dev@nongnu.org''' (Inscripción en {{TemplateURLMLDev}}). Un desarrollador lo integrará por usted.


''Nota:'' Hay un idoma principale, que siempre están completos:
''Nota:'' Hay un idoma principale, que siempre están completos:
* El inglés (ficheros .lang de la carpeta lang/en_US)
 
*El inglés (ficheros .lang de la carpeta lang/en_US)
 
Puede utilizar indistintamente tanto uno como el otro (el que prefiera) como referencia ya que los dos están actualizados. Todos los demás archivos de idioma son susceptibles de estar incompletos.
Puede utilizar indistintamente tanto uno como el otro (el que prefiera) como referencia ya que los dos están actualizados. Todos los demás archivos de idioma son susceptibles de estar incompletos.


= [[File:Language.png]] Traducción del wiki =
=[[File:Language.png]] Traducción del wiki=
El wiki se mantiene en 3 idiomas: Inglés, Francés y Español.
El wiki se mantiene en 3 idiomas: Inglés, Francés y Español.
Si desea mejorar la documentación en uno de estos idiomas, simplemente debe de crear una cuenta en este wiki.
Si desea mejorar la documentación en uno de estos idiomas, simplemente debe de crear una cuenta en este wiki.
Entonces, podrá modificar una traducción incorrecta o traducir una página a la espera de traducción. La lista de estas páginas se encuentra disponible en la página [[:Category:Page_waiting_for_translation]].
Entonces, podrá modificar una traducción incorrecta o traducir una página a la espera de traducción. La lista de estas páginas se encuentra disponible en la página [[:Category:Page_waiting_for_translation]].
58

edits

Navigation menu