Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Tigra Calendar in Hebrew
SGershon
Newbie

Posts: 1
Registered: 6/2/2005
Location: Israel
Member Is Offline
posted on 6/2/2005 at 12:49 AM Reply With Quote
Tigra Calendar in Hebrew


Hi!

If you would like to use Tigra on your hebrew pages, here is what I did to have it working.

First, you should change, in calendar.html, the arrays of the months and weekdays:
Code:
// months as they appear in the calendar's title
var ARR_MONTHS = ["ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני",
"יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר"];
// week day titles as they appear on the calendar
var ARR_WEEKDAYS = ["רא", "שנ", "של", "רב","חמ", "שי", "שב"];
// day week starts from (normally 0-Su or 1-Mo)
var NUM_WEEKSTART = 0;
Notice that the week in Hebrew always start at sunday (0).

Then, you need to find (about line 100) this:
Code:
<script language="JavaScript">
document.write(
'<td>'+(obj_caller&&obj_caller.year_scro... (more code here) ...);
</script>

And replace it with
Code:
<script language="JavaScript">
document.write(
'<td>'+(obj_caller&&obj_caller.year_scroll?'<a href="javascript:set_datetime('+dt_next_year.valueOf()+')"><img src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16" border="0" alt="previous year"></a>&nbsp;':'')+'<a href="javascript:set_datetime('+dt_next_month.valueOf()+')"><img src="'+STR_ICONPATH+'prev.gif" width="16" height="16" border="0" alt="previous month"></a></td>'+
'<td align="center" width="100%"><font color="#ffffff">'+ARR_MONTHS[dt_current.getMonth()]+' '+dt_current.getFullYear() + '</font></td>'+
'<td><a href="javascript:set_datetime('+dt_prev_month.valueOf()+')"><img src="'+STR_ICONPATH+'next.gif" width="16" height="16" border="0" alt="next month"></a>'+(obj_caller && obj_caller.year_scroll?'&nbsp;<a href="javascript:set_datetime('+dt_prev_year.valueOf()+')"><img src="'+STR_ICONPATH+'next_year.gif" width="16" height="16" border="0" alt="next year"></a>':'')+'</td>'
);
</script>
This will make the arrows of next and back work inverted, because hebrew should be read RTL.

SGershon
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004