İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5280 Görünümler

Instead of just the normal one _t()

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 25
401
0
Tem 25
823
0
Haz 25
840
1
Haz 25
1008
1
Haz 25
1029