Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5139 Zobrazení

Instead of just the normal one _t()

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvc 25
328
0
čvc 25
700
0
čvn 25
771
1
čvn 25
922
1
čvn 25
963