select egs.title as grades_sheet_name,
- to_char(egs.creation_date,'Month DD YYYY') as upload_date,
+ to_char(egs.creation_date, 'YYYY-MM-DD HH24:MI:SS') as upload_date_ansi,
person__name(egs.creation_user) as upload_user,
egs.data as sheet_data,
egs.revision_id
Index: openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.adp 12 May 2004 02:07:45 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.adp 10 Jun 2004 21:08:53 -0000 1.2
@@ -2,8 +2,9 @@
@page_title;noquote@
@context;noquote@
-These are the grades sheets used to evaluate students for this task
+#evaluation.lt_These_are_the_grades_#
+
Index: openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.tcl 12 May 2004 02:07:45 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/evaluations/grades-sheets.tcl 10 Jun 2004 21:08:53 -0000 1.2
@@ -14,36 +14,36 @@
} -validate {
grades_sheets {
if { ![db_string count_grades_sheets { *SQL* }] } {
- ad_complain "There are no files associated with this task"
+ ad_complain "[_ evaluation.lt_There_are_no_files_as]"
}
}
}
-set page_title "Grades Sheets"
-set context [list [list "[export_vars -base student-list { task_id }]" "Studen List"] "Grades Sheets"]
+set page_title "[_ evaluation.Grades_Sheets_]"
+set context [list [list "[export_vars -base student-list { task_id }]" "[_ evaluation.Studen_List_]"] "[_ evaluation.Grades_Sheets_]"]
set base_url [ad_conn package_url]
template::list::create \
-name grades_sheets \
-multirow grades_sheets \
- -key grades_sheet_id \
- -filters { task_id {} } \
- -orderby { default_value grades_sheet_name } \
+ -key grades_sheet_id \
+ -filters { task_id {} } \
+ -orderby { default_value grades_sheet_name } \
-elements {
grades_sheet_name {
- label "Grades Sheet Name"
+ label "[_ evaluation.Grades_Sheet_Name_]"
orderby_asc {grades_sheet_name asc}
orderby_desc {grades_sheet_name desc}
}
- upload_date {
- label "Upload Date"
+ upload_date_pretty {
+ label "[_ evaluation.Upload_Date_]"
orderby_asc {upload_date asc}
orderby_desc {upload_date desc}
}
upload_user {
- label "Uploaded by"
+ label "[_ evaluation.Uploaded_by_]"
orderby_asc {upload_user asc}
orderby_desc {upload_user desc}
}
@@ -54,7 +54,7 @@
}
link_url_col view_url
- link_html { title "View grades sheet" }
+ link_html { title "[_ evaluation.View_grades_sheet_]" }
}
}
@@ -64,8 +64,9 @@
set orderby " order by grades_sheet_name asc"
}
-db_multirow -extend { view_url } grades_sheets get_grades_sheets { *SQL* } {
- set view_url "[export_vars -base "${base_url}view/$grades_sheet_name" { revision_id }]"
+db_multirow -extend { view_url upload_date_pretty } grades_sheets get_grades_sheets { *SQL* } {
+ set view_url "[export_vars -base "${base_url}view/$grades_sheet_name" { revision_id }]"
+ set upload_date_pretty [lc_time_fmt $upload_date_ansi "%q"]
}
ad_return_template
Index: openacs-4/packages/evaluation/www/admin/evaluations/one-evaluation-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/one-evaluation-edit.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/evaluations/one-evaluation-edit.tcl 19 May 2004 17:33:09 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/evaluations/one-evaluation-edit.tcl 10 Jun 2004 21:08:53 -0000 1.3
@@ -14,14 +14,14 @@
set return_url "student-list?[export_vars -url { task_id }]"
-set page_title "View/Edit Evaluation"
+set page_title "[_ evaluation.ViewEdit_Evaluation_]"
-set context [list [list [export_vars -base student-list { task_id }] "Students List"] $page_title]
+set context [list [list [export_vars -base student-list { task_id }] "[_ evaluation.Students_List_]"] $page_title]
if { [ad_form_new_p -key evaluation_id] || [string eq $evaluation_mode "display"] } {
- set comment_label "Comments"
+ set comment_label "[_ evaluation.Comments_]"
} else {
- set comment_label "Edit Reason"
+ set comment_label "[_ evaluation.Edit_Reason_]"
}
db_1row get_evaluation_info { *SQL* }
@@ -31,13 +31,13 @@
evaluation_id:key
{party_name:text
- {label "Name"}
+ {label "[_ evaluation.Name_]"}
{html {size 30}}
{mode display}
}
{grade:text
- {label "Grade"}
+ {label "[_ evaluation.Grade_]"}
{html {size 5}}
}
@@ -47,43 +47,43 @@
}
{show_student_p:text(radio)
- {label "Will the student be able to see the grade?"}
- {options {{Yes t} {No f}}}
+ {label "[_ evaluation.lt_Will_the_student_be_a_1]"}
+ {options {{"[_ evaluation.Yes_]" t} {"[_ evaluation.No_]" f}}}
}
} -edit_request {
db_1row evaluation_info { *SQL* }
- set grade [format %.2f $grade]
+ set grade [format %.2f [lc_numeric $grade]]
} -validate {
{grade
{ [ad_var_type_check_number_p $grade] }
- { The grade must be a valid number }
+ { [_ evaluation.lt_The_grade_must_be_a_v_1] }
}
{comments
{ [string length $comments] < 4000 }
- { The edit reason must be less than 4000 characteras long }
+ { [_ evaluation.lt_The_edit_reason_must_] }
}
} -on_submit {
- db_transaction {
-
- set revision_id [evaluation::new_evaluation -new_item_p 0 -item_id $item_id -content_type evaluation_student_evals \
- -content_table evaluation_student_evals -content_id evaluation_id -description $comments \
- -show_student_p $show_student_p -grade $grade -task_id $task_id -party_id $party_id]
-
- evaluation::set_live -revision_id $revision_id
-
- }
-
- # send the notification to everyone suscribed
- evaluation::notification::do_notification -task_id $task_id -evaluation_id $revision_id -package_id [ad_conn package_id] -notif_type one_evaluation_notif
-
- ad_returnredirect "$return_url"
- ad_script_abort
+ db_transaction {
+
+ set revision_id [evaluation::new_evaluation -new_item_p 0 -item_id $item_id -content_type evaluation_student_evals \
+ -content_table evaluation_student_evals -content_id evaluation_id -description $comments \
+ -show_student_p $show_student_p -grade $grade -task_id $task_id -party_id $party_id]
+
+ evaluation::set_live -revision_id $revision_id
+
+ }
+
+ # send the notification to everyone suscribed
+ evaluation::notification::do_notification -task_id $task_id -evaluation_id $revision_id -package_id [ad_conn package_id] -notif_type one_evaluation_notif
+
+ ad_returnredirect "$return_url"
+ ad_script_abort
}
-
+
ad_return_template
Index: openacs-4/packages/evaluation/www/admin/evaluations/student-list-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/student-list-postgresql.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/evaluations/student-list-postgresql.xql 22 May 2004 01:20:25 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/evaluations/student-list-postgresql.xql 10 Jun 2004 21:08:53 -0000 1.3
@@ -12,16 +12,16 @@
ea.revision_id,
ese.party_id,
ese.grade,
- to_char(ea.last_modified, 'MM-DD-YYYY HH24:MI:SS') as pretty_submission_date,
+ to_char(ea.last_modified, 'YYYY-MM-DD HH24:MI:SS') as submission_date_ansi,
ea.last_modified as submission_date,
ese.last_modified as evaluation_date,
et.online_p,
et.due_date,
ese.evaluation_id
from evaluation_tasks et,
evaluation_student_evalsi ese left outer join evaluation_answersi ea on (ea.party_id = ese.party_id
- and ea.task_id = ese.task_id
- and content_revision__is_live(ea.answer_id) = true)
+ and ea.task_id = ese.task_id
+ and content_revision__is_live(ea.answer_id) = true)
where et.task_id = :task_id
and et.task_id = ese.task_id
and content_revision__is_live(ese.evaluation_id) = true
@@ -64,7 +64,7 @@
ea.data as answer_data,
ea.title as answer_title,
ea.revision_id,
- to_char(ea.last_modified, 'MM-DD-YYYY HH24:MI:SS') as pretty_submission_date,
+ to_char(ea.last_modified, 'YYYY-MM-DD HH24:MI:SS') as submission_date_ansi,
et.due_date,
ea.last_modified as submission_date
from evaluation_answersi ea,
Index: openacs-4/packages/evaluation/www/admin/evaluations/student-list.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/student-list.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/evaluations/student-list.adp 7 Jun 2004 16:05:09 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/evaluations/student-list.adp 10 Jun 2004 21:08:53 -0000 1.4
@@ -4,32 +4,45 @@
- Task Name: |
+ #evaluation.Task_Name# |
@task_name@ |
- Due Date: |
- @due_date@ |
+ #evaluation.Due_Date# |
+ @due_date_pretty@ |
+ Is the task submitted online? |
+
+
+
+ Yes
+
+ No
+
+
+ |
+
+
@groups_admin;noquote@ |
|
-Evaluated Students (@total_evaluated@)
+#evaluation.lt_Evaluated_Students_to#
+Theese are the evaluated students. Note that if you evaluated them over a grad different from 100, the system automatically did the conversion so the grade will be shown over 100 points.
-Students with answers that have not been evaluated (@not_evaluated_with_answer@)
+#evaluation.lt_Students_with_answers#
-Click here if you want to download all the answers in one file
+#evaluation.Click# #evaluation.here# #evaluation.lt_if_you_want_to_downlo#
@@ -38,24 +51,24 @@
-There are no students to eval that already answered
+#evaluation.lt_There_are_no_students#
-Students who have not submitted answers and have not been evaluated (@not_evaluated_with_no_answer@)
+#evaluation.lt_Students_who_have_not#
-There are no students to eval with no answer
+#evaluation.lt_There_are_no_students_1#
+
Index: openacs-4/packages/evaluation/www/admin/evaluations/student-list.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/student-list.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/evaluation/www/admin/evaluations/student-list.tcl 22 May 2004 01:20:25 -0000 1.4
+++ openacs-4/packages/evaluation/www/admin/evaluations/student-list.tcl 10 Jun 2004 21:08:53 -0000 1.5
@@ -9,21 +9,23 @@
@creation-date Mar 2004
@cvs-id $Id$
} {
- task_id:integer,notnull
- {return_url "student-list?[export_vars -url { task_id }]"}
- {orderby_wa:optional}
- {orderby_na:optional}
+ task_id:integer,notnull
+ {return_url "student-list?[export_vars -url { task_id }]"}
+ {orderby_wa:optional}
+ {orderby_na:optional}
+ {orderby:optional}
}
set user_id [ad_conn user_id]
-set page_title "Student List"
-set context { "Student List" }
+set page_title "[_ evaluation.Student_List_]"
+set context { "[_ evaluation.Student_List_]" }
db_1row get_task_info { *SQL* }
+set due_date_pretty [lc_time_fmt $due_date_ansi "%q"]
if { $number_of_members > 1 } {
- set groups_admin "Groups administration"
+ set groups_admin "[_ evaluation.lt_Groups_administration]"
} else {
set groups_admin ""
}
@@ -35,7 +37,7 @@
# working with already evaluated parties
#
-set actions [list "Edit Evaluations" [export_vars -base "evaluations-edit" { task_id }]]
+set actions [list "[_ evaluation.Edit_Evaluations_]" [export_vars -base "evaluations-edit" { task_id }]]
template::list::create \
-name evaluated_students \
@@ -44,27 +46,28 @@
-key task_id \
-pass_properties { return_url task_id evaluation_mode } \
-filters { task_id {} } \
+ -orderby { default_value party_name } \
-elements {
party_name {
- label "Name"
+ label "[_ evaluation.Name_]"
orderby_asc {party_name asc}
orderby_desc {party_name desc}
link_url_eval {[export_vars -base "one-evaluation-edit" { evaluation_id task_id evaluation_mode }]}
- link_html { title "View evaluation" }
+ link_html { title "[_ evaluation.View_evaluation_]" }
}
grade {
- label "Maximun Grade: 100"
+ label "[_ evaluation.Grade_over_100_]"
orderby_asc {grade asc}
orderby_desc {grade desc}
}
- actions {
+ action {
label ""
- link_url_col actions_url
+ link_url_col action_url
}
- pretty_submission_date {
- label "Sumission Date"
- orderby_asc {pretty_submission_date asc}
- orderby_desc {pretty_submission_date desc}
+ submission_date_pretty {
+ label "[_ evaluation.Sumission_Date_]"
+ orderby_asc {submission_date_ansi asc}
+ orderby_desc {submission_date_ansi desc}
}
view {
label {}
@@ -73,7 +76,7 @@
}
link_url_eval {[export_vars -base "one-evaluation-edit" { evaluation_id task_id evaluation_mode }]}
- link_html { title "View evaluation" }
+ link_html { title "[_ evaluation.View_evaluation_]" }
}
edit {
label {}
@@ -82,7 +85,7 @@
}
link_url_eval {[export_vars -base "one-evaluation-edit" { evaluation_id task_id }]}
- link_html { title "Edit evaluation" }
+ link_html { title "[_ evaluation.Edit_evaluation_]" }
}
delete {
label {}
@@ -91,7 +94,7 @@
}
link_url_eval {[export_vars -base "evaluation-delete" { evaluation_id return_url task_id }]}
- link_html { title "Delete evaluation" }
+ link_html { title "[_ evaluation.Delete_evaluation_]" }
}
}
@@ -101,28 +104,30 @@
set orderby " order by party_name asc"
}
-db_multirow -extend { actions action_url } evaluated_students evaluated_students { *SQL* } {
+db_multirow -extend { action action_url submission_date_pretty } evaluated_students evaluated_students { *SQL* } {
lappend done_students $party_id
- set grade [format %.2f $grade]
+ set submission_date_pretty [lc_time_fmt $submission_date_ansi "%c"]
+ set grade [format %.2f [lc_numeric $grade]]
+ if { [template::util::date::compare $submission_date $due_date] > 0 } {
+ set action "[_ evaluation.lt_submission_date_prett]"
+ }
+
if { [string eq $online_p "t"] } {
# working with answer stuff (if it has a file/url attached)
if { [empty_string_p $answer_data] } {
- set action "No response"
+ set action "[_ evaluation.No_response_]"
} elseif { [regexp "http://" $answer_data] } {
set action_url "[export_vars -base "$answer_data" { }]"
- set action "View answer"
+ set action "[_ evaluation.View_answer_]"
} else {
# we assume it's a file
set action_url "[export_vars -base "../../view/$answer_title" { revision_id }]"
- set action "View answer"
+ set action "[_ evaluation.View_answer_]"
}
- if { [string eq $action "View answer"] && ([template::util::date::compare $submission_date $evaluation_date] > 0) } {
- set action "View NEW answer"
+ if { [string eq $action "[_ evaluation.View_answer_]"] && ([template::util::date::compare $submission_date $evaluation_date] > 0) } {
+ set action " [_ evaluation.View_NEW_answer_]"
}
- if { [template::util::date::compare $submission_date $due_date] > 0 } {
- set pretty_submission_date "$pretty_submission_date (late)"
- }
}
}
@@ -141,23 +146,27 @@
#
set elements [list party_name \
- [list label "Name" \
+ [list label "[_ evaluation.Name_]" \
orderby_asc {party_name asc} \
orderby_desc {party_name desc}] \
+ submission_date_pretty \
+ [list label "[_ evaluation.Submission_Date_]" \
+ orderby_asc {submission_date_ansi asc} \
+ orderby_desc {submission_date_ansi desc}] \
answer \
- [list label "Answer" \
+ [list label "[_ evaluation.Answer_]" \
link_url_col answer_url \
- link_html { title "View answer" }] \
+ link_html { title "[_ evaluation.View_answer_]" }] \
grade \
- [list label "Maximun Grade: " \
+ [list label "[_ evaluation.Maximun_Grade_] " \
display_template { } ] \
comments \
- [list label "Comments" \
+ [list label "[_ evaluation.Comments_]" \
display_template { } \
] \
show_answer \
- [list label "Allow the students
to see the grade?" \
- display_template { Yes No } \
+ [list label "[_ evaluation.lt_Allow_the_students_br]" \
+ display_template { [_ evaluation.Yes_] [_ evaluation.No_] } \
] \
]
@@ -177,21 +186,23 @@
set orderby_wa " order by party_name asc"
}
-db_multirow -extend { answer answer_url } not_evaluated_wa get_not_evaluated_wa_students { *SQL* } {
+db_multirow -extend { answer answer_url submission_date_pretty } not_evaluated_wa get_not_evaluated_wa_students { *SQL* } {
lappend done_students $party_id
if { [string eq $online_p "t"] } {
- set answer "View answer"
+ set submission_date_pretty "[lc_time_fmt $submission_date_ansi "%Q"] [lc_time_fmt $submission_date_ansi "%X"]"
+ if { [template::util::date::compare $submission_date $due_date] > 0 } {
+ set submission_date_pretty "[_ evaluation.lt_submission_date_prett_1]"
+ } else {
+ }
+ set answer "[_ evaluation.View_answer_]"
# working with answer stuff (if it has a file/url attached)
if { [regexp "http://" $answer_data] } {
set answer_url [export_vars -base "$answer_data" { }]
} else {
# we assume it's a file
set answer_url [export_vars -base "../../view/$answer_title" { revision_id }]
}
- if { [template::util::date::compare $submission_date $due_date] > 0 } {
- set pretty_submission_date "$pretty_submission_date (late answer)"
- }
}
}
@@ -200,19 +211,19 @@
#
set elements [list party_name \
- [list label "Name" \
+ [list label "[_ evaluation.Name_]" \
orderby_asc {party_name asc} \
orderby_desc {party_name desc}] \
grade \
- [list label "Grade over " \
+ [list label "[_ evaluation.Grade_over_] " \
display_template { } ] \
comments \
- [list label "Comments" \
+ [list label "[_ evaluation.Comments_]" \
display_template { } \
] \
show_answer \
- [list label "Allow the students
to see the grade?" \
- display_template { Yes No } \
+ [list label "[_ evaluation.lt_Allow_the_students_br]" \
+ display_template { [_ evaluation.Yes_] [_ evaluation.No_] } \
] \
]
Index: openacs-4/packages/evaluation/www/admin/evaluations/student-list.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/student-list.xql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/evaluations/student-list.xql 7 Jun 2004 16:05:09 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/evaluations/student-list.xql 10 Jun 2004 21:08:53 -0000 1.4
@@ -11,7 +11,7 @@
eg.grade_plural_name,
eg.weight as grade_weight,
et.weight as task_weight,
- to_char(et.due_date,'Month DD YYYY') as due_date,
+ to_char(et.due_date, 'YYYY-MM-DD HH24:MI:SS') as due_date_ansi,
et.number_of_members,
et.online_p
from evaluation_grades eg, evaluation_tasks et
Index: openacs-4/packages/evaluation/www/admin/grades/distribution-edit.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/distribution-edit.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/grades/distribution-edit.adp 7 Jun 2004 16:05:11 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/grades/distribution-edit.adp 10 Jun 2004 21:08:54 -0000 1.3
@@ -2,7 +2,7 @@
@page_title@
@context@
-Distribution for grade "@grade_plural_name@"
+
#evaluation.lt_Distribution_for_grad#
@grade_comments@
@@ -16,6 +16,6 @@
-There are no tasks associated with this assignments type
+
#evaluation.lt_There_are_no_tasks_as#
-
\ No newline at end of file
+
Index: openacs-4/packages/evaluation/www/admin/grades/distribution-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/distribution-edit.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/grades/distribution-edit.tcl 13 May 2004 16:29:41 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/grades/distribution-edit.tcl 10 Jun 2004 21:08:54 -0000 1.3
@@ -12,30 +12,30 @@
set user_id [ad_conn user_id]
-set page_title "Assignment Types Distribution"
-set context [list [list "grades" "Assignment Types"] "Assignment Types Distribution"]
+set page_title "[_ evaluation.lt_Assignment_Types_Dist]"
+set context [list [list "grades" "[_ evaluation.Assignment_Types_]"] "[_ evaluation.lt_Assignment_Types_Dist]"]
db_1row grade_info { *SQL* }
set elements [list task_name \
- [list label "Name" \
- orderby_asc {task_name asc} \
- orderby_desc {task_name desc}] \
- task_weight \
- [list label "Weight" \
- display_template { } \
- ] \
- requires_grade \
- [list label "Requires Grade?" \
- display_template { Yes No } \
- ] \
- ]
-
+ [list label "[_ evaluation.Name_]" \
+ orderby_asc {task_name asc} \
+ orderby_desc {task_name desc}] \
+ task_weight \
+ [list label "[_ evaluation.Weight_]" \
+ display_template { } \
+ ] \
+ requires_grade \
+ [list label "[_ evaluation.Requires_Grade_]" \
+ display_template { [_ evaluation.Yes_] [_ evaluation.No_] } \
+ ] \
+ ]
+
template::list::create \
-name grades \
-multirow grades \
- -key task_id \
- -filters { grade_id {} } \
+ -key task_id \
+ -filters { grade_id {} } \
-elements $elements
@@ -46,15 +46,15 @@
}
db_multirow -extend { radio_yes_checked radio_no_checked } grades get_grade_tasks { *SQL* } {
-
- if { [string eq $requires_grade_p "t"] } {
- set radio_yes_checked "checked"
- set radio_no_checked ""
- } else {
- set radio_yes_checked ""
- set radio_no_checked "checked"
- }
-
+
+ set task_weight [format %.2f [lc_numeric $task_weight]]
+ if { [string eq $requires_grade_p "t"] } {
+ set radio_yes_checked "checked"
+ set radio_no_checked ""
+ } else {
+ set radio_yes_checked ""
+ set radio_no_checked "checked"
+ }
}
Index: openacs-4/packages/evaluation/www/admin/grades/grades-add-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-add-edit.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/grades/grades-add-edit.tcl 7 Jun 2004 16:05:11 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/grades/grades-add-edit.tcl 10 Jun 2004 21:08:54 -0000 1.3
@@ -15,58 +15,58 @@
set package_id [ad_conn package_id]
if { [ad_form_new_p -key grade_id] } {
- set page_title "Add Assignment Type"
+ set page_title "[_ evaluation.Add_Assignment_Type_]"
} else {
- set page_title "Edit Assignment Type"
+ set page_title "[_ evaluation.lt_Edit_Assignment_Type_]"
}
-set context [list [list [export_vars -base grades { }] "Assignment Types"] $page_title]
+set context [list [list [export_vars -base grades { }] "[_ evaluation.Assignment_Types_]"] $page_title]
ad_form -name grade -cancel_url [export_vars -base grades { }] -export { } -form {
grade_id:key
{grade_name:text
- {label "Assignment Type Name"}
+ {label "[_ evaluation.lt_Assignment_Type_Name_]"}
{html {size 30}}
}
{grade_plural_name:text
- {label "Assignment Plural Type Name"}
+ {label "[_ evaluation.lt_Assignment_Plural_Typ]"}
{html {size 30}}
}
{weight:float
- {label "Weight"}
+ {label "[_ evaluation.Weight_]"}
{html {size 5}}
}
{comments:text(textarea),optional
- {label "Assignment Type's Comments"}
+ {label "[_ evaluation.lt_Assignment_Types_Comm]"}
{html {rows 4 cols 40}}
}
} -edit_request {
db_1row get_grade_info { *SQL* }
-
+ set weight [format %.2f [lc_numeric $weight]]
set grade_id $item_id
} -validate {
{weight
{ ($weight >= 0) && ($weight <= 100) }
- {Weight must be a real number and between 0 and 100}
+ { [_ evaluation.lt_Weight_must_be_a_real] }
}
} -on_submit {
db_transaction {
- set revision_id [evaluation::new_grade -new_item_p [ad_form_new_p -key grade_id] -item_id $grade_id -content_type evaluation_grades \
- -content_table evaluation_grades -content_id grade_id -name $grade_name -plural_name $grade_plural_name -description $comments -weight $weight]
-
- evaluation::set_live -revision_id $revision_id
-
+ set revision_id [evaluation::new_grade -new_item_p [ad_form_new_p -key grade_id] -item_id $grade_id -content_type evaluation_grades \
+ -content_table evaluation_grades -content_id grade_id -name $grade_name -plural_name $grade_plural_name -description $comments -weight $weight]
+
+ evaluation::set_live -revision_id $revision_id
+
}
ad_returnredirect "grades"
Index: openacs-4/packages/evaluation/www/admin/grades/grades-delete-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-delete-2.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/grades/grades-delete-2.tcl 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/grades/grades-delete-2.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -12,13 +12,13 @@
operation
}
-if { [string eq $operation "Yes, I really want to remove this grade"] } {
+if { [string eq $operation "[_ evaluation.lt_Yes_I_really_want_to__1]"] } {
db_transaction {
db_exec_plsql delete_grade { *SQL* }
} on_error {
- ad_return_error "Error deleting the grade" "We got the following error while trying to remove the grade: $errmsg
"
+ ad_return_error "[_ evaluation.lt_Error_deleting_the_gr]" "[_ evaluation.lt_We_got_the_following__1]"
ad_script_abort
}
} else {
Index: openacs-4/packages/evaluation/www/admin/grades/grades-delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-delete.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/grades/grades-delete.adp 7 Jun 2004 16:05:11 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/grades/grades-delete.adp 10 Jun 2004 21:08:54 -0000 1.3
@@ -1,12 +1,12 @@
@context;noquote@
-Remove Grade
+#evaluation.Remove_Grade#
-Are you sure you want to remove the assignment type "@grade_plural_name@"? (If your answer is yes, all the evaluations, tasks, tasks solutions and answers associated with this assignment type will be deleted too)
+#evaluation.lt_Are_you_sure_you_want#
-
+
Index: openacs-4/packages/evaluation/www/admin/grades/grades-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-delete.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/grades/grades-delete.tcl 7 Jun 2004 16:05:11 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/grades/grades-delete.tcl 10 Jun 2004 21:08:54 -0000 1.3
@@ -15,16 +15,11 @@
set user_id [ad_verify_and_get_user_id]
-set page_title "Delete Assignment Type"
+set page_title "[_ evaluation.lt_Delete_Assignment_Typ]"
-set context [list [list "grades" "Assignment Types"] "Delete Assignment Type"]
+set context [list [list "grades" "[_ evaluation.Assignment_Types_]"] "[_ evaluation.lt_Delete_Assignment_Typ]"]
-db_1row get_grade_info "
- select item_id,
- grade_plural_name
- from evaluation_gradesx
- where grade_id = :grade_id
-"
+db_1row get_grade_info { *SQL* }
set export_vars [export_form_vars grade_id return_url]
Index: openacs-4/packages/evaluation/www/admin/grades/grades-reports-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-reports-postgresql.xql,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/evaluation/www/admin/grades/grades-reports-postgresql.xql 7 Jun 2004 16:05:11 -0000 1.4
+++ openacs-4/packages/evaluation/www/admin/grades/grades-reports-postgresql.xql 10 Jun 2004 21:08:54 -0000 1.5
@@ -33,15 +33,15 @@
- , trunc(evaluation__grade_total_grade(cu.user_id,$grade_id),2) as grade_$grade_id
+ , [lc_numeric trunc(evaluation__grade_total_grade(cu.user_id,$grade_id),2)] as grade_$grade_id
- , trunc(evaluation__class_total_grade(cu.user_id,$package_id),2) as total_grade
+ , [lc_numeric trunc(evaluation__class_total_grade(cu.user_id,$package_id),2)] as total_grade
Index: openacs-4/packages/evaluation/www/admin/grades/grades-reports.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-reports.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/grades/grades-reports.adp 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/grades/grades-reports.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -1,6 +1,9 @@
@page_title;noquote@
@context;noquote@
-
+#evaluation.lt_This_is_the_grades_re#
+#evaluation.lt_You_can_order_the_gra#
+
+
Index: openacs-4/packages/evaluation/www/admin/grades/grades-reports.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-reports.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/evaluation/www/admin/grades/grades-reports.tcl 7 Jun 2004 16:05:12 -0000 1.4
+++ openacs-4/packages/evaluation/www/admin/grades/grades-reports.tcl 10 Jun 2004 21:08:54 -0000 1.5
@@ -13,13 +13,13 @@
} -validate {
grades_for_package {
if { [string eq [db_string package_grades { *SQL* }] 0] } {
- ad_complain "There are no grades for this group."
+ ad_complain "[_ evaluation.lt_There_are_no_grades_f]"
}
}
}
-set page_title "Grades Report"
-set context "Grades Report"
+set page_title "[_ evaluation.Grades_Report_]"
+set context "[_ evaluation.Grades_Report_]"
set package_id [ad_conn package_id]
# we have to decide if we are going to show all the users in the system
@@ -34,14 +34,15 @@
}
set elements [list student_name \
- [list label "Name" \
+ [list label "[_ evaluation.Name_]" \
link_url_col student_url \
orderby_asc {student_name asc} \
orderby_desc {student_name desc}] \
]
db_foreach grade_type { *SQL* } {
- set grade_label_${grade_id} "$grade_plural_name ($weight %) "
+ set weight [format %.0f [lc_numeric $weight]]
+ set grade_label_${grade_id} "${grade_plural_name} ($weight%) "
append pass_grades " grade_label_${grade_id} "
lappend elements grade_$grade_id \
[list label "@grade_label_${grade_id};noquote@" \
@@ -53,7 +54,7 @@
}
lappend elements total_grade \
- [list label "Total Grade" \
+ [list label "[_ evaluation.Total_Grade_]" \
orderby_asc {total_grade asc} \
orderby_desc {total_grade desc} \
]
@@ -77,5 +78,5 @@
db_multirow grades_report $query_name { *SQL* } {
-
+
}
Index: openacs-4/packages/evaluation/www/admin/grades/grades-type-reports-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-type-reports-postgresql.xql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/grades/grades-type-reports-postgresql.xql 31 May 2004 17:04:58 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/grades/grades-type-reports-postgresql.xql 10 Jun 2004 21:08:54 -0000 1.4
@@ -46,15 +46,15 @@
- , trunc(evaluation__task_grade(cu.user_id,$task_id),2) as task_$task_id
+ , [lc_numeric trunc(evaluation__task_grade(cu.user_id,$task_id),2)] as task_$task_id
- , trunc(evaluation__grade_total_grade(cu.user_id,:grade_id),2) as total_grade
+ , [lc_numeric trunc(evaluation__grade_total_grade(cu.user_id,:grade_id),2)] as total_grade
Index: openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.adp 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -1,6 +1,10 @@
@page_title;noquote@
@context;noquote@
+#evaluation.lt_This_is_the_grades_re_1#
+#evaluation.lt_You_can_order_the_gra_1#
+
+
Index: openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.tcl 31 May 2004 17:04:58 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.tcl 10 Jun 2004 21:08:54 -0000 1.4
@@ -14,13 +14,13 @@
} -validate {
tasks_for_grade {
if { [string eq [db_string get_tasks { *SQL* }] 0] } {
- ad_complain "There are no tasks for this grade type."
+ ad_complain "[_ evaluation.lt_There_are_no_tasks_fo_1]"
}
}
}
-set page_title "Grades Report"
-set context [list [list "[export_vars -base grades-reports { }]" "Grades Report"] "One Grade Type"]
+set page_title "[_ evaluation.Grades_Report_]"
+set context [list [list "[export_vars -base grades-reports { }]" "[_ evaluation.Grades_Report_]"] "[_ evaluation.One_Grade_Type_]"]
set package_id [ad_conn package_id]
@@ -36,24 +36,24 @@
}
set elements [list student_name \
- [list label "Name" \
- orderby_asc {student_name asc} \
- orderby_desc {student_name desc} \
- ]\
- ]
+ [list label "[_ evaluation.Name_]" \
+ orderby_asc {student_name asc} \
+ orderby_desc {student_name desc} \
+ ]\
+ ]
db_foreach grade_task { *SQL* } {
- lappend elements task_$task_id \
- [list label "$task_name ($weight %)" \
- orderby_asc {task_$task_id asc} \
- orderby_desc {task_$task_id desc} \
- ]
-
- append sql_query [db_map task_grade]
+ lappend elements task_$task_id \
+ [list label "$task_name (${weight}%)" \
+ orderby_asc {task_$task_id asc} \
+ orderby_desc {task_$task_id desc} \
+ ]
+
+ append sql_query [db_map task_grade]
}
lappend elements total_grade \
- [list label "Total" \
+ [list label "[_ evaluation.Total_]" \
orderby_asc {total_grade asc} \
orderby_desc {total_grade desc} \
]
Index: openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.xql 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/grades/grades-type-reports.xql 10 Jun 2004 21:08:54 -0000 1.2
@@ -1,5 +1,4 @@
- postgresql7.4
Index: openacs-4/packages/evaluation/www/admin/grades/grades.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/grades/grades.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/grades/grades.tcl 7 Jun 2004 16:05:12 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/grades/grades.tcl 10 Jun 2004 21:08:54 -0000 1.4
@@ -15,15 +15,15 @@
set context [list Grades]
set package_id [ad_conn package_id]
-set page_title "Admin Assignment Types"
+set page_title "[_ evaluation.lt_Admin_Assignment_Type]"
set return_url [ad_conn url]
-set actions [list "Add assignment type" [export_vars -base "grades-add-edit" { }]]
+set actions [list "[_ evaluation.Add_assignment_type_]" [export_vars -base "grades-add-edit" { }]]
if { [format %2.f [db_string sum_grades { *SQL* }]] > 100.00} {
- set aggregate_label "Total"
+ set aggregate_label "[_ evaluation.Total_]"
} else {
- set aggregate_label "Total"
+ set aggregate_label "[_ evaluation.Total_]"
}
template::list::create \
@@ -34,22 +34,22 @@
-pass_properties { return_url aggregate_label } \
-elements {
grade_plural_name {
- label "Name"
+ label "[_ evaluation.Name_]"
orderby_asc {grade_plural_name asc}
orderby_desc {grade_plural_name desc}
link_url_eval {[export_vars -base "distribution-edit" { grade_id }]}
link_html { title "View assignment type distribution" }
}
weight {
- label "Weight"
+ label "[_ evaluation.Weight_]"
orderby_asc {weight asc}
orderby_desc {weight desc}
display_template { @grades.weight@% }
aggregate sum
aggregate_label { @aggregate_label;noquote@ }
}
comments {
- label "Description"
+ label "[_ evaluation.Description_]"
orderby_asc {comments asc}
orderby_desc {comments desc}
}
@@ -60,7 +60,7 @@
}
link_url_eval {[export_vars -base "grades-add-edit" { item_id grade_id }]}
- link_html { title "Edit assignment type" }
+ link_html { title "[_ evaluation.lt_Edit_assignment_type_]" }
}
delete {
label {}
@@ -69,7 +69,7 @@
}
link_url_eval {[export_vars -base "grades-delete" { grade_id return_url }]}
- link_html { title "Delete assignment type" }
+ link_html { title "[_ evaluation.lt_Delete_assignment_typ]" }
}
}
@@ -79,14 +79,16 @@
set orderby " order by grade_plural_name asc"
}
-db_multirow grades get_class_grades { *SQL* }
+db_multirow grades get_class_grades { *SQL* } {
+ set weight [format %.2f [lc_numeric $weight]]
+}
db_1row get_total_weight { *SQL* }
set total_weight [format %.2f $total_weight]
if { ![string eq $total_weight "100.00"] && ![string eq $total_weight "0"] } {
- set notice "The sum of the weight of all the assignment types is $total_weight and it should be 100.00 by the end of the term(supposedly)."
+ set notice "[_ evaluation.lt_The_sum_of_the_weight]"
} else {
set notice ""
}
Index: openacs-4/packages/evaluation/www/admin/groups/group-delete-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-delete-2.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-delete-2.tcl 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-delete-2.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -12,14 +12,14 @@
operation
}
-if { [string eq $operation "Yes, I really want to remove this group"] } {
+if { [string eq $operation "[_ evaluation.lt_Yes_I_really_want_to__2]"] } {
db_transaction {
db_exec_plsql delete_group { *SQL* }
} on_error {
- ad_return_error "Error deleting the evaluation" "We got the following error while trying to remove the evaluation: $errmsg
"
+ ad_return_error "[_ evaluation.lt_Error_deleting_the_ev]" "[_ evaluation.lt_We_got_the_following_]"
ad_script_abort
}
}
Index: openacs-4/packages/evaluation/www/admin/groups/group-delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-delete.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-delete.adp 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-delete.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -2,12 +2,12 @@
@context;noquote@
@page_title@
-Are you sure you want to remove the group "@group_name@"? (If the group has an evaluation/answer associated, it will be deleted too)
+#evaluation.lt_Are_you_sure_you_want_1#
-
+
-
\ No newline at end of file
+
Index: openacs-4/packages/evaluation/www/admin/groups/group-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-delete.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-delete.tcl 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-delete.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -11,8 +11,8 @@
task_id:integer
}
-set page_title "Delete Evaluation"
-set context [list [list "[export_vars -base one-task { task_id }]" "Task Groups"] [list "[export_vars -base one-group { task_id evaluation_group_id }]" "One Group"] "Delete Group"]
+set page_title "[_ evaluation.Delete_Evaluation_]"
+set context [list [list "[export_vars -base one-task { task_id }]" "[_ evaluation.Task_Groups_]"] [list "[export_vars -base one-group { task_id evaluation_group_id }]" "[_ evaluation.One_Group_]"] "[_ evaluation.Delete_Group_]"]
db_1row get_group_info { *SQL* }
Index: openacs-4/packages/evaluation/www/admin/groups/group-member-add.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-member-add.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/groups/group-member-add.adp 31 May 2004 17:04:58 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/groups/group-member-add.adp 10 Jun 2004 21:08:54 -0000 1.3
@@ -3,11 +3,12 @@
@context;noquote@
-Please select the group
+#evaluation.lt_Please_select_the_gro#
+
Index: openacs-4/packages/evaluation/www/admin/groups/group-member-add.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-member-add.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/groups/group-member-add.tcl 31 May 2004 17:04:58 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/groups/group-member-add.tcl 10 Jun 2004 21:08:54 -0000 1.3
@@ -13,34 +13,34 @@
} -validate {
target_exists {
if { [string eq "select count(group_id) from evaluation_task_groups where task_id = :task_id" 0] } {
- ad_complain "There are no groups for this task yet."
+ ad_complain "[_ evaluation.lt_There_are_no_groups_f]"
}
}
}
-set page_title "Add a member to a group"
-set context [list [list "[export_vars -base one-task { task_id }]" "Task Groups"] "Add Member to group"]
+set page_title "[_ evaluation.lt_Add_a_member_to_a_gro]"
+set context [list [list "[export_vars -base one-task { task_id }]" "[_ evaluation.Task_Groups_]"] "[_ evaluation.Add_Member_to_group_]"]
set elements [list group_name \
- [list label "Group Name" \
+ [list label "[_ evaluation.Group_Name_]" \
orderby_asc {group_name asc} \
orderby_desc {group_name desc}] \
number_of_members \
- [list label "No. of members" \
+ [list label "[_ evaluation.No_of_members_]" \
orderby_asc {number_of_members asc} \
orderby_desc {number_of_members desc}] \
associate_to_group \
[list label "" \
link_url_col associate_to_group_url \
- link_html { title "Associate" }] \
+ link_html { title "[_ evaluation.Associate_]" }] \
]
template::list::create \
-name evaluation_groups \
-multirow evaluation_groups \
- -key evaluation_group_id \
- -filters { student_id {} task_id {} } \
+ -key evaluation_group_id \
+ -filters { student_id {} task_id {} } \
-elements $elements
set orderby [template::list::orderby_clause -orderby -name evaluation_groups]
@@ -51,7 +51,7 @@
db_multirow -extend { associate_to_group_url associate_to_group } evaluation_groups get_evaluation_groups { *SQL* } {
set associate_to_group_url [export_vars -base "group-member-add-2" -url { task_id student_id evaluation_group_id }]
- set associate_to_group "Associate to this group"
+ set associate_to_group "[_ evaluation.lt_Associate_to_this_gro]"
}
Index: openacs-4/packages/evaluation/www/admin/groups/group-member-add.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-member-add.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/evaluation/www/admin/groups/group-member-add.xql 22 May 2004 01:20:25 -0000 1.2
+++ openacs-4/packages/evaluation/www/admin/groups/group-member-add.xql 10 Jun 2004 21:08:54 -0000 1.3
@@ -5,7 +5,8 @@
- select g.group_name, g.group_id as evaluation_group_id,
+ select g.group_name,
+ g.group_id as evaluation_group_id,
count(map.object_id_two) as number_of_members
from groups g, acs_rels map, evaluation_task_groups etg
where map.object_id_one = g.group_id
Index: openacs-4/packages/evaluation/www/admin/groups/group-new-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-new-2.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-new-2.tcl 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-new-2.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -14,7 +14,7 @@
} -validate {
students_to_work_with {
if { [array size student_ids] == 0 } {
- ad_complain "There must be some students selected in order to crate the group."
+ ad_complain "[_ evaluation.lt_There_must_be_some_st]"
}
}
}
Index: openacs-4/packages/evaluation/www/admin/groups/group-new.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-new.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-new.adp 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-new.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -7,28 +7,11 @@
@export_vars;noquote@
+
Index: openacs-4/packages/evaluation/www/admin/groups/group-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-new.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-new.tcl 28 Apr 2004 11:06:42 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-new.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -13,13 +13,13 @@
} -validate {
students_to_work_with {
if { [array size student_ids] == 0 } {
- ad_complain "There must be some students selected in order to crate the group."
+ ad_complain "[_ evaluation.lt_There_must_be_some_st]"
}
}
}
-set page_title "New Group"
-set context [list [list "[export_vars -base one-task { task_id }]" "Task Groups"] "Create Group"]
+set page_title "[_ evaluation.New_Group_]"
+set context [list [list "[export_vars -base one-task { task_id }]" "[_ evaluation.Task_Groups_]"] "[_ evaluation.Create_Group_]"]
set current_groups_plus_one [db_string get_groups "select count(group_id)+1 from evaluation_task_groups where task_id = :task_id"]
set evaluation_group_id [db_nextval acs_object_id_seq]
Index: openacs-4/packages/evaluation/www/admin/groups/group-rename.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-rename.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-rename.adp 28 Apr 2004 11:09:54 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-rename.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -6,13 +6,14 @@
@export_vars;noquote@
+
Index: openacs-4/packages/evaluation/www/admin/groups/group-reuse-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-reuse-2.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-reuse-2.tcl 28 Apr 2004 11:09:54 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-reuse-2.tcl 10 Jun 2004 21:08:54 -0000 1.2
@@ -12,7 +12,7 @@
} -validate {
no_groups {
if { [db_string get_groups_for_task "select count(*) from evaluation_task_groups where task_id = :task_id"] > 0 } {
- ad_complain "There must be no groups for this task in order to copy the groups form another task. You can go back and delete the groups for this task."
+ ad_complain "[_ evaluation.lt_There_must_be_no_grou]"
}
}
}
@@ -34,18 +34,15 @@
}
} on_error {
- ad_complain "There was an error creating the groups"
+ ad_complain "[_ evaluation.lt_There_was_an_error_cr]"
ns_log Error "/evaluation/www/admin/groups/new-group-2.tcl choked: $errmsg"
- ad_return_error "Insert Failed" "This was the error:
-
- $errmsg
-
"
+ ad_return_error "[_ evaluation.Insert_Failed_]" "[_ evaluation.lt_This_was_the_error___]"
ad_script_abort
}
-ad_returnredirect one-task.tcl?[export_vars task_id]
+ad_returnredirect "one-task.tcl?[export_vars task_id]"
Index: openacs-4/packages/evaluation/www/admin/groups/group-reuse.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-reuse.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/evaluation/www/admin/groups/group-reuse.adp 28 Apr 2004 11:09:54 -0000 1.1
+++ openacs-4/packages/evaluation/www/admin/groups/group-reuse.adp 10 Jun 2004 21:08:54 -0000 1.2
@@ -2,6 +2,7 @@
@page_title;noquote@
@context;noquote@
-Click on the task that you want the groups to be copy from
+#evaluation.lt_Click_on_the_task_tha#
+
Index: openacs-4/packages/evaluation/www/admin/groups/group-reuse.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/group-reuse.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/evaluation/www/admin/groups/group-reuse.tcl 7 Jun 2004 16:05:14 -0000 1.4
+++ openacs-4/packages/evaluation/www/admin/groups/group-reuse.tcl 10 Jun 2004 21:08:54 -0000 1.5
@@ -11,23 +11,23 @@
{orderby:optional}
}
-set page_title "Reuse Groups"
-set context [list [list "[export_vars -base one-task { task_id }]" "Task Groups"] "Reuse Groups"]
+set page_title "[_ evaluation.Reuse_Groups_]"
+set context [list [list "[export_vars -base one-task { task_id }]" "[_ evaluation.Task_Groups_]"] "[_ evaluation.Reuse_Groups_]"]
set elements [list task_name \
- [list label "Group Name" \
- link_url_col task_url \
- orderby_asc {task_name asc} \
- orderby_desc {task_name desc}] \
- number_of_members \
- [list label "No. of Members" \
- orderby_asc {number_of_members asc} \
- orderby_desc {number_of_members desc}] \
- grade_plural_name \
- [list label "Assignment Type" \
- orderby_asc {grade_plural_name asc} \
- orderby_desc {grade_plural_name desc}] \
- ]
+ [list label "[_ evaluation.Group_Name_]" \
+ link_url_col task_url \
+ orderby_asc {task_name asc} \
+ orderby_desc {task_name desc}] \
+ number_of_members \
+ [list label "[_ evaluation.No_of_Members_]" \
+ orderby_asc {number_of_members asc} \
+ orderby_desc {number_of_members desc}] \
+ grade_plural_name \
+ [list label "[_ evaluation.Assignment_Type_]" \
+ orderby_asc {grade_plural_name asc} \
+ orderby_desc {grade_plural_name desc}] \
+ ]
template::list::create \
-name groups \
Index: openacs-4/packages/evaluation/www/admin/groups/one-group.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/groups/one-group.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/evaluation/www/admin/groups/one-group.adp 31 May 2004 17:04:58 -0000 1.3
+++ openacs-4/packages/evaluation/www/admin/groups/one-group.adp 10 Jun 2004 21:08:54 -0000 1.4
@@ -5,24 +5,24 @@
-- To chanche the name, edit the name in the text input and then click on the "Rename Group" botton.
-
- To delete the group, click on the "Delete Group" botton.
-
- To unassociate a member of the group, click on the "Unassociate member" link.
+
- #evaluation.lt_To_chanche_the_name_e#
+
- #evaluation.lt_To_delete_the_group_c#
+
- #evaluation.lt_To_unassociate_a_memb#