summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-07-13 17:12:07 +0200
committerChristophe Simonis <chs@odoo.com>2018-07-13 17:12:07 +0200
commit8285630ad2689eb8322534d02bded4d1a7ef8e99 (patch)
tree8e7da60c2932fad4dadad27948b18bf05f4d2a8b /doc/reference
parentaf4df80283f7951651f6f1af5d7761a74f34293c (diff)
parent609491ad0e791a554e350590edd9d83dd0f49a12 (diff)
[MERGE] forward port branch saas-11.3 up to 609491ad0e7
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/translations.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/reference/translations.rst b/doc/reference/translations.rst
index adfc11a259f..81ec506df63 100644
--- a/doc/reference/translations.rst
+++ b/doc/reference/translations.rst
@@ -106,6 +106,7 @@ Blocks
# bad, trailing spaces, blocks out of context
_("You have ") + len(invoices) + _(" invoices waiting")
+ _t("You have ") + invoices.length + _t(" invoices waiting");
# bad, multiple small translations
_("Reference of the document that generated ") + \
@@ -115,6 +116,7 @@ Blocks
# good, allow to change position of the number in the translation
_("You have %s invoices wainting") % len(invoices)
+ _.str.sprintf(_t("You have %s invoices wainting"), invoices.length);
# good, full sentence is understandable
_("Reference of the document that generated " + \