double translation happens with python message ids
Bug #101389 reported by
Martijn Faassen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Won't Fix
|
Medium
|
Wim Boucquaert |
Bug Description
If i18n:translate="" is in place, but a Python-level message id is returned,
translation right now *happens twice*.
First, the page template engine will str() (or unicode()) the message id,
causing the right translation to happen.
However, after this, an i18n:translate="" in the page template will attempt to
look up that translated string *again*, this time in the domain of the page
template. This will normally fail (as the string cannot be found), and the
default string is returned.
So, matters work by accident, but are not as efficient as they should be.
Changed in silva: | |
assignee: | nobody → aaltepet |
Changed in silva: | |
assignee: | thisfred → wim-boucquaert |
To post a comment you must log in.
Could an example be provided for this? Or an explanation of how to test this?