Author: itthkjer
Date: 2006-04-18 16:08:09 +0200 (Tue, 18 Apr 2006)
New Revision: 2763
Modified:
trunk/src/webapp/WEB-INF/jsp/decorators/mainDecorator.jsp
Log:
Changed text
Modified: trunk/src/webapp/WEB-INF/jsp/decorators/mainDecorator.jsp
===================================================================
--- trunk/src/webapp/WEB-INF/jsp/decorators/mainDecorator.jsp 2006-04-18
13:02:33 UTC (rev 2762)
+++ trunk/src/webapp/WEB-INF/jsp/decorators/mainDecorator.jsp 2006-04-18
14:08:09 UTC (rev 2763)
@@ -91,18 +91,27 @@
<body onload="<%if (currentC.equals("y") || currentC.equals("yip") ||
currentC.equals("yipticker") || currentC.equals("w") || currentC.equals("wip"))
{%>init();<%}%>">
+
<% // sitesearch
final VelocityEngine engine = VelocityResultHandler.getEngine(site);
final Template template = VelocityResultHandler.getTemplate(engine, site,
"/pages/main");
if (template != null){
// it *is* new-school n we doda-dance
final VelocityContext context =
VelocityResultHandler.newContextInstance(engine);
+
+ for (Iterator iter = sources.iterator(); iter.hasNext();) {
+ Modifier mod = (Modifier) iter.next();
+ if ( mod.getName().equals("sesam_hits")) {
+ context.put("sesam_hits", text.getMessage("numberFormat", new
Integer(mod.getCount())));
+ }
+ }
// populate context with sitemesh stuff
context.put("request", request);
context.put("response", response);
context.put("page", siteMeshPage);
context.put("base", request.getContextPath());
context.put("title", OutputConverter.convert(siteMeshPage.getTitle()));
+ context.put("text", text);
{
final StringWriter buffer = new StringWriter();
siteMeshPage.writeBody(OutputConverter.getWriter(buffer));
@@ -380,7 +389,7 @@
</tr>
<% }else{ %>
<tr>
- <td class="cell_one"><span class="pad_5l">Sorter treffene
dine</span></td>
+ <td class="cell_one"><span class="pad_5l">Naviger</span></td>
<td class="cell_three"><decorator:getProperty
property="page.middle-bar"/></td>
<td class="cell_four"><decorator:getProperty
property="page.greybar_ad"/></td>
</tr>
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits