Changes

Jump to navigation Jump to search
m
Line 231: Line 231:     
= [[File:Language.png]] Distribute or include your translation into core source =
 
= [[File:Language.png]] Distribute or include your translation into core source =
  −
== Including your translation in the official Dolibarr sources ==
      
Once you start translating, it's a smart decision to share it, so it can be included into the official code of Dolibarr.
 
Once you start translating, it's a smart decision to share it, so it can be included into the official code of Dolibarr.
Line 242: Line 240:  
If you send us your translation through a Pull Request on Github, sadly, it will be overwritten by the next import from Transifex, so it would be very short-lived.
 
If you send us your translation through a Pull Request on Github, sadly, it will be overwritten by the next import from Transifex, so it would be very short-lived.
   −
=== Adding new variables ===
+
Note:
    
The reference language is en_US and is always complete. You can find it in the htdocs/langs/en_US/ folder. All other language files are likely to be slightly or highly incomplete, depending on the language.
 
The reference language is en_US and is always complete. You can find it in the htdocs/langs/en_US/ folder. All other language files are likely to be slightly or highly incomplete, depending on the language.
    
If you are developing a new module, you are likely going to need the addition of new language variables. This is done exclusively through the update of the en_US language (htdocs/langs/en_US/ folder). Just modify these files to add the variable you need and send the resulting folder as part of your Pull Request. Refer to the developer documentation to learn how to contribute code (you will need an account on {{TemplateUrlSCM}}.
 
If you are developing a new module, you are likely going to need the addition of new language variables. This is done exclusively through the update of the en_US language (htdocs/langs/en_US/ folder). Just modify these files to add the variable you need and send the resulting folder as part of your Pull Request. Refer to the developer documentation to learn how to contribute code (you will need an account on {{TemplateUrlSCM}}.
  −
== As an extension ==
  −
When you create a new language, if it is not already integrated into Dolibarr, it can still be broadcast to all other users. You can make a distribution package using the '''build/makepack-dolibarrlang.pl''' script or making a zip archive manually and sending it to the developers' mailing list '''dolibarr-dev''' ({{TemplateURLMLDev}}).
  −
  −
New language files are immediately available in an installation as soon as the archive is unzipped in the correct directory.
      
= [[File:Language.png]] Translate documentation on wiki =
 
= [[File:Language.png]] Translate documentation on wiki =

Navigation menu