Index: openacs-4/packages/curriculum/catalog/curriculum.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/catalog/curriculum.en_US.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/curriculum/catalog/curriculum.en_US.ISO-8859-1.xml 5 Sep 2003 09:32:14 -0000 1.1 @@ -0,0 +1,128 @@ + + + + + Action Log + Actions + Add a curriculum + Add an element + Add Element + Any + Archive + Archived + Author + Comment + Commented + Complete description + Completed + Create + Create a new element + Create Curriculum + Created + Curriculum: + Curriculum + Curriculum info + Curriculum owner + Delete + Description + Detailed information + Disable + Disabled + Drop + Dropped + Edit + Edited + Editor + Enable + Enabled + External Element + Help + Information + A leading "http://" indicates that the URL is external. + %action_pretty_name% by %user_name%: + Activate this element + Add resolution code to log title + Add the dropped curriculum to the toolbar + Add the removed curriculum to the toolbar + Administer Curriculum + Administer this curriculum + Administer this element + Administer user privileges for this Curriculum instance + Are you sure you want to delete this curriculum? + Are you sure you want to delete this element? + Back to %ad_url%%return_url% + Back to where you were + Capture resolution code in the case activity log + Could not get child package_id + Create a new curriculum + Deactivate this element + Delete this curriculum and all of its data + Delete this element and all of its data + deleting curriculum %curriculum_id% in package_id %package_id% + %element_name%, part of %curriculum_name% + Here is what the database said: + I'm done now, update the bar for everyone + Installing curriculum filter for %url_pattern% in package_id %package_id% + Name may not be more than %length% characters long. + No published curriculums + Read the user manual for this page + Remove all curriculums + Remove the curriculum from the toolbar + Request notifications for activity on this curriculum + Reset all curriculums + Set site-wide preferences for this Curriculum instance + Stop displaying the curriculum toolbar + This could be because you have mounted more than one instance +of the Curriculum package in a subsite. Curriculum was designed to only +be mounted once per acs-subsite. Please visit the <a href=\"/admin/site-map/\">Site-Map</a> and unmount the extra instance. However, it could also be a bug in the code. + This field is for commenting actions on the curriculum. + This incident has been logged. + This text should describe the curriculum and its purpose. + This text should describe the element and its purpose. + Uncheck the visited elements in all curriculums + Uncheck the visited elements + Unsubscribe to notifications for activity on this curriculum + Update the toolbar for every user (use sparingly) + URL may not be more than %length% characters long. + %user_id% doesn't have permission to '%action%' on curriculum %curriculum_id% + Visit this element again + You don't have permission to '%action%' on this curriculum. + more + Move + Move down + Move up + Name + No curriculums + No elements + Ongoing + Options + Owner + Package parameters + Package permissions + Pending + Publish + Published + Publisher + Reject + Rejected + Remove + Remove this frame + Removed + Reset + Resume + Retake + Revisit + Search... + Security Violation + State + Status + Stop watching + this curriculum + Unvisited + URL + View + Visit + Visit this element + Visited + Watch + Index: openacs-4/packages/curriculum/catalog/curriculum.sv_SE.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/catalog/curriculum.sv_SE.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/curriculum/catalog/curriculum.sv_SE.ISO-8859-1.xml 5 Sep 2003 09:32:14 -0000 1.1 @@ -0,0 +1,126 @@ + + + + + �tg�rdslogg + �tg�rder + L�gg till en kursplan + L�gg till ett element + L�gg till element + Alla + Arkivera + Arkiverad + Upphovsman + Kommentera + Kommenterad + Fullst�ndig beskrivning + Avklarad + Skapa + Skapa ett nytt element + Skapa kursplan + Skapad + kursplan: + Kursplan + Kursplansinformation + Kursplanens �gare + Radera + Beskrivning + Detaljerad information + Avaktivera + Avaktiverad + Avbryt + Avbruten + Redigera + Redigerad + Redigerare + Aktivera + Aktiverat + Externt element + Hj�lp + Information + Ett inledande "http://" betyder att URL:en �r extern. + %action_pretty_name% av %user_name%: + Aktivera detta element + L�gg till uppl�sningskod till loggtiteln + L�gg till den avbrutna kursplanen till panelen + L�gg till den avbrutna kursplanen till panelen + Administrera kursplaner + Administrera denna kursplan + Administrera detta element + Administrera anv�ndarprivilegierna f�r denna Curriculum-instans + �r du s�ker p� att du vill radera denna kursplan? + �r du s�ker p� att du vill radera detta element? + Tillbaka till %ad_url%%return_url% + Tillbaka till d�r du var + L�gg in uppl�sningskod i case activity-loggen + Kunde inte hitta child package_id + L�gg upp en ny kursplan + Avaktivera detta element + Radera denna kursplan och dess samtliga element + Radera detta element och all dess data + raderar kursplan %curriculum_id% i package_id %package_id% + %element_name%, del av %curriculum_name% + Det h�r �r vad databasen meddelade: + Jag �r klar, uppdatera alla anv�ndares paneler + installerar filter f�r %url_pattern% i package_id %package_id% + Namnet f�r inte vara l�ngre �n %length% tecken l�ngt. + Inga publicerade kursplaner + L�s anv�ndarmanualen f�r denna sida + Ta bort samtliga kursplaner + Avl�gsna kursplanen fr�n panelen + Beg�r notifiering om �tg�rder p� denna kursplan + Aterst�ll samtliga kursplaner + St�ll in preferenserna f�r denna Curriculum-instans + Sluta visa kursplanspanelen + Detta kan bero p� att du har mountat fler �n en instans av Curriculum-paketet p� en subsite. Curriculum har konstruerats f�r att endast mountas en g�ng per acs-subsite. Var god bes�k <a href=\"/admin/site-map/\">Site-Map</a> och avmounta den extra instansen. Det kan dock �ven vara ett fel i programkoden. + Detta f�lt �r till f�r kommentarer p� �tg�rder p� kursplanen. + Denna incident har blivit loggad. + Denna text b�r beskriva kursplanen och dess syfte. + Denna text b�r beskriva elementet och dess syfte. + Avmarkera de bes�kta elementen i samtliga kursplaner + Avmarkera de bes�kta elementen + S�g upp fortsatta notifieringar om �tg�rder p� denna kursplan + Uppdatera kursplanspanelen f�r samtliga anv�ndare (anv�nd sparsamt) + URL:en f�r inte vara l�ngre �n %length% tecken l�ng. + %user_id% saknar r�ttighet att '%action%' curriculum %curriculum_id% + Bes�k detta element igen + Du har inte r�ttighet att '%action%' denna kursplan. + mer + Skifta + Flytta ned + Flytta upp + Namn + Inga kursplaner + Inga element + P�g�ende + Alternativ + �gare + Paketets parametrar + Paketets beh�righeter + Avvaktande + Publicera + Publicerad + Publicist + Rata + Ratad + Tag bort + Tag bort ramen + borttagen + �terst�ll + �teruppta + Tag om + �terbes�k + S�k... + S�kerhets�vertr�delse + Tillst�nd + Status + Sluta bevaka + denna kursplan + Obes�kt + URL + Visa + Bes�k + Bes�k detta element + Bes�kt + Bevaka + Index: openacs-4/packages/curriculum/lib/admin-curriculums-tab.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/admin-curriculums-tab.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/curriculum/lib/admin-curriculums-tab.tcl 8 Jul 2003 09:46:37 -0000 1.2 +++ openacs-4/packages/curriculum/lib/admin-curriculums-tab.tcl 5 Sep 2003 09:32:14 -0000 1.3 @@ -29,9 +29,9 @@ foreach state_id $state_data(state_ids) { array set state $state_data($state_id) - template::tabstrip add_tab states $state(state_id) $state(pretty_name) $state(short_name) + template::tabstrip add_tab states $state(state_id) [lang::util::localize $state(pretty_name)] $state(short_name) } - template::tabstrip add_tab states any "Any" any + template::tabstrip add_tab states any "[_ curriculum.Any]" any } Index: openacs-4/packages/curriculum/lib/admin-curriculums.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/admin-curriculums.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/curriculum/lib/admin-curriculums.adp 8 Jul 2003 09:46:37 -0000 1.11 +++ openacs-4/packages/curriculum/lib/admin-curriculums.adp 5 Sep 2003 09:32:14 -0000 1.12 @@ -1,23 +1,23 @@

[ - Package parameters + #curriculum.Package_parameters# | - Package permissions + #curriculum.Package_permissions# | - Help + #curriculum.Help# ]

- I'm done now, update the bar for everyone + #curriculum.lt_Im_done_now_update_th#

- - - - - + + + + +
NameDescriptionStateActionsMove#curriculum.Name##curriculum.Description##curriculum.State##curriculum.Actions##curriculum.Move#

@@ -32,13 +32,13 @@ @@ -135,12 +135,13 @@
  • - No curriculums + #curriculum.No_curriculums#

  • - Add a curriculum + #curriculum.Add_a_curriculum#

  • - @curriculums.curriculum_name;noquote@ + @curriculums.curriculum_name;noquote@ @curriculums.curriculum_desc;noquote@ ... - [more] + [#curriculum.more#] @@ -47,15 +47,15 @@ @notification_label@ | - Delete + #curriculum.Delete# - + - + @@ -72,38 +72,38 @@   » - @curriculums.element_name;noquote@ + @curriculums.element_name;noquote@ @curriculums.element_desc;noquote@ ... - [more] + [#curriculum.more#] - Enabled + #curriculum.Enabled# - Disable + #curriculum.Disable# - Disabled + #curriculum.Disabled# - Enable + #curriculum.Enable# | - Delete + #curriculum.Delete# - + - + @@ -115,15 +115,15 @@
  • - No elements + #curriculum.No_elements#
  • - Add an element + #curriculum.Add_an_element#
  • + Index: openacs-4/packages/curriculum/lib/admin-curriculums.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/admin-curriculums.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/curriculum/lib/admin-curriculums.tcl 2 Jul 2003 12:38:32 -0000 1.5 +++ openacs-4/packages/curriculum/lib/admin-curriculums.tcl 5 Sep 2003 09:32:14 -0000 1.6 @@ -50,6 +50,8 @@ set curriculum_id_export [export_vars -url curriculum_id] set element_id_export [export_vars -url element_id] + # Translate the pretty_state in #package_key.message_key# syntax. + set pretty_state [lang::util::localize $pretty_state] } set curriculum_count [curriculum::conn -nocache curriculum_count] Index: openacs-4/packages/curriculum/lib/bar-horizontal.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/bar-horizontal.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/curriculum/lib/bar-horizontal.adp 8 Jul 2003 09:46:37 -0000 1.5 +++ openacs-4/packages/curriculum/lib/bar-horizontal.adp 5 Sep 2003 09:32:14 -0000 1.6 @@ -5,14 +5,14 @@ - X + X - O + O @elements.curriculum_name;noquote@ - i + i @@ -22,19 +22,19 @@ - X + X - O + O - @elements.name;noquote@ + @elements.name;noquote@ - @elements.name;noquote@ + @elements.name;noquote@ - i + i @@ -43,10 +43,10 @@ - Reset + #curriculum.Reset# - X + X @@ -55,3 +55,4 @@
    + Index: openacs-4/packages/curriculum/lib/bar-vertical.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/bar-vertical.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/curriculum/lib/bar-vertical.adp 8 Jul 2003 09:46:37 -0000 1.5 +++ openacs-4/packages/curriculum/lib/bar-vertical.adp 5 Sep 2003 09:32:14 -0000 1.6 @@ -4,14 +4,14 @@ - X + X - O + O @elements.curriculum_name;noquote@ - i + i @@ -22,19 +22,19 @@ - X + X - O + O - @elements.name;noquote@ + @elements.name;noquote@ - @elements.name;noquote@ + @elements.name;noquote@ - i + i @@ -45,10 +45,10 @@ - Reset + #curriculum.Reset# - X + X @@ -57,3 +57,4 @@
    + Index: openacs-4/packages/curriculum/lib/curriculum-ave.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/curriculum-ave.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/curriculum/lib/curriculum-ave.adp 2 Jul 2003 16:22:27 -0000 1.2 +++ openacs-4/packages/curriculum/lib/curriculum-ave.adp 5 Sep 2003 09:32:14 -0000 1.3 @@ -15,3 +15,4 @@ + Index: openacs-4/packages/curriculum/lib/curriculum-ave.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/curriculum-ave.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/curriculum/lib/curriculum-ave.tcl 8 Jul 2003 10:41:09 -0000 1.7 +++ openacs-4/packages/curriculum/lib/curriculum-ave.tcl 5 Sep 2003 09:32:14 -0000 1.8 @@ -18,7 +18,7 @@ set user_id [ad_conn user_id] set actions [list] set element_mode {} -set desc_help_text "This text should describe the curriculum and its purpose." +set desc_help_text "[_ curriculum.lt_This_text_should_desc]" if { [set new_p [ad_form_new_p -key curriculum_id]] } { @@ -30,7 +30,7 @@ set write_p 1 set form_mode edit - set title "Create Curriculum" + set title "[_ curriculum.Create_Curriculum]" } else { @@ -86,20 +86,22 @@ set element_mode display - set action_pretty_name [workflow::action::get_element -action_id $action_id -element pretty_name] + set action_pretty_name [lang::util::localize [workflow::action::get_element \ + -action_id $action_id \ + -element pretty_name]] } else { set action_pretty_name {} } set curriculum_name [acs_object_name $curriculum_id] - set title "[ad_decode $action_pretty_name "" "View" $action_pretty_name] Curriculum: $curriculum_name" + set title "[ad_decode $action_pretty_name "" "[_ curriculum.View]" $action_pretty_name] [_ curriculum.Curriculum] $curriculum_name" } else { # Display mode only! (User doesn't have write perms) set wf_action_exists_p 0 set curriculum_name [acs_object_name $curriculum_id] - set title "Curriculum: $curriculum_name" + set title "[_ curriculum.Curriculum] $curriculum_name" } @@ -112,7 +114,7 @@ # Curriculum "owner" select box. set users_list [list] lappend users_list [list [person::name -person_id $user_id] "$user_id"] -lappend users_list [list "Search..." ":search:"] +lappend users_list [list "[_ curriculum.Search]" ":search:"] #### @@ -134,15 +136,15 @@ curriculum_id:key {name:text {mode $element_mode} - {label Name} + {label "[_ curriculum.Name]"} {html {size 50}} } } ad_form -extend -name curriculum -form { {description:richtext {mode $element_mode} - {label Description} + {label "[_ curriculum.Description]"} {help_text $desc_help_text} {html {rows 10 cols 50 wrap soft}} optional @@ -153,8 +155,8 @@ ad_form -extend -name curriculum -form { {comment:richtext {mode $element_mode} - {label "Action Log"} - {help_text "This field is for commenting actions on the curriculum."} + {label "[_ curriculum.Action_Log]"} + {help_text "[_ curriculum.lt_This_field_is_for_com]"} {html {rows 5 cols 50 wrap soft}} optional } @@ -165,7 +167,7 @@ if { !$new_p && $write_p } { ad_form -extend -name curriculum -form { {pretty_state:text(inform) - {label Status} + {label "[_ curriculum.Status]"} {before_html } {after_html } } @@ -180,8 +182,9 @@ # Set values for comment field. # Is before_html the right placement of this? Perhaps we should link # to a different page where we show the case log? + set user_name [person::name -person_id $user_id] element set_properties curriculum comment \ - -before_html "[workflow::case::get_activity_html -case_id $case_id][ad_decode $action_id "" "" "

    $action_pretty_name by user_first_names user_last_name

    "]" + -before_html "[workflow::case::get_activity_html -case_id $case_id][ad_decode $action_id "" "" "

    [_ curriculum.lt_action_pretty_name_by]

    "]" # Single-curriculum notifications link. set notification_link [curriculum::get_watch_link -curriculum_id $curriculum_id] @@ -198,7 +201,7 @@ {owner_id:search {mode $element_mode} {result_datatype integer} - {label Owner} + {label "[_ curriculum.Owner]"} {options $users_list} {search_query {[db_map user_search]}} optional @@ -236,7 +239,7 @@ {name {[string length $name] <= [set length 200]} - "Name may not be more than $length characters long." + "[_ curriculum.lt_Name_may_not_be_more_]" } } -new_data { Index: openacs-4/packages/curriculum/lib/element-ave.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/element-ave.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/curriculum/lib/element-ave.adp 2 Jul 2003 16:22:27 -0000 1.2 +++ openacs-4/packages/curriculum/lib/element-ave.adp 5 Sep 2003 09:32:15 -0000 1.3 @@ -3,3 +3,4 @@ @context;noquote@ + Index: openacs-4/packages/curriculum/lib/element-ave.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/element-ave.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/curriculum/lib/element-ave.tcl 8 Jul 2003 10:48:14 -0000 1.4 +++ openacs-4/packages/curriculum/lib/element-ave.tcl 5 Sep 2003 09:32:15 -0000 1.5 @@ -29,7 +29,7 @@ set write_p 1 set form_mode edit - set title "Add Element" + set title "[_ curriculum.Add_Element]" } else { @@ -46,7 +46,7 @@ set form_mode display set curriculum_name [acs_object_name $curriculum_id] set element_name [acs_object_name $element_id] - set title "$element_name, part of $curriculum_name" + set title "[_ curriculum.lt_element_name_part_of_]" } set context {$title} @@ -59,18 +59,18 @@ -form { element_id:key {name:text - {label Name} + {label "[_ curriculum.Name]"} {html {size 50}} } {description:richtext - {label Description} - {help_text "This text should describe the element and its purpose."} + {label "[_ curriculum.Description]"} + {help_text "[_ curriculum.lt_This_text_should_desc_1]"} {html {rows 10 cols 50 wrap soft}} optional } {url:text(text) - {label URL} - {help_text "A leading \"http://\" indicates that the URL is external."} + {label "[_ curriculum.URL]"} + {help_text "[_ curriculum.lt_A_leading_http_indica]"} {html {size 50}} {value $subsite_url} } @@ -88,11 +88,11 @@ {name {[string length $name] <= [set length 200]} - "Name may not be more than $length characters long." + "[_ curriculum.lt_Name_may_not_be_more_]" } {url {[string length $url] <= [set length 400]} - "URL may not be more than $length characters long." + "[_ curriculum.lt_URL_may_not_be_more_t]" } } -new_data { Index: openacs-4/packages/curriculum/lib/user-curriculums.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/lib/user-curriculums.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/curriculum/lib/user-curriculums.adp 8 Jul 2003 09:46:37 -0000 1.11 +++ openacs-4/packages/curriculum/lib/user-curriculums.adp 5 Sep 2003 09:32:15 -0000 1.12 @@ -1,65 +1,65 @@

    [ - Reset all curriculums + #curriculum.lt_Reset_all_curriculums# | - Remove all curriculums + #curriculum.lt_Remove_all_curriculum# | - Help + #curriculum.Help# ]

    - - - - + + + +
    NameDescriptionStatusOptions#curriculum.Name##curriculum.Description##curriculum.Status##curriculum.Options#

    @@ -73,40 +73,40 @@
  • - No elements + #curriculum.No_elements#
  • - @elements.curriculum_name;noquote@ + @elements.curriculum_name;noquote@ @elements.curriculum_desc;noquote@ ... - [more] + [#curriculum.more#] - RemovedDropped + #curriculum.Removed##curriculum.Dropped# - Retake + #curriculum.Retake# - Resume + #curriculum.Resume# - CompletedOngoing + #curriculum.Completed##curriculum.Ongoing# - Reset + #curriculum.Reset# | - - RemoveDrop + + #curriculum.Remove##curriculum.Drop# - CompletedOngoing + #curriculum.Completed##curriculum.Ongoing# - Reset + #curriculum.Reset#
      » - @elements.element_name;noquote@ + @elements.element_name;noquote@ @elements.element_desc;noquote@ ... - [more] + [#curriculum.more#] - Visited + #curriculum.Visited# - + - Revisit + #curriculum.Revisit# - Unvisited + #curriculum.Unvisited# - + - Visit + #curriculum.Visit#
    @@ -118,6 +118,7 @@
  • - No published curriculums + #curriculum.lt_No_published_curricul#
  • + Index: openacs-4/packages/curriculum/tcl/curriculum-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/tcl/curriculum-init.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/curriculum/tcl/curriculum-init.tcl 3 Jun 2003 10:28:20 -0000 1.1 +++ openacs-4/packages/curriculum/tcl/curriculum-init.tcl 5 Sep 2003 09:32:15 -0000 1.2 @@ -23,7 +23,7 @@ -default *] foreach url_pattern [split [string trim $url_patterns]] { - ns_log Notice "Installing curriculum filter for $url_pattern in package_id $package_id" + ns_log Notice "[_ curriculum.lt_Installing_curriculum]" ad_register_filter postauth GET $url_pattern curriculum::curriculum_filter } Index: openacs-4/packages/curriculum/tcl/curriculum-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/tcl/curriculum-procs.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/curriculum/tcl/curriculum-procs.tcl 8 Jul 2003 09:46:37 -0000 1.9 +++ openacs-4/packages/curriculum/tcl/curriculum-procs.tcl 5 Sep 2003 09:32:15 -0000 1.10 @@ -195,7 +195,9 @@ # Get state information. workflow::case::fsm::get -case_id $case_id -array case -action_id $action_id - set row(pretty_state) $case(pretty_state) + # I am localizing pretty_state at this level, for now. It might be better to do it at + # the "workflow::case::fsm::get" level though, in order to reduce tedious repetition ... + set row(pretty_state) [lang::util::localize $case(pretty_state)] set row(state_short_name) $case(state_short_name) set row(hide_fields) $case(state_hide_fields) set row(entry_id) $case(entry_id) @@ -224,10 +226,7 @@ -object_id $curriculum_id \ -workflow_short_name [workflow_short_name]] - # FIXME. There should be a Tcl wrapper for this in workflow but there - # isn't yet (at least not on MAIN). - #workflow::case::delete -case_id $case_id - db_exec_plsql delete_workflow_case {*SQL*} + workflow::case::delete -case_id $case_id db_exec_plsql delete_curriculum {*SQL*} @@ -255,7 +254,7 @@ db_transaction { foreach curriculum_id $curriculum_ids { - ns_log Notice "curriculum::delete_instance - deleting curriculum $curriculum_id in package_id $package_id" + ns_log Notice "curriculum::delete_instance - [_ curriculum.lt_deleting_curriculum_c]" delete -curriculum_id $curriculum_id } @@ -274,29 +273,29 @@ } { set spec { curriculum { - pretty_name "Curriculum" - package_key "curriculum" - object_type "cu_curriculum" + pretty_name \#curriculum.Curriculum_1\# + package_key curriculum + object_type cu_curriculum callbacks { curriculum.CurriculumNotificationInfo } roles { author { - pretty_name "Author" + pretty_name \#curriculum.Author\# callbacks { workflow.Role_DefaultAssignees_CreationUser } } editor { - pretty_name "Editor" + pretty_name \#curriculum.Editor\# callbacks { workflow.Role_PickList_CurrentAssignees curriculum.CurriculumOwner workflow.Role_AssigneeSubquery_RegisteredUsers } } publisher { - pretty_name "Publisher" + pretty_name \#curriculum.Publisher\# callbacks { workflow.Role_PickList_CurrentAssignees curriculum.CurriculumOwner @@ -306,81 +305,81 @@ } states { authored { - pretty_name "Pending" + pretty_name \#curriculum.Pending\# hide_fields {} } edited { - pretty_name "Edited" + pretty_name \#curriculum.Edited\# } rejected { - pretty_name "Rejected" + pretty_name \#curriculum.Rejected\# } published { - pretty_name "Published" + pretty_name \#curriculum.Published\# } archived { - pretty_name "Archived" + pretty_name \#curriculum.Archived\# } } actions { create { - pretty_name "Create" - pretty_past_tense "Created" - new_state "authored" + pretty_name \#curriculum.Create\# + pretty_past_tense \#curriculum.Created\# + new_state authored initial_action_p t } comment { - pretty_name "Comment" - pretty_past_tense "Commented" + pretty_name \#curriculum.Comment\# + pretty_past_tense \#curriculum.Commented\# allowed_roles { author editor publisher } privileges { write } always_enabled_p t edit_fields { - comment - } + comment + } } edit { - pretty_name "Edit" - pretty_past_tense "Edited" - new_state "edited" + pretty_name \#curriculum.Edit\# + pretty_past_tense \#curriculum.Edited\# + new_state edited allowed_roles { author editor publisher } privileges { write } always_enabled_p t edit_fields { - name - description - comment - } + name + description + comment + } } reject { - pretty_name "Reject" - pretty_past_tense "Rejected" - new_state "rejected" + pretty_name \#curriculum.Reject\# + pretty_past_tense \#curriculum.Rejected\# + new_state rejected allowed_roles { publisher } enabled_states { authored edited } privileges { write } edit_fields { - comment - } + comment + } } publish { - pretty_name "Publish" - pretty_past_tense "Published" - assigned_role "publisher" + pretty_name \#curriculum.Publish\# + pretty_past_tense \#curriculum.Published\# + assigned_role publisher enabled_states { authored edited archived } assigned_states { edited } - new_state "published" + new_state published privileges { write } edit_fields { - comment - } + comment + } } archive { - pretty_name "Archive" - pretty_past_tense "Archived" + pretty_name \#curriculum.Archive\# + pretty_past_tense \#curriculum.Archived\# allowed_roles { publisher } enabled_states { published } - new_state "archived" + new_state archived privileges { write } edit_fields { comment @@ -475,7 +474,7 @@ ad_proc -private curriculum::owner::pretty_name {} { - return "Curriculum owner" + return "[_ curriculum.Curriculum_owner]" } @@ -497,7 +496,7 @@ # FIXME ad_proc -private curriculum::capture_resolution_code::pretty_name {} { - return "Capture resolution code in the case activity log" + return "[_ curriculum.lt_Capture_resolution_co]" } @@ -519,7 +518,7 @@ ad_proc -private curriculum::format_log_title::pretty_name {} { - return "Add resolution code to log title" + return "[_ curriculum.lt_Add_resolution_code_t]" } @@ -577,7 +576,7 @@ ad_proc -private curriculum::notification_info::pretty_name {} { - return "Curriculum info" + return "[_ curriculum.Curriculum_info]" } @@ -590,16 +589,16 @@ set url "[ad_url][apm_package_url_from_id $curriculum(package_id)]curriculum-ave?[export_vars { { curriculum_id $curriculum(curriculum_id) } }]" - set notification_subject_tag "Curriculum" + set notification_subject_tag "[_ curriculum.Curriculum_1]" set one_line "$curriculum(name)" # Build up data structures with the form labels and values # (Note, this is something that the metadata system should be able to do for us) array set label { - name "Name" - status "Status" + name "[_ curriculum.Name]" + status "[_ curriculum.Status]" } array set value [list \ @@ -656,13 +655,13 @@ -object_id $curriculum_id \ -url $return_url \ -user_id $user_id \ - -pretty_name "this curriculum"] - set label "Watch" - set title "Request notifications for activity on this curriculum" + -pretty_name "[_ curriculum.this_curriculum]"] + set label "[_ curriculum.Watch]" + set title "[_ curriculum.lt_Request_notifications]" } else { set url [notification::display::unsubscribe_url -request_id $request_id -url $return_url] - set label "Stop watching" - set title "Unsubscribe to notifications for activity on this curriculum" + set label "[_ curriculum.Stop_watching]" + set title "[_ curriculum.lt_Unsubscribe_to_notifi]" } return [list $url $label $title] } @@ -673,13 +672,13 @@ -curriculum_id:required -action:required } { - ns_log Notice "$user_id doesn't have permission to '$action' on curriculum $curriculum_id" + ns_log Notice "[_ curriculum.lt_user_id_doesnt_have_p]" ad_return_forbidden \ - "Security Violation" \ + "[_ curriculum.Security_Violation]" \ "
    - You don't have permission to '$action' on this curriculum. + [_ curriculum.lt_You_dont_have_permiss]
    - This incident has been logged. + [_ curriculum.lt_This_incident_has_bee]
    " ad_script_abort } Index: openacs-4/packages/curriculum/tcl/misc-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/tcl/misc-procs.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/curriculum/tcl/misc-procs.tcl 4 Jul 2003 11:22:16 -0000 1.9 +++ openacs-4/packages/curriculum/tcl/misc-procs.tcl 5 Sep 2003 09:32:15 -0000 1.10 @@ -200,12 +200,10 @@ -package_id $subsite_id -package_key [package_key]] } errmsg] } { - ad_return_error "Could not get child package_id" \ - "This could be because you have mounted more than one instance -of the Curriculum package in a subsite. Curriculum was designed to only -be mounted once per acs-subsite. Please visit the Site-Map and unmount the extra instance. However, it could also be a bug in the code. + ad_return_error "[_ curriculum.lt_Could_not_get_child_p]" \ + "[_ curriculum.lt_This_could_be_because]

    -Here is what the database said: +[_ curriculum.lt_Here_is_what_the_data]

    $errmsg" ad_script_abort Index: openacs-4/packages/curriculum/www/ext.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/ext.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/curriculum/www/ext.adp 10 Jun 2003 15:38:25 -0000 1.3 +++ openacs-4/packages/curriculum/www/ext.adp 5 Sep 2003 09:32:15 -0000 1.4 @@ -1,7 +1,7 @@ - External Element + #curriculum.External_Element# @@ -32,3 +32,4 @@ + Index: openacs-4/packages/curriculum/www/horizontal.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/horizontal.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/curriculum/www/horizontal.adp 10 Jun 2003 15:38:25 -0000 1.2 +++ openacs-4/packages/curriculum/www/horizontal.adp 5 Sep 2003 09:32:15 -0000 1.3 @@ -1,10 +1,11 @@ - + X - Remove this frame + #curriculum.Remove_this_frame#
    - + << - Back to where you were + #curriculum.lt_Back_to_where_you_wer# + Index: openacs-4/packages/curriculum/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/index.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/curriculum/www/index.adp 3 Jun 2003 10:40:53 -0000 1.1 +++ openacs-4/packages/curriculum/www/index.adp 5 Sep 2003 09:32:15 -0000 1.2 @@ -1,11 +1,12 @@ -@title@ -@context@ +@title;noquote@ +@context;noquote@

    - Administer Curriculum + #curriculum.lt_Administer_Curriculum#

    + Index: openacs-4/packages/curriculum/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/index.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/curriculum/www/index.tcl 3 Jun 2003 10:40:53 -0000 1.1 +++ openacs-4/packages/curriculum/www/index.tcl 5 Sep 2003 09:32:15 -0000 1.2 @@ -13,7 +13,7 @@ admin_p:onevalue } -set title "Curriculum" +set title {} set context {} # We let admins see the link to the admin page. Index: openacs-4/packages/curriculum/www/vertical.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/vertical.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/curriculum/www/vertical.adp 13 Jun 2003 15:29:15 -0000 1.3 +++ openacs-4/packages/curriculum/www/vertical.adp 5 Sep 2003 09:32:15 -0000 1.4 @@ -1,10 +1,11 @@ - + X - Remove this frame + #curriculum.Remove_this_frame#
    - + << - Back to where you were + #curriculum.lt_Back_to_where_you_wer# + Index: openacs-4/packages/curriculum/www/admin/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/admin/index.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/curriculum/www/admin/index.adp 13 Jun 2003 11:44:34 -0000 1.3 +++ openacs-4/packages/curriculum/www/admin/index.adp 5 Sep 2003 09:32:15 -0000 1.4 @@ -1,5 +1,5 @@ -@title@ +@title;noquote@ @context@ Index: openacs-4/packages/curriculum/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/curriculum/www/admin/index.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/curriculum/www/admin/index.tcl 13 Jun 2003 11:44:34 -0000 1.2 +++ openacs-4/packages/curriculum/www/admin/index.tcl 5 Sep 2003 09:32:15 -0000 1.3 @@ -12,7 +12,7 @@ context:onevalue } -set title "Curriculum" +set title {} set context {} ad_return_template