A language pack is essentially a PHP file with constants for specific strings in the grid that can be localized. In addition to that, there are formats (date format, etc) that can be predefined to match the locale of the specific country. Every language file is defined as a class which contain arrays of the translated strings.
In order to modify a language pack, just open the respective php file and edit it with your favourite text editor. For example, let's say we want to modify the English language pack. Opening the /php/localization/en_EN.inc file in a text editor brings are something along the lines of (this is just a part of the file):
<?php class jqEventLocalization { //fullcalender translations // these locale setting use javascript convensions for date forrmating /* * !!!!!!!!! NOTE dateFormat in fullcalender differ from datepicker * Configure both in appropriate way */ public $dateFormat = "dd/MM/yyyy"; public $fullcalendar = array( 'isRTL'=> false, 'firstDay' => 1, 'monthNames'=>array('January','February','March','April','May','June','July','August','September','October','November','December'), 'monthNamesShort'=>array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'), 'dayNames'=> array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'), 'dayNamesShort'=>array('Sun','Mon','Tue','Wed','Thu','Fri','Sat'), 'buttonText'=>array ( 'today' =>'today', 'month' =>'month', 'week' =>'week', 'day'=> 'day', 'search'=>'search' ), 'allDayText'=> 'all-day', 'axisFormat'=> 'h(:mm)tt', 'timeFormat'=>array( 'agenda'=> 'h:mm{ - h:mm}' )); // Time picker // slotMinutes: 30 - this is get from calender options // the corresponding options is timeIntervalpublic $timepicker = array( "minutes"=>"mins", "onehour"=>"1 hr", "hours"=>"hrs" ); ... ?>
Just modify any of the strings/rules you wish. The naming of the string is self-explanatory - for example in order to modify the all-day text, just modify the 'allDayText variable in the defaults array.
Just modify anything you wish. Finally, save the file with another name, for example, "en_EN_custom.inc" and set it in your page instead of the default English language, e.g.
... $eventcal = new jqScheduler($conn); $eventcal->setLocale('en_EN_custom'); ...