Translator documentation: Difference between revisions

Jump to navigation Jump to search
Line 72: Line 72:
</source>
</source>


Only translate the sentences or phrases present on the right side of = as seen above, the code on the left side of = should remain unchanged. It is possible to translate the files one by one, without bringing them all at once. If a file has not been translated into the new language, Dolibarr uses English.
Translate only the sentences or phrases present on the right side of "=" as seen above, the code on the left side of "=" should remain unchanged. It is possible to translate the files one by one, without bringing them all at once. If a file has not been translated into the new language, Dolibarr uses English.


To have a localise string into the PHP code, all you have to do then is loading the language file and use the method to get the translated value. This can be done like this:
To have a localised (translated) string into the PHP code, all you have to do is load the language file and use the method to get the translated value. This can be done like this:


<source lang="php">
<source lang="php">
304

edits

Navigation menu