[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Adding multilanguage support to calendar script?
Advertisement

Adding multilanguage support to calendar script?

Moderators: Calcifer, slothy

Adding multilanguage support to calendar script?

Postby ess_zbyszek » Mon Jan 29, 2007 1:30 pm

ess_zbyszek
 
Posts: 1
Joined: Mon Jan 29, 2007 1:14 pm

Postby Batalf » Wed Feb 07, 2007 12:34 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Language

Postby espenjo » Wed Feb 07, 2007 10:51 pm

It do look like the
<script>
language code='no'
</script>
methode is working. It may be (read:is) bad programming, but this is works for me;

<%
if session("languageCode")="no" then
%>
<script type="text/javascript" src="dhtmlgoodies-calendar_no.js"></script>
<% else %>
<script type="text/javascript" src="dhtmlgoodies-calendar_en.js"></script>
<% end if %>

If anyone have a better solution, please let me know.

Are there any solution with the weeknumber model (europeen/american) in the old calendar function ?
espenjo
 
Posts: 18
Joined: Tue Feb 06, 2007 11:32 pm

Postby espenjo » Mon Feb 19, 2007 4:23 pm

My previous attempt for a solution may not be the best, try this instead;
- Remove the "var languageCode = 'en';" line from dhtmlgoodies-calendar.js
- Create a session varibale (if you are using ASP) with the language code and add this code;
<script type="text/javascript">
var languageCode = '<%=session("languageCode")%>';
</script>
<script type="text/javascript" src="dhtmlgoodies-calendar.js"></script>
espenjo
 
Posts: 18
Joined: Tue Feb 06, 2007 11:32 pm


Return to Calendar script questions

Who is online

Users browsing this forum: No registered users and 4 guests