Author: andre
Date: 2009-09-14 17:32:30 +0200 (Mon, 14 Sep 2009)
New Revision: 38604
Modified:
openimages/trunk/src/main/webapp/WEB-INF/tags/oip/medialist.tagx
Log:
translations
Modified: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/medialist.tagx
===================================================================
--- openimages/trunk/src/main/webapp/WEB-INF/tags/oip/medialist.tagx
2009-09-14 15:21:12 UTC (rev 38603)
+++ openimages/trunk/src/main/webapp/WEB-INF/tags/oip/medialist.tagx
2009-09-14 15:32:30 UTC (rev 38604)
@@ -30,6 +30,9 @@
</mm:escaper>
<mm:listnodes referid="list" varStatus="status" id="mediafragment">
+ <mm:nodefunction name="translation">
+ <mm:import id="mf_title" reset="true"><mm:field name="title"
/></mm:import>
+ </mm:nodefunction>
<mm:link>
<mm:frameworkparam name="component">oip</mm:frameworkparam>
<mm:frameworkparam name="block">mediafragment</mm:frameworkparam>
@@ -44,9 +47,9 @@
</c:choose>
<dl class="${gridclass}">
<dt>
- <a title="${mediafragment.title}" href="${_}">
+ <a title="${mf_title}" href="${_}">
<c:catch>
- <oip:thumb alt="${mediafragment.title}" />
+ <oip:thumb alt="${mf_title}" />
</c:catch>
</a>
</dt>
@@ -64,35 +67,41 @@
<a href="${_}" title="edit"
class="edit">edit</a><jsp:text> </jsp:text>
</mm:link>
</mm:maywrite>
- <a title="${mediafragment.title}" href="${_}"><mm:field
name="title" escape="wrap_title" /></a>
+ <a title="${mf_title}" href="${_}">
+ <mm:nodefunction name="translation">
+ <mm:field name="title" escape="wrap_title" />
+ </mm:nodefunction>
+ </a>
</dt>
<dd class="img">
- <a title="${mediafragment.title}" href="${_}">
+ <a title="${mf_title}" href="${_}">
<c:catch>
- <oip:thumb alt="${mediafragment.title}" />
+ <oip:thumb alt="${mf_title}" />
</c:catch>
</a>
</dd>
<dd>
- <strong><mm:field name="subtitle" escape="wrap_subtitle"
/></strong>
- <em>
- <mm:field name="intro" escape="wrap_intro" />
- </em>
- <mm:nodeinfo type="type" id="nodetype" write="false" />
- <c:if test="${nodetype ne 'imagefragments' and nodetype ne
'images'}">
- <mm:field name="length">
+ <mm:nodefunction name="translation">
+ <strong><mm:field name="subtitle" escape="wrap_subtitle"
/></strong>
+ <em>
+ <mm:field name="intro" escape="wrap_intro" />
+ </em>
+ <mm:nodeinfo type="type" id="nodetype" write="false" />
+ <c:if test="${nodetype ne 'imagefragments' and nodetype ne
'images'}">
+ <mm:field name="length">
+ <mm:isnotempty>
+ <jsp:text> </jsp:text>
+ (<mm:time inputformat="S" format="m:ss" />)
+ </mm:isnotempty>
+ </mm:field>
+ </c:if>
+ <mm:field name="date">
<mm:isnotempty>
<jsp:text> </jsp:text>
- (<mm:time inputformat="S" format="m:ss" />)
+ <mm:time format="dd MMM yyyy" />
</mm:isnotempty>
</mm:field>
- </c:if>
- <mm:field name="date">
- <mm:isnotempty>
- <jsp:text> </jsp:text>
- <mm:time format="dd MMM yyyy" />
- </mm:isnotempty>
- </mm:field>
+ </mm:nodefunction>
</dd>
</dl>
</c:otherwise>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs