Index: openacs-4/contrib/packages/room-reservation/www/reservation-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/reservation-new.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/room-reservation/www/reservation-new.tcl 15 Mar 2004 03:39:31 -0000 1.1
+++ openacs-4/contrib/packages/room-reservation/www/reservation-new.tcl 22 Apr 2004 06:58:38 -0000 1.2
@@ -25,8 +25,8 @@
set room_full_name [room-reservation::rooms::get_full_name -room_id $room_id]
-set title "Reserve A $rooms_pretty_name"
-set context [list [list "rooms" $rooms_pretty_plural] [list "room-view?room_id=$room_id" "$room_full_name Info"] [list "room-reservations?room_id=$room_id" "$room_full_name Reservations"] $title]
+set title "[_ room-reservation.lt_Reserve_A_rooms_prett]"
+set context [list [list "rooms" $rooms_pretty_plural] [list "room-view?room_id=$room_id" "[_ room-reservation.room_full_name_Info]"] [list "room-reservations?room_id=$room_id" "[_ room-reservation.lt_room_full_name_Reserv]"] $title]
# let's make sure we have a date and a time
set date [calendar::adjust_date -date $date -julian_date $julian_date]
@@ -42,66 +42,66 @@
form create reservation
element create reservation room_id \
- -label "Room ID" \
+ -label "[_ room-reservation.Room_ID]" \
-datatype integer \
-widget hidden
element create reservation room_name \
- -label "Room Name" \
+ -label "[_ room-reservation.Room_Name_1]" \
-datatype text \
-widget inform
element create reservation name \
- -label "Event Name" \
+ -label "[_ room-reservation.Event_Name]" \
-datatype text \
-widget text
element create reservation date \
- -label "Date" \
+ -label "[_ room-reservation.Date]" \
-datatype date \
-widget date
element create reservation start_time \
- -label "Start Time" \
+ -label "[_ room-reservation.Start_Time]" \
-datatype date \
-widget date \
-format "HH12:MI AM"
element create reservation end_time \
- -label "End Time" \
+ -label "[_ room-reservation.End_Time]" \
-datatype date \
-widget date \
-format "HH12:MI AM"
element create reservation attendees \
- -label "Expected No. of Attendees" \
+ -label "[_ room-reservation.lt_Expected_No_of_Attend]" \
-datatype integer \
-widget text
element create reservation note \
- -label "Added Instructions / Extra Notes" \
+ -label "[_ room-reservation.lt_Added_Instructions__E_1]" \
-datatype text \
-widget textarea \
-html {cols 60 rows 10 wrap soft} \
-optional
element create reservation contact_person \
- -label "Contact Name" \
+ -label "[_ room-reservation.Contact_Name]" \
-datatype text \
-widget text \
-html {size 60 maxlength 200} \
-optional
element create reservation contact_email \
- -label "Contact Email" \
+ -label "[_ room-reservation.Contact_Email_1]" \
-datatype text \
-widget text \
-html {size 60 maxlength 200} \
-optional
element create reservation contact_phone \
- -label "Contact Phone" \
+ -label "[_ room-reservation.Contact_Phone_1]" \
-datatype text \
-widget text \
-html {size 60 maxlength 200} \
@@ -126,32 +126,32 @@
set end_date [calendar::to_sql_datetime -date $date -time $end_time]
if {![room-reservation::datetime::check_valid_end_date_p -date $end_date]} {
- element set_error reservation date "End date and time has already passed"
+ element set_error reservation date "[_ room-reservation.lt_End_date_and_time_has]"
set form_submit 0
}
if {![room-reservation::datetime::check_valid_dates_p -start_date $start_date -end_date $end_date]} {
- element set_error reservation date "Start date must be before end date"
+ element set_error reservation date "[_ room-reservation.lt_Start_date_must_be_be]"
set form_submit 0
}
if {![room-reservation::datetime::check_valid_year_p -start_date $start_date]} {
- element set_error reservation date "Start date must fall within [parameter::get -parameter FutureYears -default 5] years from now"
+ element set_error reservation date "[_ room-reservation.lt_Start_date_must_fall_]"
set form_submit 0
}
if {[room-reservation::reservations::check_conflict_p -room_id $room_id -start_date $start_date -end_date $end_date]} {
- set error_string "The reservation you are trying to make conflicts with reservation(s):
"
+ set error_string "[_ room-reservation.lt_The_reservation_you_a_1]"
set conflict_list [room-reservation::reservations::get_conflict_ids -room_id $room_id -start_date $start_date -end_date $end_date]
foreach reservation_id $conflict_list {
- append error_string "Reservation $reservation_id (view)
"
+ append error_string "[_ room-reservation.lt_Reservation_reservati]"
}
element set_error reservation date $error_string
set form_submit 0
}
if {![empty_string_p $contact_email] && ![util_email_valid_p $contact_email]} {
- element set_error reservation contact_email "Invalid email address format for "contact email"
+ element set_error reservation contact_email "[_ room-reservation.lt_Invalid_email_address]"
set form_submit 0
}
}