コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4978 ビュー

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
221
0
7月 25
520
0
6月 25
621
1
6月 25
807
1
6月 25
868