Translation system: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 4: Line 4:




== Development rule ==
 
 
= Development rules for internationalization (i18n) =
In Dolibarr code source, translations are made by using a method available on object $langs with the key to translate as parameter of this method. The $langs object contains definition of use language. This object is always defined in all pages.
In Dolibarr code source, translations are made by using a method available on object $langs with the key to translate as parameter of this method. The $langs object contains definition of use language. This object is always defined in all pages.


Line 20: Line 22:
  print $langs->trans("STRING_TO_TRANSLATE",$langs->transnoentitiesnoconv("STRING_PARAM1"))
  print $langs->trans("STRING_TO_TRANSLATE",$langs->transnoentitiesnoconv("STRING_PARAM1"))


== Translate Dolibarr into another language ==
= Translate Dolibarr into another language =
See page [[Translator documentation]]
See page [[Translator documentation]]