Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl,v diff -u -N -r1.18 -r1.19 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 17 May 2003 09:44:35 -0000 1.18 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 22 Sep 2003 19:44:28 -0000 1.19 @@ -13,7 +13,7 @@ { -calendar_details "" -date "" - -days_of_week "Sunday Monday Tuesday Wednesday Thursday Friday Saturday" + -days_of_week "" -large_calendar_p 1 -master_bgcolor "black" -header_bgcolor "black" @@ -42,6 +42,10 @@ Julian date of the day, and the value is a string (possibly with HTML formatting) that represents the details. } { + if [empty_string_p $days_of_week] { + set days_of_week "[_ acs-datetime.days_of_week]" + } + dt_get_info $date set today_date [dt_sysdate] @@ -207,7 +211,7 @@ { -calendar_details "" -date "" - -days_of_week "S M T W T F S" + -days_of_week "" -large_calendar_p 0 -master_bgcolor "black" -header_bgcolor "black" @@ -226,6 +230,9 @@ } { Returns a small calendar for a specific month. Defaults to this month. } { + if [empty_string_p $days_of_week] { + set days_of_week "[_ acs-datetime.short_days_of_week]" + } return [dt_widget_month \ -calendar_details $calendar_details \ -date $date \ @@ -250,7 +257,7 @@ { -calendar_details "" -date "" - -days_of_week "S M T W T F S" + -days_of_week "" -large_calendar_p 0 -master_bgcolor "black" -header_bgcolor "black" @@ -270,6 +277,10 @@ Returns a calendar for a specific month, with details supplied by Julian date. Defaults to this month. } { + + if [empty_string_p $days_of_week] { + set days_of_week "[_ acs-datetime.short_days_of_week]" + } set output "" dt_get_info $date @@ -298,7 +309,7 @@ { -calendar_details "" -date "" - -days_of_week "S M T W T F S" + -days_of_week "" -large_calendar_p 0 -master_bgcolor "black" -header_bgcolor "black" @@ -320,9 +331,13 @@ ignored. } { if { $width < 1 || $width > 12 } { - return "Width must be between 1 and 12" + return "[_ acs-datetime.lt_Width_must_be_]" } + if [empty_string_p $days_of_week] { + set days_of_week "[_ acs-datetime.short_days_of_week]" + } + set output "