Translator documentation: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 1: Line 1:
= To translate Dolibarr into another language =
== To translate Dolibarr into another language ==


Dolibarr languages files are developed in French and English by default.
Dolibarr languages files are developed in French and English by default.
Line 6: Line 6:




== Translation via the Firefox plugin phpLangEditor ==
=== Translation via the Firefox plugin phpLangEditor ===


* OS translator: All
* OS translator: All
Line 22: Line 22:
# 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 ==
=== Translation by iniTranslator ===


* Translator OS: Windows
* Translator OS: Windows
Line 37: Line 37:
Attention, iniTranslator has a serious defect. It does not retain the original order of the parameters and the generated file sorting alphabetically rather than keys in the order of the source file. In addition, areas comments source files are not reflected in the destination file translated.
Attention, iniTranslator has a serious defect. It does not retain the original order of the parameters and the generated file sorting alphabetically rather than keys in the order of the source file. In addition, areas comments source files are not reflected in the destination file translated.


== Manual translation ==
=== Manual translation ===


To translate Dolibarr into another language, go to the langs directory and create a folder named with the code language to translate (Following the same format as those already existing, for example en_US, en_GB, es_ES, de_DE, etc.. ..). Then copy the files from a directory lang already translated (for example en_US / or main.lang en_GB / bills.lang), copy them into the directory of the new language that we have just created and bring the contents of these files.
To translate Dolibarr into another language, go to the langs directory and create a folder named with the code language to translate (Following the same format as those already existing, for example en_US, en_GB, es_ES, de_DE, etc.. ..). Then copy the files from a directory lang already translated (for example en_US / or main.lang en_GB / bills.lang), copy them into the directory of the new language that we have just created and bring the contents of these files.
Line 60: Line 60:
must be added to the files. lang
must be added to the files. lang


= Integrate its translation into Dolibarr =
== Integrate its translation into Dolibarr ==


If you have completed existing but incomplete .lang files
If you have completed existing but incomplete .lang files
Line 78: Line 78:
You can use indifferently one or the other (which arrange) as a reference because the 2 are up to date. All other language files are likely to be incomplete.
You can use indifferently one or the other (which arrange) as a reference because the 2 are up to date. All other language files are likely to be incomplete.


= Distribute your translation =
== Distribute your translation ==


When you create a new language, if it is not integrated into Dolibarr, it can still be spread to others. You can build a package to distribute the script build / makepack-dolibarrlang.pl
When you create a new language, if it is not integrated into Dolibarr, it can still be spread to others. You can build a package to distribute the script build / makepack-dolibarrlang.pl


The .tgz made file just needs to be unzipped in the directory Dolibarr that language is available. This file can be posted to the website http://www.dolibarr.org in space download modules / addon or the mailing list developer dolibarr-dev@nongnu.org of Dolibarr.
The .tgz made file just needs to be unzipped in the directory Dolibarr that language is available. This file can be posted to the website http://www.dolibarr.org in space download modules / addon or the mailing list developer dolibarr-dev@nongnu.org of Dolibarr.

Navigation menu