跳至內容
選單
此問題已被標幟
1 回覆
5070 瀏覽次數

Instead of just the normal one _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,


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 25
291
0
7月 25
635
0
6月 25
705
1
6月 25
871
1
6月 25
909