[Zope3-checkins] SVN: Zope3/trunk/src/bugtracker/browser/ Fix some
very old i18n mapping issues
Roger Ineichen
roger at projekt01.ch
Thu May 18 17:51:48 EDT 2006
Log message for revision 68179:
Fix some very old i18n mapping issues
Fix a traversal issue in zpt
Changed:
U Zope3/trunk/src/bugtracker/browser/bug_listing_normal.pt
U Zope3/trunk/src/bugtracker/browser/bug_overview.pt
U Zope3/trunk/src/bugtracker/browser/mail.py
-=-
Modified: Zope3/trunk/src/bugtracker/browser/bug_listing_normal.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/bug_listing_normal.pt 2006-05-18 15:58:15 UTC (rev 68178)
+++ Zope3/trunk/src/bugtracker/browser/bug_listing_normal.pt 2006-05-18 21:51:47 UTC (rev 68179)
@@ -36,6 +36,11 @@
i18n:name="created_date">2003/01/01</b>
- <b tal:replace="bug/numberOfComments"
i18n:name="num_comments">3</b> comments
+ - <span i18n:translate="">Owners: </span>
+ <tal:block repeat="owner bug/owners">
+ <b tal:content="owner/title">username</b>
+ <span tal:condition="not:repeat/owner/end" tal:omit-tag="">,</span>
+ </tal:block>
</div>
</div>
</div>
Modified: Zope3/trunk/src/bugtracker/browser/bug_overview.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/bug_overview.pt 2006-05-18 15:58:15 UTC (rev 68178)
+++ Zope3/trunk/src/bugtracker/browser/bug_overview.pt 2006-05-18 21:51:47 UTC (rev 68179)
@@ -94,7 +94,7 @@
<div tal:repeat="comment view/comments" i18n:domain="">
<h5 style="margin: 0em 0.6em" i18n:translate="">
Entry #<d tal:replace="repeat/comment/number" i18n:name="bug_id"/> by
- <d tal:replace="comment/creator/title" i18n:name="creator"/> on
+ <d tal:define="creator comment/creator" tal:replace="creator/title" i18n:name="creator"/> on
<d tal:replace="comment/modified" i18n:name="modified_datetime"/>
</h5>
<div class="comment"
Modified: Zope3/trunk/src/bugtracker/browser/mail.py
===================================================================
--- Zope3/trunk/src/bugtracker/browser/mail.py 2006-05-18 15:58:15 UTC (rev 68178)
+++ Zope3/trunk/src/bugtracker/browser/mail.py 2006-05-18 21:51:47 UTC (rev 68179)
@@ -28,14 +28,14 @@
if 'ADD' in self.request:
emails = self.request['emails'].strip().split('\n')
IMailSubscriptions(self.context).addSubscriptions(emails)
- status = _('Subscribers successfully added: $emails')
- status.mapping = {'emails': ', '.join(emails)}
+ status = _("Subscribers successfully added: $emails",
+ mapping = {'emails': ', '.join(emails)})
elif 'REMOVE' in self.request:
emails = self.request['remails']
if isinstance(emails, (str, unicode)):
emails = [emails]
IMailSubscriptions(self.context).removeSubscriptions(emails)
- status = _('Subscribers successfully deleted: $emails')
- status.mapping = {'emails': ', '.join(emails)}
+ status = _("Subscribers successfully deleted: $emails",
+ mapping = {'emails': ', '.join(emails)})
return status
More information about the Zope3-Checkins
mailing list