Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5094 Vues

Instead of just the normal one _t()

Avatar
Ignorer
Meilleure réponse

Hello,

Sorry for the delay ! Using a lazy translation function allows the translation to take place when the string is rendered to the user, as opposed as translated when the framework interprets the line of code.

Our documentation contains many examples on how to use translations in both the Python ORM and the Javascript Web framework : https://www.odoo.com/documentation/18.0/developer/howtos/translations.html

This section of the page contains an example that illustrates the difference between using the Lazy Translation and the regular one : https://www.odoo.com/documentation/18.0/developer/howtos/translations.html#variables

Hope this helps!

Kind regards,


Avatar
Ignorer
Publications associées Réponses Vues Activité
0
juil. 25
312
0
juil. 25
664
0
juin 25
722
1
juin 25
896
1
juin 25
939