You can define the locale object:
scheduler.locale={
..
}
Please, see the example in the dhtmlxScheduler/sources/locale.js
well,but in samples i can't see how you use this file. where to include it?
Hello,
scheduler.locale object should be defined after dhtmlxscheduler.js is included.
well,i did as you explane,but nothing changed. attached translated to hebrew local.js
i include file named sheduler.php into tabs.php
tabs.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xml; charset=utf-8" />
<title>MAS</title>
</head>
<link rel="stylesheet" type="text/css" href="libs/dhtmlx.css">
<link rel="stylesheet" href="codebase/dhtmlxscheduler.css" type="text/css" charset="utf-8">
<script src="libs/dhtmlx.js"></script>
<script src="scheduler/codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<script src="libs/scheduler/codebase/sources/locale_he.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function init() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.multi_day = true;
scheduler.init('scheduler_here',new Date(2009,7,11),"week");
scheduler.load("libs/scheduler/events.xml");
}
</script>
<body onload="init();">
<div id="a_tabbar" class="dhtmlxTabBar" imgpath="libs/tabs/codebase/imgs/" style="width:100%; height:600px;">
<div id="a1" name="יומן" width="100px">
<?php include("sheduler.php"); ?>
</div>
<div id="a2" name="תשלומים" width="100px">
<!-- Grid -->
<div id="gridbox" style="width:100%;height:550px;overflow:hidden"></div>
<script>//init grid and set its parameters (this part as always);
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("libs/imgs/");
mygrid.setHeader("אוג,יולי,יוני,מאי,אפר,מרץ,פבר,ינו,דצמ,נוב,אוק,ספט,הרשמה,אישור,חתימה,טופס,פעיל,ת.הצטרפות,שם משפחה,שם פרטי,קבוצה");
mygrid.attachHeader(" , , , , , , , , , , , , , , , , , ,#text_filter,#text_filter,#select_filter");
mygrid.setInitWidths("35,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,100,100,100,150");
mygrid.enableSmartRendering(true);
//mygrid.setColAlign("right,left,left,right,center,left,center,center");
mygrid.setColTypes("price,price,price,price,price,price,price,price,price,price,price,price,price,ch,ch,ch,ch,co,ed,ed,ed");
mygrid.setSkin("dhx_skyblue");
mygrid.init();
mygrid.load("get.php");
</script>
</div>
<div id="a3" name="ניהול נוכחות" width="100px">
Content 3
</div>
<div id="a4" name="פרטים אישיים" width="100px">
Content 4
</div>
<div id="a5" name="הגדרות" width="100px">
Content 5
</div>
</div>
</body>
</html>
sheduler.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<script src="libs/scheduler/codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="libs/scheduler/codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="libs/scheduler/codebase/sources/locale_he.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css" media="screen">
html, body{
margin:0px;
padding:0px;
height:590px;
overflow:hidden;
}
</style>
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:590px;'>
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"> </div>
<div class="dhx_cal_next_button"> </div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
</div>