diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-07-09 13:49:24 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-07-10 10:03:43 +0200 |
| commit | 24e01664d414313e6298f007efb1ed7cba126c20 (patch) | |
| tree | 5ea8d498cd0a751ff4aeb4738aa53fdd455b0a26 /doc/reference | |
| parent | 940246f583880d6a1f186e098f183cde64d51c7b (diff) | |
[IMP] doc: add javascript example
Document changes like b87a95b6d6
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/translations.rst | 2 |
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 " + \ |
