Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4861 Visualizzazioni

Instead of just the normal one _t()

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 25
83
0
lug 25
395
0
giu 25
553
1
giu 25
744
1
giu 25
788