summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_render_mixin.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-05-29 10:41:36 +0200
committerMartin Trigaux <mat@odoo.com>2020-06-18 13:03:34 +0200
commit3c3b88f6768e31417263b3828a874ca204e29514 (patch)
tree75cc876da6234374e0a0dab68606536a24acb616 /addons/mail/models/mail_render_mixin.py
parent5af661da7d62605127566124bf5f0e2ee84432db (diff)
[IMP] tools: add placeholder support to _
Mimic the syntax of logging to use placeholders in translatable message. The main advantage is to be able to fallback on the source term if the translation can not be formatted properly. It is very common to have errors in translations with missing placeholders or badly translated (ie. the source "%(subject)s" -> "%(sujet)s"). Instead of blocking the execution of the code, fallback on source string. Task-id: 1853119
Diffstat (limited to 'addons/mail/models/mail_render_mixin.py')
0 files changed, 0 insertions, 0 deletions