Part of the EllisLab Network
   
 
Calendar Sunday Name
Posted: 30 October 2006 03:23 PM   [ Ignore ]  
Summer Student
Total Posts:  4
Joined  10-30-2006

I have just registered as a new user and this is my first post - excuse me if I missunderstood something, but:

I followed the instructions at User Guide for the Calendaring Class and also for the Language Class.
I have inserted successfully a new language and when I tried the Calendar Class, but using my translation, all fields are translated but NOT the first day of the week: Sunday.
I used:

this->lang->load('calendar','portuguese');
$this->load->library('calendar');
$prefs = array (
'show_next_prev'  => TRUE,'next_prev_url'   => 'http://www.your-site.com/index.php/calendar/show/');
$this->calendar->initialize($prefs);
echo
$this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));

And is displayed: Su S T Q Q S S when should be D S T Q Q S S

Congrats to all devs for the EXCELENT framework!!!
Eduardo.

Profile
 
 
Posted: 30 October 2006 09:39 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2531
Joined  12-21-2001

Thanks.  If you open:  calendar_lang.php

Change this:

$lang['cal_s'] = "Su";

To this:

$lang['cal_su'] = "Su";

 Signature 
Profile
MSG
 
 
Posted: 31 October 2006 12:11 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  4
Joined  10-30-2006

I downloaded v1.5 where it is fixed.
Thanks!

Eduardo.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 62663 Total Logged-in Users: 34
Total Topics: 77202 Total Anonymous Users: 2
Total Replies: 416780 Total Guests: 262
Total Posts: 493982    
Members ( View Memberlist )