Translator documentation: Difference between revisions

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


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.
Translate the sentences or phrases (the value part) present on the right side of "=" as seen above, the code (the key part) 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 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, which 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, which can be done like this:
304

edits

Navigation menu