<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Fatemeh,</FONT></DIV>
<DIV><FONT face=Arial size=2>I asume you have the Calandar module
working.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We converted it to Dutch ( on a Dutch only site) ,
but that is probably the same problem. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We defined "nl" as a locale in opencms-system.xml
but kept "en" as the first in <localesdefault>
<P>( otherwise we would have to convert the rest of our site). </FONT></P></DIV>
<DIV><FONT face=Arial size=2>We kept all content ( including the Calendar
structured content ) in the default "en" locale. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We adapted the calendar-nl.js in
/system/workplace/resources/components/js_calendar/lang/</FONT></DIV>
<DIV><FONT face=Arial size=2>And made a display_nl_properties and a
holydays_nl.properties in </FONT></DIV>
<DIV><FONT face=Arial
size=2>/system/modules/com.alkacon.opencms.calendar/classes/com/alkacon/opencms/calendar/</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And to be sure copied them over the "en" ones an
the ones without locale. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then in the start of different element jsp_files at
the start we changed the locale to "nl" and at the and end to
"en"</FONT></DIV>
<DIV><FONT face=Arial size=2>for instance in dailyoverview.jsp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><%@ page session="false" buffer="none"
import="java.util.*, org.opencms.jsp.*, com.alkacon.opencms.calendar.*,
org.opencms.util.*" %><%</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>CmsJspActionElement cms = new
CmsJspActionElement(pageContext, request, response);<BR>
cms.getRequestContext().setLocale(new Locale("nl"));</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></div><BR> <%
cms.getRequestContext().setLocale(new Locale("en")); %></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the detail-entry.jsp an detail-serial.jsp we
changed only the format-locale:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><fmt:setLocale value="nl" /></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The rest of the work was not locale
specific.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It is in production ( starting yesterday :-) ) on
<A
href="http://www.voorschoten97.nl/programma/Calendar/EvenementenKalender.html?&calView=1">http://www.voorschoten97.nl/programma/Calendar/EvenementenKalender.html?&calView=1</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Havank</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=fatemeh.moradi@gmail.com
href="mailto:fatemeh.moradi@gmail.com">fatemeh.moradi</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 18, 2009 8:54
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev] Calendar
customization</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hi,<BR>I'd like to customize openCms calendar for Persian date so
I added the calendar_fa.js to the path ../lang but only the names are
customized but the date must be converted to Shamsi date too.how can i do
it?<BR></DIV>
<P>
<HR>
<P></P><BR>_______________________________________________<BR>This mail is
sent to you from the opencms-dev mailing list<BR>To change your list options,
or to unsubscribe from the list, please
visit<BR>http://lists.opencms.org/mailman/listinfo/opencms-dev</BLOCKQUOTE></BODY></HTML>