i18n:target support
Bug #98490 reported by
Jean-François Doyon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Wishlist
|
Unassigned | ||
zope.tal |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
I've patched the trunk to enable i18n:target support in the page template implementation. Find the output of "svn diff" attached.
The tests all pass.
I haven't tested this myself, since I'm actually not a Zope 3 user. I use Zope 2 and need the functionality, which I currently enable through a monkey patch.
Let me know if I missed anything, my first time providing a patch in this fashion.
Changed in zope.tal: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in zope3: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
I'm a bit skeptical because we now make engines take another keyword argument in their translate() method. Not sure if this is a good idea, it might break backward- compatibility.
Either way, this patch should come with an accompanying test that demonstrates i18n:target now actually works. "I've tested it myself" isn't enough because the rest of can't repeat it. Furthermore, we can't repeat it in an automated fashion. That's why we require unit tests.
There are plenty of existing tests that you can probably just enhance with one for i18n:target.