Index: openacs-4/packages/acs-datetime/catalog/acs-datetime.da_DK.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/catalog/acs-datetime.da_DK.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-datetime/catalog/acs-datetime.da_DK.ISO-8859-1.xml 7 Nov 2002 08:41:32 -0000 1.1 @@ -0,0 +1,42 @@ + + + + + I dag + S M T O T F L + Type + til + Liste + er + Starttidspunkt + S�ndag + Sluttidspunkt + Emner fra + Dag + Tirsdag + Mandag + Datoen skrives som + Titel + Uge + Ingen emnetype + Onsdag + Torsdag + Ugedag + L�rdag + M�ned + Dato + Ingen emner + Fredag + Januar + Februar + Marts + April + Maj + Juni + Juli + August + September + Oktober + November + December + Index: openacs-4/packages/acs-datetime/catalog/acs-datetime.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/catalog/acs-datetime.en_US.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-datetime/catalog/acs-datetime.en_US.ISO-8859-1.xml 7 Nov 2002 08:41:32 -0000 1.1 @@ -0,0 +1,42 @@ + + + + + Today + S M T W T F S + Type + to + is + List + Start Time + Sunday + End Time + Items from + Day + Tuesday + Monday + Date as + Title + Week + No Item Type + Wednesday + Thursday + Day of Week + Saturday + Month + Date + No Items + Friday + January + February + March + April + May + June + July + August + September + October + November + December + Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl,v diff -u -r1.32 -r1.33 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 18 Sep 2002 21:03:59 -0000 1.32 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 7 Nov 2002 08:41:33 -0000 1.33 @@ -88,10 +88,12 @@ " - set days_of_week {Sunday Monday Tuesday Wednesday Thursday Friday Saturday} - foreach day $days_of_week { + + set days_of_week [list Sunday "[_ acs-datetime.Sunday]" Monday "[_ acs-datetime.Monday]" Tuesday "[_ acs-datetime.Tuesday]" Wednesday "[_ acs-datetime.Wednesday]" Thursday "[_ acs-datetime.Thursday]" Friday "[_ acs-datetime.Friday]" Saturday "[_ acs-datetime.Saturday]"] - set lower_day [string tolower $day] + foreach {eng_day day} $days_of_week { + + set lower_day [string tolower $eng_day] set julian [set ${lower_day}_julian] set date [set ${lower_day}_date] set pretty_date [util_AnsiDatetoPrettyDate $date] @@ -408,7 +410,7 @@ } { # Check for zero size if {[ns_set size $calendar_details] == 0} { - return "No Items" + return "[_ acs-datetime.No_Items]" } # The title @@ -426,7 +428,7 @@ } if {![empty_string_p $start_date] && ![empty_string_p $end_date]} { - set title "Items from [util_AnsiDatetoPrettyDate $start_date] to [util_AnsiDatetoPrettyDate $end_date]" + set title "[_ acs-datetime.Items_from] [util_AnsiDatetoPrettyDate $start_date] [_ acs-datetime.to] [util_AnsiDatetoPrettyDate $end_date]" } set return_html "$title

" @@ -441,14 +443,14 @@ # Create the header append return_html "

- " + " if {$real_order_by != "item_type"} { - append return_html "" + append return_html "" } - append return_html "\n" + append return_html "\n" # initialize the item_type so we can do intermediate titles set old_item_type "" @@ -474,7 +476,7 @@ # Do we need a title? if {$real_order_by == "item_type" && $item_type != "$old_item_type"} { if {[empty_string_p $item_type]} { - set item_type_for_title "(No Item Type)" + set item_type_for_title "([_ acs-datetime.No_Item_Type])" } else { set item_type_for_title $item_type } 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 -r1.11 -r1.12 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 18 Sep 2002 21:03:59 -0000 1.11 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 7 Nov 2002 08:41:33 -0000 1.12 @@ -42,6 +42,11 @@ Julian date of the day, and the value is a string (possibly with HTML formatting) that represents the details. } { + if {[string equal $days_of_week "Sunday Monday Tuesday Wednesday Thursday Friday Saturday"]} { + set days_of_week [list [_ acs-datetime.Sunday] [_ acs-datetime.Monday] [_ acs-datetime.Tuesday] [_ acs-datetime.Wednesday] [_ acs-datetime.Thursday] [_ acs-datetime.Friday] [_ acs-datetime.Saturday]] + } + + dt_get_info $date set today_date [dt_sysdate] @@ -226,6 +231,10 @@ } { Returns a small calendar for a specific month. Defaults to this month. } { + if {[string equal $days_of_week "S M T W T F S"]} { + set days_of_week "[_ acs-datetime.S_M_T_W_T_F_S]" + } + return [dt_widget_month \ -calendar_details $calendar_details \ -date $date \ @@ -270,6 +279,10 @@ Returns a calendar for a specific month, with details supplied by Julian date. Defaults to this month. } { + if {[string equal $days_of_week "S M T W T F S"]} { + set days_of_week "[_ acs-datetime.S_M_T_W_T_F_S]" + } + set output "" dt_get_info $date @@ -319,6 +332,10 @@ date. Defaults to this month. Data in calendar_details will be ignored. } { + if {[string equal $days_of_week "S M T W T F S"]} { + set days_of_week "[_ acs-datetime.S_M_T_W_T_F_S]" + } + if { $width < 1 || $width > 12 } { return "Width must be between 1 and 12" } @@ -372,6 +389,10 @@ Returns a calendar year of small calendars for the year of the passed in date. Defaults to this year. } { + if {[string equal $days_of_week "S M T W T F S"]} { + set days_of_week "[_ acs-datetime.lt_S_M_T_W_T_F_S________]" + } + dt_get_info $date return [dt_widget_year \ @@ -428,7 +449,15 @@ # ben: taking out year for now, since it doesn't work foreach viewname {list day week month} { - set text [string toupper $viewname 0] + set text [string toupper $viewname 0] + ns_log bug "STC: $text" + switch -exact -- $text { + List {set text "[_ acs-datetime.List]"} + Day {set text "[_ acs-datetime.Day]"} + Week {set text "[_ acs-datetime.Week]"} + Month {set text "[_ acs-datetime.Month]"} + } + if { $viewname == $view } { # current view append result " " - set days_of_week [list S M T W T F S] + set days_of_week "[_ acs-datetime.S_M_T_W_T_F_S]" + foreach day_of_week $days_of_week { append output "\n" } @@ -750,17 +780,17 @@ " if { $view == "day" && [dt_sysdate] == $date } { - append output "Today" + append output "[_ acs-datetime.Today]" } else { append output " - Today " + [_ acs-datetime.Today] " } append output " - is [dt_ansi_to_pretty] + [_ acs-datetime.is] [dt_ansi_to_pretty]
Day of WeekDateStart TimeEnd Time
[_ acs-datetime.Day_of_Week][_ acs-datetime.Date][_ acs-datetime.Start_Time][_ acs-datetime.End_Time]Type[_ acs-datetime.Type]Title
[_ acs-datetime.Title]
@@ -663,8 +692,9 @@
$day_of_week

-
Date as YYYYMMDD +
[_ acs-datetime.Date_as] YYYYMMDD " Index: openacs-4/packages/acs-datetime/tcl/acs-datetime-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-datetime-procs.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-datetime/tcl/acs-datetime-procs.tcl 14 Sep 2002 17:30:43 -0000 1.5 +++ openacs-4/packages/acs-datetime/tcl/acs-datetime-procs.tcl 7 Nov 2002 08:41:33 -0000 1.6 @@ -49,13 +49,15 @@ ad_proc dt_month_names {} { Returns the calendar month names as a Tcl list (January, February, ...) } { - set month_names [list] + #set month_names [list] - for {set i 1} {$i <= 12} {incr i} { - lappend month_names [clock format [clock scan "2000-$i-1"] -format "%B"] - } + #for {set i 1} {$i <= 12} {incr i} { + #lappend month_names [clock format [clock scan "2000-$i-1"] -format "%B"] + #} - return $month_names + #return $month_names + + return [list [_ acs-datetime.January] [_ acs-datetime.February] [_ acs-datetime.March] [_ acs-datetime.April] [_ acs-datetime.May] [_ acs-datetime.June] [_ acs-datetime.July] [_ acs-datetime.August] [_ acs-datetime.September] [_ acs-datetime.October] [_ acs-datetime.November] [_ acs-datetime.December]] } ad_proc dt_month_abbrev {} {