[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - recent_news.pt:1.6
Yvo Schubbe
schubbe@web.de
Thu, 6 Mar 2003 05:33:09 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv11033/CMFDefault/skins/zpt_generic
Modified Files:
recent_news.pt
Log Message:
Merged yuppie-collector122-branch:
- Added i18n attributes. (Collector #122)
- Made scripts independent of submit button values.
- Added transition_form.
=== CMF/CMFDefault/skins/zpt_generic/recent_news.pt 1.5 => 1.6 ===
--- CMF/CMFDefault/skins/zpt_generic/recent_news.pt:1.5 Fri Jul 5 15:45:05 2002
+++ CMF/CMFDefault/skins/zpt_generic/recent_news.pt Thu Mar 6 05:33:02 2003
@@ -2,26 +2,28 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/main_template/macros/master">
<body>
-<div metal:fill-slot="main">
+<div metal:fill-slot="main" i18n:domain="cmf_default">
<div tal:define="b_start string:0;b_start request/b_start | b_start;
newsitems python: here.portal_catalog.searchResults(portal_type='News Item', sort_on='Date', sort_order='reverse', review_state='published');
- Batch python:modules['ZTUtils'].Batch;
- global batch python:Batch(newsitems, 10, int(b_start), orphan=1)">
+ Batch python:modules['ZTUtils'].Batch;
+ global batch python:Batch(newsitems, 10, int(b_start), orphan=1)">
- <p class="Desktop"
+ <p class="Desktop"
tal:define="p batch/previous" tal:condition="p">
<a href=""
- tal:attributes="href string:?b_start=${p/first}"><span tal:replace="p/length">n</span> more recent articles</a>
+ tal:attributes="href string:?b_start=${p/first}"
+ i18n:translate=""><span tal:replace="p/length"
+ i18:name="count">n</span> more recent articles</a>
</p>
<table cellspacing="0" border="0" width="90%"
tal:repeat="newsitems batch"
- tal:condition="newsitems">
+ tal:condition="newsitems">
<tr>
<td class="NewsListing" align="left" valign="top">
<a href="" class="NewsListing"
- tal:attributes="href newsitems/getURL"
- tal:content="newsitems/Title">Title</a>
+ tal:attributes="href newsitems/getURL"
+ tal:content="newsitems/Title">Title</a>
</td>
<td class="NewsListing" align="right" valign="top"
tal:content="newsitems/Date">Date
@@ -34,19 +36,21 @@
<tr>
<td colspan="2">
<em> <span tal:define="pss modules/Products.PythonScripts.standard; niDescription newsitems/Description"
- tal:replace="structure python:pss.structured_text(niDescription)">Description</span></em>
+ tal:replace="structure python:pss.structured_text(niDescription)">Description</span></em>
</td>
</tr>
</table>
<div tal:condition="python:not(newsitems)">
- <p class="Desktop">
+ <p class="Desktop" i18n:translate="">
No news is good news!
</p>
</div>
- <p class="Desktop"
+ <p class="Desktop"
tal:define="n batch/next" tal:condition="n">
<a href=""
- tal:attributes="href string:?b_start=${batch/end}"><span tal:replace="n/length">n</span> older articles</a>
+ tal:attributes="href string:?b_start=${batch/end}"
+ i18n:translate=""><span tal:replace="n/length"
+ i18n:name="count">n</span> older articles</a>
</p>
</div>
</div>