[opencms-dev] language change require

Oguz Yarimtepe comp.ogz at gmail.com
Wed Aug 16 09:57:20 CEST 2006


Hi. In my module's directory structure, in the template directory i
created a template jsp that has a line
<cms:param name="plantillaPhoto">/system/modules/org.opencms.frontend.photoalbum/pages/proyectoalbum.html</cms:param>

And proyectoalbum.html is an edited version of the orginal album.html:

<%@ page import="org.opencms.frontend.photoalbum.*" buffer="none"
session="false" %><%

CmsPhotoAlbumBean cms = new CmsPhotoAlbumBean(pageContext, request, response);

// set the CSS style class names
CmsPhotoAlbumStyle style = new CmsPhotoAlbumStyle();
style.setClassThumbTable("pgThumbTable");
style.setClassThumbImageTitle("pgThumbImageTitle");
style.setClassThumbText("pgThumbText");
style.setClassNavigation("pgNavigation");
style.setClassDetailImageDescription("pgDetailImageDescription");
style.setClassDetailImageTitle("pgDetailImageTitle");

cms.setStyle(style);

%>

<style type="text/css">
<%= cms.getContent("../resources/photoalbum.css") %>
</style><div class="element"><%= cms.displayAlbum() %></div>


By this way i wanted to show the images at one of the cell of the
tables that i used as an outline for my page. To achieve this i
created another frametemplate and included the template file:

String plantillaPhoto       =  cms.getRequest().getParameter(
"plantillaPhoto" );

<% cms.include( plantillaPhoto, null, parametros ); %>

Now it is working as i wanted. This way might be a long way of
creating photoalbums, but for a beginner like me it is enough. The
only problem is the site i am designing is Spanish, that means the
messages at the photoalbum (Next, Prev, Back to the main index) should
be Spanish. How can i change them to Spanish?


-- 
Oğuz Yarımtepe


More information about the opencms-dev mailing list