Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/contacts/catalog/contacts.de_DE.ISO-8859-1.xml'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml,v diff -u -r1.8 -r1.9 --- openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml 4 Jun 2005 12:36:44 -0000 1.8 +++ openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml 7 Jun 2005 07:45:39 -0000 1.9 @@ -4,109 +4,342 @@ -- select a group -- --select one-- Action + Actions + Add: + Add a Group Add a Person Add an Organization + Add Comment + Add Condition Add Group Add Organization Add Person + Add Search Add Signature Add the selected contacts to a category Add to Category + Add to Group + Add to group + Add to Group(s) + Add User + Address Admin Administer Contacts Advanced Search Advanced Searches All + All / Edit Answer Archive Archive the checked contacts Archived + area code is -> + area code is not -> at Attribute + Attribute -> Attributes + Cancel + Clear Clear the currently selected Category Clear the currently selected Search + Comment Added Comments + Configuration Error Contact + Contact -> + contact is in -> + contact is not in -> Contact Relationship Contact Type Contact Type One Contact Type Two Contacts + contacts + contains -> + country code is -> + country is -> + country is not -> + Create Create a role + Create a Signature Create project Create role + CSV Current + Date + days + Delete + Details + does not contain -> + Done + Edit + Edit a Signature + Edit Details + Edit ${group_name} Email Address + Error even + False + File + Files + files + First Name First Names + Go + Group -> + Group Name Groups + groups + has logged in + has never logged in Help Text + Invalid Object Type + is -> + is after -> + is before -> + is greater than -> + is less than -> + is more than -> + is not -> + is not set + is set last Last Name Limit Contacts to + -- Groups -------------------------- + -- My Searches --------------------- + -- no not include a signature -- + -- top level group -- Add relationship type + Add to Selected Group(s) Advanced searches are very powerful but in return they require very specific input... All searches are case insensitive, capitalization does not matter. If more than one contact match the search a list of results is returned. If only one contact meets the search criteria you are redirected to that contact. + <br><br>save this search as + commented on in last -> %comments.pretty_date% at %comments.pretty_time% - + Contact Administration Contact Relationships + Contacts" +set context {} + +if { [exists_and_not_null query_id] } { + if { [contact::search::exists_p -search_id $query_id] } { + set search_id $query_id + set query_type "search" + } else { + set group_id $query_id + set query_type "group" + } +} else { +# set group_id [application_group::group_id_from_package_id -package_id [ad_conn subsite_id]] + set group_id [contacts::default_group] + set query_id $group_id + set query_type "group" + if { ![exists_and_not_null group_id] } { + ad_return_error "<#_ Not Configured" "<#_ Your administrator must map and add a default group in the <a href=\"admin\">admin pages</a>" + } +} + + +if { $orderby == "first_names,asc" } { + set name_order 0 + set name_label "<#_ Sort by: First Names + country code is not -> + created in the last -> Currently, the system is able to handle the following types of relationships: Debugging Code - Only SW Admins See This Define a new relationship type + Delete the selected Contacts + Delete the selectted files + E-mail or Mail the selected contacts + Edit"></a> + } + } + group_name { + label {<#_ Group Entering a string in the normal search box means that a search will be performed where: Existing Relationships "First Names" contains "Search_Word" or + First Names is required + Group '${group_name}' Created + Group '${group_name}' Updated + Group Information Saved. + has logged in within -> + has not logged in within -> If in a normal search we search for "D Jane". The first Search_Word ("D") matches contacts 123 (via "Doe"), 234 (via "Doe"), and 345 (via "Alfred"). And the second Search_Word ("Jane") matches only contact 123. Thus only one contact meets both requirements and "Jane Doe" (contact 123) is returned. If multiple words are used then all words must match the above critera. So, for example if our contacts database contains these entries: Instance Permissions - Not done yet + Insufficient Permissions + Invalid input, you specified form as '$form' but should only specify: top, bottom, none + labels are not implemented yet "Last Name" contains "Search_Word" or + Last Name is required Last updated: %update_date% + <li> The role you entered \"$pretty_name\" or the plural \"$pretty_plural\" already exists. Make sure you do not add the same attribute to multiple groups + &nbsp;&nbsp; Show: " +set first_p 1 +foreach page_s [list 25 50 100 500] { + if { [string is false $first_p] } { + append name_label " | " + } + if { $page_size == $page_s } { + append name_label $page_s + } else { + append name_label "<a href=\"[export_vars -base . -url {rel_type format query_id query page orderby {page_size $page_s}}]\">$page_s</a>" + } + set first_p 0 +} +append name_label "&nbsp;&nbsp;&nbsp;<#_ Get + neither person nor org type is valid, what happened admin? + not commented on in last -> + not created in the last -> + not updated in the last -> + of the following conditions:<br> Once ready for release this will be taken care of in code "Organization Name" contains "Search_Word" or Organization Relationship Organization Relationships "Party ID" equals "Search_Word" + People or Organizations Person or Organization + $pretty_plural_list_name found in search, please try again or add a new contact + remember that you can use <a href="message-help">mail merge substitutions</a>. the most common wildcards are \{name\} \{first_names\}, \{last_name\}, \{home_address\} and \{date\} + Remove from Selected Group(s) + Remove from this Group + Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included in the default group's form for this object type:<ul><li>[join $missing_elements + Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included:<ul><li>[join $missing_elements + state/province is not -> + the action supplied is not valid The contact specified does not exist + The contact specified is not one of the contacts in this relationship The default group must have first_names and last_name for person objects and name for organization objects, both of them need email + The file [lindex $message 0] was successfully uploaded + The files [join $message ", "] were successfully uploaded + The first contact specified does not exist + The first role specified does not exist + The parameter RecentOnTopP is not set correctly for the General Comments package, please enter either a '0' or a '1' + The party_id specified does not exist + The second contact specified does not exist + The second role specified does not exist + There was a problem with your input. this type of relationship cannot exist. + This action cannot be taken for unmapped groups This contact is not part of any groups - this is a problem. + This group is already the default + This group is already mapped + this is my default signature + This signature specified either does not exist or does not belong to you + This user is awaiting administrator approval + This users has not been approved + updated in the last -> What role does %contact_name_one% have when %contact_name_two% is a %secondary_role_pretty%: You cannot add this contact to more groups. + You cannot make sub groups the default group + You cannot map groups whose parent groups are not mapped + You cannot unmap the default group + You do not have permission to add users to groups + You have not specified a valid contact type + You have specified an invalid Object Type + You have specified an invalid size for the textarea + Your administrator must map and add a default group in the <a href=\"admin\">admin pages</a> + Your need to provide some contacts to send a message + Your provided an invalid Message Type + zip/postal does not start with -> + zip/postal starts with -> + Mail + Mail Merge Mail Merge Results Make Current Make the checked contacts current + Message + Message is required + Messages mine- My Searches My Signatures Name + Name is required + Next (none) Normal Searches + Not Configured Number of Rows odd of Ordering Organization + Organization Form Organizations + organizations + Output + Paper Type + Parent Group Party Revision Party Revisions + People + people + Permissions Person + Person Form + Preview PROJECT Public Page READ THESE + Recipients + Relationship Added + Relationship Deleted Relationship types + Relationship Updated Relationships + relationships + Remove From Group + Remove From to Group Required + Results: + Return to \"$title\" + Role + Role Name Role One + Role Plural + Role Singular Role Two Roles + Save + Save and Add Another + Save As + Save Message As Search + Search Help + searches + Select Send an email message to the selected contacts Send Email Settings + Show: Showing + Signature + signatures Sort By + Sort by: + state/province is -> Status + Subject + Subject is required + Summary View + Table + Tasks + The error was: $errmsg + True + Type + Update + Update filenames + Updated By + Updated On + Upload More View all roles + View next + which match Widget + your signatures Index: openacs-4/packages/contacts/lib/comments.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/comments.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/contacts/lib/comments.tcl 31 May 2005 17:08:41 -0000 1.4 +++ openacs-4/packages/contacts/lib/comments.tcl 7 Jun 2005 07:45:39 -0000 1.5 @@ -3,15 +3,15 @@ # @cvs-id $Id$ if { [string is false [contact::exists_p -party_id $party_id]] } { - error "The party_id specified does not exist" + error "[_ contacts.lt_The_party_id_specifie]" } if { [string is false [exists_and_not_null recent_on_top_p]] } { set recent_on_top_p [parameter::get_from_package_key -boolean -package_key "general-comments" -parameter "RecentOnTopP"] } if { [string is false [exists_and_not_null recent_on_top_p]] } { - error "The parameter RecentOnTopP is not set correctly for the General Comments package, please enter either a '0' or a '1'" + error "[_ contacts.lt_The_parameter_RecentO]" } else { if { $recent_on_top_p } { set orderby_clause "creation_date desc" @@ -29,7 +29,7 @@ small { set textarea_size "cols 35 rows 3" } - default { error "You have specified an invalid size for the textarea" } + default { error "[_ contacts.lt_You_have_specified_an_1]" } } if { [string is false [exists_and_not_null form]] } { @@ -40,7 +40,7 @@ } } if { [lsearch [list top bottom none] $form] < 0 } { - error "Invalid input, you specified form as '$form' but should only specify: top, bottom, none" + error "[_ contacts.lt_Invalid_input_you_spe]" } @@ -102,20 +102,14 @@ } ad_form -name comment_add \ - -action "[ad_conn package_url]comment-add" \ + -action "[ad_conn package_url]comment-add" \ -form " party_id:integer(hidden) return_url:text(hidden),optional {comment:text(textarea),nospell {label {}} {html {$textarea_size}} {after_html {
}}} - {save:text(submit),optional {label {Add Comment}}} + {save:text(submit),optional {label {[_ contacts.Add_Comment]}}} " -on_request { } -after_submit { } - - - - - - set user_id [ad_conn user_id] Index: openacs-4/packages/contacts/lib/contact-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/contact-master.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/contacts/lib/contact-master.tcl 6 Jun 2005 20:31:52 -0000 1.7 +++ openacs-4/packages/contacts/lib/contact-master.tcl 7 Jun 2005 07:45:39 -0000 1.8 @@ -6,7 +6,7 @@ # Set up links in the navbar that the user has access to set name [contact::name -party_id $party_id] if { ![exists_and_not_null name] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } set user_id [ad_conn user_id] @@ -25,30 +25,30 @@ set link_list [list] if { [ad_conn user_id] != 0} { lappend link_list "${prefix}edit" - lappend link_list "All / Edit" + lappend link_list "[_ contacts.All__Edit]" lappend link_list "${prefix}" - lappend link_list "Summary View" + lappend link_list "[_ contacts.Summary_View]" lappend link_list "${prefix}groups" - lappend link_list "Groups" + lappend link_list "[_ contacts.Groups]" lappend link_list "${prefix}relationships" - lappend link_list "Relationships" + lappend link_list "[_ contacts.Relationships]" lappend link_list "${prefix}comments" - lappend link_list "Comments" + lappend link_list "[_ contacts.Comments]" lappend link_list "${prefix}files" - lappend link_list "Files" + lappend link_list "[_ contacts.Files]" if { [site_node::get_package_url -package_key "tasks"] != "" } { lappend link_list "/tasks/contact?party_id=$party_id" - lappend link_list "Tasks" + lappend link_list "[_ contacts.Tasks]" } lappend link_list "${prefix}message" - lappend link_list "Mail" + lappend link_list "[_ contacts.Mail]" } # not yet implemented Index: openacs-4/packages/contacts/lib/groups.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/groups.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/contacts/lib/groups.tcl 27 May 2005 09:35:43 -0000 1.4 +++ openacs-4/packages/contacts/lib/groups.tcl 7 Jun 2005 07:45:39 -0000 1.5 @@ -3,7 +3,7 @@ # @cvs-id $Id$ if { [string is false [contact::exists_p -party_id $party_id]] } { - error "The party_id specified does not exist" + error "[_ contacts.lt_The_party_id_specifie]" } if { [string is false [exists_and_not_null hide_form_p]] } { set hide_form_p 0 Index: openacs-4/packages/contacts/tcl/contacts-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/tcl/contacts-procs-postgresql.xql,v diff -u -r1.5 -r1.6 --- openacs-4/packages/contacts/tcl/contacts-procs-postgresql.xql 27 May 2005 00:18:58 -0000 1.5 +++ openacs-4/packages/contacts/tcl/contacts-procs-postgresql.xql 7 Jun 2005 07:45:40 -0000 1.6 @@ -68,9 +68,9 @@ insert into contact_groups - (group_id,owner_id,group_type,deprecated_p,package_id) + (group_id,default_p,package_id) values - (:group_id,:owner_id,:group_type,:deprecated_p,:package_id) + (:group_id,:default_p,:package_id) Index: openacs-4/packages/contacts/tcl/contacts-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/tcl/contacts-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/contacts/tcl/contacts-procs.tcl 4 Jun 2005 12:36:45 -0000 1.6 +++ openacs-4/packages/contacts/tcl/contacts-procs.tcl 7 Jun 2005 07:45:40 -0000 1.7 @@ -218,16 +218,12 @@ ad_proc -public contact::group::map { -group_id:required - {-owner_id ""} - {-group_type "private"} {-package_id ""} + {-default_p "f"} } { this creates a new group for use with contacts (and the permissions system) } { - if {[exists_and_not_null owner_id]} { - set owner_id [ad_conn user_id] - } - if {[exists_and_not_null package_id]} { + if {[empty_string_p $package_id]} { set package_id [ad_conn package_id] } db_dml map_group {} Index: openacs-4/packages/contacts/www/comment-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/comment-add.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/comment-add.tcl 18 May 2005 16:45:49 -0000 1.2 +++ openacs-4/packages/contacts/www/comment-add.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -13,7 +13,7 @@ } -validate { contact_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] && ![ad_form_new_p -key party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } @@ -65,14 +65,14 @@ } } on_error { - ad_return_error "Error" $errmsg + ad_return_error "[_ contacts.Error]" $errmsg } } if { [string is false [exists_and_not_null return_url]] } { set return_url [contact::url -party_id $party_id] } -ad_returnredirect -message "Comment Added" $return_url +ad_returnredirect -message "[_ contacts.Comment_Added]" $return_url ad_script_abort Index: openacs-4/packages/contacts/www/comments.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/comments.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/comments.tcl 18 May 2005 16:45:49 -0000 1.1 +++ openacs-4/packages/contacts/www/comments.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -11,7 +11,7 @@ } -validate { contact_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } Index: openacs-4/packages/contacts/www/contact-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact-add.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/contact-add.tcl 26 May 2005 09:39:27 -0000 1.2 +++ openacs-4/packages/contacts/www/contact-add.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -10,7 +10,7 @@ } -validate { valid_type -requires {object_type} { if { [lsearch [list organization person] $object_type] < 0 } { - ad_complain "You have not specified a valid contact type" + ad_complain "[_ contacts.lt_You_have_not_specifie]" } } } @@ -22,9 +22,9 @@ lappend form_elements {object_type:text(hidden)} if { $object_type == "person" } { - set title "Add a Person" + set title "[_ contacts.Add_a_Person]" } else { - set title "Add an Organization" + set title "[_ contacts.Add_an_Organization]" } set user_id [ad_conn user_id] @@ -33,9 +33,9 @@ ad_form -name party_ae \ -mode "edit" \ - -cancel_label "Cancel" \ + -cancel_label "[_ contacts.Cancel]" \ -cancel_url [export_vars -base contact -url {party_id}] \ - -edit_buttons [list [list Save save] [list "Save and Add Another" save_add_another]] \ + -edit_buttons [list [list Save save] [list "[_ contacts.Save_and_Add_Another]" save_add_another]] \ -form $form_elements callback contact::contact_form -package_id $package_id -form party_ae -object_type $object_type @@ -57,7 +57,7 @@ } # make the error message multiple item aware if { [llength $missing_elements] > 0 } { - ad_return_error "Configuration Error" "Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included in the default group's form for this object type:" + ad_return_error "[_ contacts.Configuration_Error]" "[_ contacts.lt_Some_of_the_required_]" } } -edit_request { } -on_submit { @@ -69,14 +69,14 @@ if { $object_type == "person" } { if { ![exists_and_not_null first_names] } { - template::element::set_error party_ae first_names "First Names is required" + template::element::set_error party_ae first_names "[_ contacts.lt_First_Names_is_requir]" } if { ![exists_and_not_null last_name] } { - template::element::set_error party_ae last_name "Last Name is required" + template::element::set_error party_ae last_name "[_ contacts.lt_Last_Name_is_required]" } } else { if { ![exists_and_not_null name] } { - template::element::set_error party_ae name "Name is required" + template::element::set_error party_ae name "[_ contacts.Name_is_required]" } } if { ![template::form::is_valid party_ae] } { @@ -127,7 +127,7 @@ error $creation_info(creation_status) } } on_error { - ad_return_error "Error" "The error was: $errmsg" + ad_return_error "[_ contacts.Error]" "[_ contacts.The_error_was_errmsg]" } } else { # name is not included in this list because its required and checked for above Index: openacs-4/packages/contacts/www/contact-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact-edit.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/contact-edit.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/contact-edit.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -10,7 +10,7 @@ } -validate { contact_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] && ![ad_form_new_p -key party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } @@ -69,7 +69,7 @@ } # make the error message multiple item aware if { [llength $missing_elements] > 0 } { - ad_return_error "Configuration Error" "Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included:" + ad_return_error "[_ contacts.Configuration_Error]" "[_ contacts.lt_Some_of_the_required__1]"
  • "]
  • " } } -edit_request { @@ -92,14 +92,14 @@ if { $object_type == "person" } { if { ![exists_and_not_null first_names] } { - template::element::set_error party_ae first_names "First Names is required" + template::element::set_error party_ae first_names "[_ contacts.lt_First_Names_is_requir]" } if { ![exists_and_not_null last_name] } { - template::element::set_error party_ae last_name "Last Name is required" + template::element::set_error party_ae last_name "[_ contacts.lt_Last_Name_is_required]" } } else { if { ![exists_and_not_null name] } { - template::element::set_error party_ae name "Name is required" + template::element::set_error party_ae name "[_ contacts.Name_is_required]" } } if { ![template::form::is_valid party_ae] } { Index: openacs-4/packages/contacts/www/contact-groups.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact-groups.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/contact-groups.tcl 27 May 2005 09:35:43 -0000 1.2 +++ openacs-4/packages/contacts/www/contact-groups.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -22,7 +22,7 @@ set groups_belonging_to [db_list get_party_groups { select group_id from group_distinct_member_map where member_id = :party_id }] -set groups_to_add [list [list "-- select a group --" ""]] +set groups_to_add [list [list "[_ contacts.--_select_a_group_--]" ""]] foreach group $group_options { if { [lsearch "$groups_belonging_to" [lindex $group 1]] >= 0 } { # the party is part of this group @@ -33,6 +33,6 @@ } if { [llength $group_options] == "0" } { - ad_return_error "Insufficient Permissions" "You do not have permission to add users to groups" + ad_return_error "[_ contacts.lt_Insufficient_Permissi]" "[_ contacts.lt_You_do_not_have_permi]" } Index: openacs-4/packages/contacts/www/contact-rels.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact-rels.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/contacts/www/contact-rels.tcl 5 Jun 2005 19:44:54 -0000 1.7 +++ openacs-4/packages/contacts/www/contact-rels.tcl 7 Jun 2005 07:45:40 -0000 1.8 @@ -15,12 +15,12 @@ } -validate { contact_one_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] } { - ad_complain "The first contact specified does not exist" + ad_complain "[_ contacts.lt_The_first_contact_spe]" } } contact_two_exists -requires {party_two} { if { ![contact::exists_p -party_id $party_two] } { - ad_complain "The second contact specified does not exist" + ad_complain "[_ contacts.lt_The_second_contact_sp]" } } @@ -59,12 +59,12 @@ } else { if { $org_valid_p } { set rel_type "organization_rel" - set pretty_plural_list_name "organizations" + set pretty_plural_list_name "[_ contacts.organizations]" } elseif { $person_valid_p } { set rel_type "membership_rel" - set pretty_plural_list_name "people" + set pretty_plural_list_name "[_ contacts.people]" } else { - error "neither person nor org type is valid, what happened admin?" + error "[_ contacts.lt_neither_person_nor_or]" } } } @@ -129,7 +129,7 @@ -html {width 100%} \ -name "contacts" \ -multirow "contacts" \ - -row_pretty_plural "$pretty_plural_list_name found in search, please try again or add a new contact" \ + -row_pretty_plural "[_ contacts.lt_pretty_plural_list_na]" \ -checkbox_name checkbox \ -selected_format ${format} \ -orderby_name "order_search" \ @@ -144,7 +144,7 @@ contact { label {} display_template { - @contacts.party_id@">@contacts.name@ \[Select\] + @contacts.party_id@">@contacts.name@ \[[_ contacts.Select]\] @contacts.email@ } } @@ -166,19 +166,19 @@ } -filters { } -orderby { first_names { - label "First Name" + label "[_ contacts.First_Name]" orderby_asc "lower(contact__name(party_id,'f')) asc" orderby_desc "lower(contact__name(party_id,'f')) asc" } last_name { - label "Last Name" + label "[_ contacts.Last_Name]" orderby_asc "lower(contact__name(party_id,'t')) asc" orderby_desc "lower(contact__name(party_id,'t')) asc" } default_value first_names,asc } -formats { normal { - label "Table" + label "[_ contacts.Table]" layout table row { contact {} @@ -201,9 +201,9 @@ ad_form -name "search" -method "GET" -export {party_id} -form { - {role_two:text(select) {label "Add: "} {options $rel_options}} + {role_two:text(select) {label "[_ contacts.Add]"} {options $rel_options}} {query:text(text) {label ""} {html {size 24}}} - {search:text(submit) {label "Search"}} + {search:text(submit) {label "[_ contacts.Search]"}} } -on_request { } -edit_request { } -on_refresh { @@ -215,46 +215,46 @@ -html {width 100%} \ -name "relationships" \ -multirow "relationships" \ - -row_pretty_plural "relationships" \ + -row_pretty_plural "[_ contacts.relationships]" \ -selected_format "normal" \ -elements { role { - label "Role" + label "[_ contacts.Role]" display_col role_singular } other_name { - label "Contact" + label "[_ contacts.Contact]" display_col other_name link_url_eval $contact_url } details { - label "Details" + label "[_ contacts.Details]" display_col details;noquote } actions { - label "Actions" + label "[_ contacts.Actions]" display_template { - Delete - Edit Details + [_ contacts.Delete] + [_ contacts.Edit_Details] } } } -filters { party_id {} } -orderby { other_name { - label "Contact" + label "[_ contacts.Contact]" orderby_asc "CASE WHEN object_id_one = :party_id THEN upper(contact__name(object_id_two)) ELSE upper(contact__name(object_id_one)) END asc, upper(role_singular) asc" orderby_desc "CASE WHEN object_id_one = :party_id THEN upper(contact__name(object_id_two)) ELSE upper(contact__name(object_id_one)) END desc, upper(role_singular) asc" } role { - label "Role" + label "[_ contacts.Role]" orderby_asc "upper(role_singular) asc, CASE WHEN object_id_one = :party_id THEN upper(contact__name(object_id_two)) ELSE upper(contact__name(object_id_one)) END asc" orderby_desc "upper(role_singular) desc, CASE WHEN object_id_one = :party_id THEN upper(contact__name(object_id_two)) ELSE upper(contact__name(object_id_one)) END asc" } default_value role,asc } -formats { normal { - label "Table" + label "[_ contacts.Table]" layout table row { role {} Index: openacs-4/packages/contacts/www/contact.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/contacts/www/contact.tcl 31 May 2005 17:08:41 -0000 1.7 +++ openacs-4/packages/contacts/www/contact.tcl 7 Jun 2005 07:45:40 -0000 1.8 @@ -10,7 +10,7 @@ } -validate { contact_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } @@ -28,7 +28,7 @@ set groups_belonging_to [db_list get_party_groups { select group_id from group_distinct_member_map where member_id = :party_id }] if { [lsearch $groups_belonging_to -2] < 0 } { - ad_return_error "This users has not been approved" "This user is awaiting administrator approval" + ad_return_error "[_ contacts.lt_This_users_has_not_be]" "[_ contacts.lt_This_user_is_awaiting]" } set ams_forms [list] foreach group [contact::groups -expand "all" -privilege_required "read"] { @@ -69,14 +69,6 @@ } } - - - - - - - - set live_revision [contact::live_revision -party_id $party_id] if { [exists_and_not_null live_revision] } { set update_date [db_string get_update_date { select to_char(publish_date,'Mon FMDD, YYYY at FMHH12:MIam') from cr_revisions where revision_id = :live_revision } -default {}] Index: openacs-4/packages/contacts/www/files.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/files.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/files.tcl 27 May 2005 00:18:58 -0000 1.1 +++ openacs-4/packages/contacts/www/files.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -12,7 +12,7 @@ } -validate { contact_exists -requires {party_id} { if { ![contact::exists_p -party_id $party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } @@ -31,9 +31,9 @@ lappend form_elements [list "upload_title${upload_number}:text(text),optional" [list html "size 45 maxlength 100"] [list label ""]] incr upload_number } -if { $upload_count == 1 } { set upload_label "Upload" } else { set upload_label "Done" } +if { $upload_count == 1 } { set upload_label "Upload" } else { set upload_label "[_ contacts.Done]" } lappend form_elements [list "upload:text(submit),optional" [list "label" $upload_label]] -lappend form_elements [list "upload_more:text(submit),optional" [list "label" "Upload More"]] +lappend form_elements [list "upload_more:text(submit),optional" [list "label" "[_ contacts.Upload_More]"]] ad_form -name upload_files -html {enctype multipart/form-data} -form $form_elements -on_request { } -on_submit { @@ -66,9 +66,9 @@ incr upload_number } if { [llength $message] == 1 } { - util_user_message -html -message "The file [lindex $message 0] was successfully uploaded" + util_user_message -html -message "[_ contacts.lt_The_file_lindex_messa]" } elseif { [llength $message] > 1 } { - util_user_message -html -message "The files [join $message ", "] were successfully uploaded" + util_user_message -html -message "[_ contacts.lt_The_files_join_messag]" } } -after_submit { @@ -87,12 +87,12 @@ -html {width 100%} \ -name "files" \ -multirow "files" \ - -row_pretty_plural "files" \ + -row_pretty_plural "[_ contacts.files]" \ -checkbox_name checkbox \ -bulk_action_export_vars [list party_id orderby] \ -bulk_actions { - "Delete" "../files-delete" "Delete the selectted files" - "Update" "../files-update" "Update filenames" + "[_ contacts.Delete]" "../files-delete" "[_ contacts.lt_Delete_the_selectted_]" + "[_ contacts.Update]" "../files-update" "[_ contacts.Update_filenames]" } -selected_format "normal" \ -key item_id \ -elements { @@ -108,41 +108,41 @@ } } type { - label "Type" + label "[_ contacts.Type]" display_col extension } creation_date { - label "Updated On" + label "[_ contacts.Updated_On]" display_col creation_date_pretty } creation_user { - label "Updated By" + label "[_ contacts.Updated_By]" display_col creation_user_pretty } } -filters { } -orderby { file { - label "File" + label "[_ contacts.File]" orderby_asc "upper(cr.title) asc, ao.creation_date desc" orderby_desc "upper(cr.title) desc, ao.creation_date desc" default_direction asc } creation_date { - label "Updated On" + label "[_ contacts.Updated_On]" orderby_asc "ao.creation_date asc" orderby_desc "ao.creation_date desc" default_direction desc } creation_user { - label "Updated By" + label "[_ contacts.Updated_By]" orderby_asc "upper(contact__name(ao.creation_user)) asc, upper(cr.title) asc" orderby_desc "upper(contact__name(ao.creation_user)) desc, upper(cr.title) asc" default_direction desc } default_value file,asc } -formats { normal { - label "Table" + label "[_ contacts.Table]" layout table row { } Index: openacs-4/packages/contacts/www/group-parties-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/group-parties-add.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/group-parties-add.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/group-parties-add.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -11,7 +11,7 @@ } -validate { valid_party_submission { if { ![exists_and_not_null party_id] && ![exists_and_not_null party_ids] } { - ad_complain "Your need to provide some contacts to send a message" + ad_complain "[_ contacts.lt_Your_need_to_provide_]" } } } @@ -24,7 +24,7 @@ -set title "Add to Group" +set title "[_ contacts.Add_to_Group]" set user_id [ad_conn user_id] set context [list $title] set package_id [ad_conn package_id] @@ -37,25 +37,25 @@ set form_elements { party_ids:text(hidden) return_url:text(hidden) - {recipients:text(inform),optional {label "Contacts"}} + {recipients:text(inform),optional {label "[_ contacts.Contacts]"}} } set group_options [contact::groups -expand "all" -privilege_required "create"] if { [llength $group_options] == "0" } { - ad_return_error "Insufficient Permissions" "You do not have permission to add users to groups" + ad_return_error "[_ contacts.lt_Insufficient_Permissi]" "[_ contacts.lt_You_do_not_have_permi]" } append form_elements { - {group_ids:text(checkbox),multiple {label "Add to Group(s)"} {options $group_options}} + {group_ids:text(checkbox),multiple {label "[_ contacts.Add_to_Groups]"} {options $group_options}} } -set edit_buttons [list [list "Add to Selected Group(s)" create]] +set edit_buttons [list [list "[_ contacts.lt_Add_to_Selected_Group]" create]] ad_form -action group-parties-add \ -name add_to_group \ - -cancel_label "Cancel" \ + -cancel_label "[_ contacts.Cancel]" \ -cancel_url $return_url \ -edit_buttons $edit_buttons \ -form $form_elements \ Index: openacs-4/packages/contacts/www/group-parties-remove.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/group-parties-remove.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/group-parties-remove.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/group-parties-remove.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -12,7 +12,7 @@ } -validate { valid_party_submission { if { ![exists_and_not_null party_id] && ![exists_and_not_null party_ids] } { - ad_complain "Your need to provide some contacts to send a message" + ad_complain "[_ contacts.lt_Your_need_to_provide_]" } } } @@ -25,7 +25,7 @@ -set title "Remove From to Group" +set title "[_ contacts.Remove_From_to_Group]" set user_id [ad_conn user_id] set context [list $title] set package_id [ad_conn package_id] @@ -38,25 +38,25 @@ set form_elements { party_ids:text(hidden) return_url:text(hidden) - {recipients:text(inform),optional {label "Contacts"}} + {recipients:text(inform),optional {label "[_ contacts.Contacts]"}} } set group_options [contact::groups -expand "all" -privilege_required "create"] if { [llength $group_options] == "0" } { - ad_return_error "Insufficient Permissions" "You do not have permission to add users to groups" + ad_return_error "[_ contacts.lt_Insufficient_Permissi]" "[_ contacts.lt_You_do_not_have_permi]" } append form_elements { - {group_ids:text(checkbox),multiple {label "Add to Group(s)"} {options $group_options}} + {group_ids:text(checkbox),multiple {label "[_ contacts.Add_to_Groups]"} {options $group_options}} } -set edit_buttons [list [list "Remove from Selected Group(s)" create]] +set edit_buttons [list [list "[_ contacts.lt_Remove_from_Selected_]" create]] ad_form -action group-parties-remove \ -name remove_from_group \ - -cancel_label "Cancel" \ + -cancel_label "[_ contacts.Cancel]" \ -cancel_url $return_url \ -edit_buttons $edit_buttons \ -form $form_elements \ Index: openacs-4/packages/contacts/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/index.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/index.tcl 18 May 2005 16:45:50 -0000 1.3 +++ openacs-4/packages/contacts/www/index.tcl 7 Jun 2005 07:45:40 -0000 1.4 @@ -16,7 +16,7 @@ } -set title "Contacts" +set title "[_ contacts.Contacts]" set context {} if { [exists_and_not_null query_id] } { @@ -33,19 +33,19 @@ set query_id $group_id set query_type "group" if { ![exists_and_not_null group_id] } { - ad_return_error "Not Configured" "Your administrator must map and add a default group in the admin pages" + ad_return_error "[_ contacts.Not_Configured]" "[_ contacts.lt_Your_administrator_mu]" } } if { $orderby == "first_names,asc" } { set name_order 0 - set name_label "Sort by: First Names | Last Name" + set name_label "[_ contacts.Sort_by] [_ contacts.First_Names] | [_ contacts.Last_Name]" } else { set name_order 1 - set name_label "Sort by: First Names | Last Name" + set name_label "[_ contacts.Sort_by] [_ contacts.First_Names] | [_ contacts.Last_Name]" } -append name_label "    Show: " +append name_label "    [_ contacts.Show]" set first_p 1 foreach page_s [list 25 50 100 500] { if { [string is false $first_p] } { @@ -63,7 +63,6 @@ set tasks_url [export_vars -base "/tasks/query" -url {query_id query rel_type}] - # SEARCH CLAUSE set search_clause [list] @@ -103,18 +102,6 @@ set search_clause [join $search_clause "\n"] - - - - - - - - - - - - # LIST CODE #set actions [list \ @@ -125,17 +112,17 @@ # "Admin" "admin" "Administration"] set actions "" set bulk_actions [list \ - "Add to Group" "group-parties-add" "Add to group" \ - "Remove From Group" "group-parties-remove" "Remove from this Group" \ - "Delete" "delete" "Delete the selected Contacts" \ - "Mail Merge" "message" "E-mail or Mail the selected contacts" \ + "[_ contacts.Add_to_Group]" "group-parties-add" "[_ contacts.Add_to_group]" \ + "[_ contacts.Remove_From_Group]" "group-parties-remove" "[_ contacts.lt_Remove_from_this_Grou]" \ + "[_ contacts.Delete]" "delete" "[_ contacts.lt_Delete_the_selected_C]" \ + "[_ contacts.Mail_Merge]" "message" "[_ contacts.lt_E-mail_or_Mail_the_se]" \ ] template::list::create \ -html {width 100%} \ -name "contacts" \ -multirow "contacts" \ - -row_pretty_plural "contacts" \ + -row_pretty_plural "[_ contacts.contacts]" \ -checkbox_name checkbox \ -selected_format ${format} \ -key party_id \ @@ -160,7 +147,7 @@ contact { label "$name_label" display_template { - @contacts.party_id@">@contacts.name@ \[Edit\] + @contacts.party_id@">@contacts.name@ \[[_ contacts.Edit]\] @contacts.email@ } } @@ -182,35 +169,35 @@ } -filters { } -orderby { first_names { - label "First Name" + label "[_ contacts.First_Name]" orderby_asc "lower(contact__name(party_id,'f')) asc" orderby_desc "lower(contact__name(party_id,'f')) asc" } last_name { - label "Last Name" + label "[_ contacts.Last_Name]" orderby_asc "lower(contact__name(party_id,'t')) asc" orderby_desc "lower(contact__name(party_id,'t')) asc" } default_value first_names,asc } -formats { normal { - label "Table" + label "[_ contacts.Table]" layout table row { checkbox {} contact {} } } tasks { - label "Table" + label "[_ contacts.Table]" layout table row { checkbox {} contact {} } } csv { - label "CSV" + label "[_ contacts.CSV]" output csv page_size 0 row { @@ -246,10 +233,10 @@ # roles set rel_options [list] - lappend rel_options [list "All" "" ""] + lappend rel_options [list "[_ contacts.All]" "" ""] db_foreach get_rels {} { if { $relation_type == "membership_rel" } { - set pretty_plural "People" + set pretty_plural "[_ contacts.People]" } lappend rel_options [list \ [lang::util::localize $pretty_plural] \ @@ -261,10 +248,10 @@ set owner_id [ad_conn user_id] -set group_options [list [list "-- Groups --------------------------" ""]] +set group_options [list [list "[_ contacts.lt_--_Groups_-----------]" ""]] append group_options " [contact::groups -expand "all"]" lappend group_options [list "" ""] -lappend group_options [list "-- My Searches ---------------------" ""] +lappend group_options [list "[_ contacts.lt_--_My_Searches_------]" ""] append group_options " [db_list_of_lists get_my_searches {}]" @@ -283,9 +270,9 @@ append form_elements { {query:text(text),optional {label ""} {html {size 20 maxlength 255}}} - {save:text(submit) {label {Go}} {value "go"}} + {save:text(submit) {label {[_ contacts.Go]}} {value "go"}} } -# {format:text(select),optional {label "   Output"} {options {{Default normal} {CSV csv}}} {html {onClick "javascript:acs_FormRefresh('search')"}}} +# {format:text(select),optional {label "   [_ contacts.Output]"} {options {{Default normal} {CSV csv}}} {html {onClick "javascript:acs_FormRefresh('search')"}}} switch $format { normal { @@ -294,14 +281,14 @@ } if { $contacts_total_count > 0 } { append form_elements { - {result_count:integer(inform),optional {label "  Results:"} {value "$contacts_total_count"}} + {result_count:integer(inform),optional {label "  [_ contacts.Results]"} {value "$contacts_total_count"}} } } } tasks { append form_elements { - {tasks_interval:integer(text),optional {label "  View next"} {after_html "days"} {html {size 2 maxlength 3 onChange "javascript:acs_FormRefresh('search')"}}} + {tasks_interval:integer(text),optional {label "  [_ contacts.View_next]"} {after_html "[_ contacts.days]"} {html {size 2 maxlength 3 onChange "javascript:acs_FormRefresh('search')"}}} } } csv { Index: openacs-4/packages/contacts/www/message.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/message.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/message.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/message.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -14,12 +14,12 @@ } -validate { valid_message_type -requires {message_type} { if { [lsearch [list email letter label] $message_type] < 0 } { - ad_complain "Your provided an invalid Message Type" + ad_complain "[_ contacts.lt_Your_provided_an_inva]" } } valid_party_submission { if { ![exists_and_not_null party_id] && ![exists_and_not_null party_ids] } { - ad_complain "Your need to provide some contacts to send a message" + ad_complain "[_ contacts.lt_Your_need_to_provide_]" } } } @@ -33,7 +33,7 @@ set party_count [llength $party_ids] -set title "Messages" +set title "[_ contacts.Messages]" set user_id [ad_conn user_id] set context [list $title] @@ -47,13 +47,13 @@ message_id:key party_ids:text(hidden) return_url:text(hidden) - {to:text(inform),optional {label "Recipients"} {value $recipients}} + {to:text(inform),optional {label "[_ contacts.Recipients]"} {value $recipients}} } if { [string is false [exists_and_not_null message_type]] } { append form_elements { - {message_type:text(select) {label "Type"} {options {{Email email} {Letter letter} {Label label}}}} + {message_type:text(select) {label "[_ contacts.Type]"} {options {{Email email} {Letter letter} {Label label}}}} } set title [_ contacts.create_a_message] } else { @@ -66,21 +66,21 @@ if { [string is false [exists_and_not_null message]] } { append form_elements { - {message:text(select) {label "Message"} {options {{{-- Create New Message --} new}}}} + {message:text(select) {label "[_ contacts.Message]"} {options {{{-- Create New Message --} new}}}} } - set edit_buttons [list [list "Next" create]] + set edit_buttons [list [list "[_ contacts.Next]" create]] } else { append form_elements { {message:text(hidden)} } if { $message_type == "email" } { append form_elements { {subject:text(text),optional - {label "Subject"} + {label "[_ contacts.Subject]"} {html {size 55}} } {content:text(textarea),optional - {label "Message"} + {label "[_ contacts.Message]"} {html {cols 55 rows 18}} {help_text {remember that you can use mail merge substitutions. the most common wildcards are \{name\} \{first_names\}, \{last_name\}, \{home_address\} and \{date\}}} } @@ -89,34 +89,34 @@ set todays_date [lc_time_fmt [dt_sysdate] "%q"] append form_elements { {paper_type:text(select),optional - {label "Paper Type"} + {label "[_ contacts.Paper_Type]"} {options {{{Letter} letter} {Letterhead letterhead}}} } {date:text(inform),optional - {label "Date"} + {label "[_ contacts.Date]"} {value $todays_date} } {address:text(inform),optional - {label "Address"} + {label "[_ contacts.Address]"} {value "{name}
    {mailing_address}"} {help_text {The recipeints name and mailing address will automatically be included so that they work with window envelopes}} } {content:richtext(richtext),optional - {label "Message"} + {label "[_ contacts.Message]"} {html {cols 70 rows 24}} - {help_text {remember that you can use mail merge substitutions. the most common wildcards are \{name\} \{first_names\}, \{last_name\}, \{home_address\} and \{date\}}} + {help_text {[_ contacts.lt_remember_that_you_can]}} } } } else { - error "labels are not implemented yet" + error "[_ contacts.lt_labels_are_not_implem]" } - set sig_options "{{-- no not include a signature --} \"none\"} [db_list_of_lists select_sigs {select title, signature from contact_signatures where party_id = :user_id}]" + set sig_options "{{[_ contacts.lt_--_no_not_include_a_s]} \"none\"} [db_list_of_lists select_sigs {select title, signature from contact_signatures where party_id = :user_id}]" append form_elements { - {include_signature:text(select),optional {label "Signature"} {options $sig_options} {help_text {you may modify your signatures}}} - {save_as:text(text),optional {label "Save Message As"} {html {size 35}}} + {include_signature:text(select),optional {label "[_ contacts.Signature]"} {options $sig_options} {help_text {you may modify [_ contacts.your_signatures]}}} + {save_as:text(text),optional {label "[_ contacts.Save_Message_As]"} {html {size 35}}} } append form_elements - set edit_buttons [list [list "Preview" create]] + set edit_buttons [list [list "[_ contacts.Preview]" create]] } @@ -125,7 +125,7 @@ ad_form -action message \ -name message \ - -cancel_label "Cancel" \ + -cancel_label "[_ contacts.Cancel]" \ -cancel_url $return_url \ -edit_buttons $edit_buttons \ -form $form_elements \ @@ -145,15 +145,15 @@ ] \ ] if { $content_raw == "" } { - template::element set_error message content "Message is required" + template::element set_error message content "[_ contacts.Message_is_required]" } } email { if { [string trim $subject] == "" } { - template::element set_error message subject "Subject is required" + template::element set_error message subject "[_ contacts.Subject_is_required]" } if { [string trim $content] == "" } { - template::element set_error message content "Message is required" + template::element set_error message content "[_ contacts.Message_is_required]" } } } Index: openacs-4/packages/contacts/www/my-searches.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/Attic/my-searches.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/my-searches.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/my-searches.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -9,17 +9,17 @@ } -validate { } -set title "My Searches" -set context [list [list "search" "Advanced Search"] $title] +set title "[_ contacts.My_Searches]" +set context [list [list "search" "[_ contacts.Advanced_Search]"] $title] template::list::create \ -name "searches" \ -multirow "searches" \ - -row_pretty_plural "searches" \ + -row_pretty_plural "[_ contacts.searches]" \ -selected_format "normal" \ -key party_id \ -actions [list \ - "Add Search" "search" "Add Search"] \ + "[_ contacts.Add_Search]" "search" "[_ contacts.Add_Search]"] \ -elements { object_type { label {Type} @@ -38,7 +38,7 @@ } -orderby { } -formats { normal { - label "Table" + label "[_ contacts.Table]" layout table row { } Index: openacs-4/packages/contacts/www/person-groups-ae.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/person-groups-ae.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/person-groups-ae.tcl 4 Jun 2005 12:36:45 -0000 1.2 +++ openacs-4/packages/contacts/www/person-groups-ae.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -23,7 +23,7 @@ set package_key "contacts" if { [ad_form_new_p -key person_id] } { - set title "Add a Person" + set title "[_ contacts.Add_a_Person]" set mode "edit" } else { set title [person::name -person_id $person_id] @@ -43,7 +43,7 @@ -mode "display" \ -has_edit "t" \ -actions { - {"Add to Group" "formbutton:edit"} + {"[_ contacts.Add_to_Group]" "formbutton:edit"} } -form { {person_id:key} } @@ -69,13 +69,13 @@ where groups.group_id != '-1' }] ad_form -extend -name groups_ae -form { - {group_id:integer(checkbox),multiple {label "Groups"} {options $group_options}} + {group_id:integer(checkbox),multiple {label "[_ contacts.Groups]"} {options $group_options}} } -edit_request { set group_id [db_list get_them { select distinct group_id from group_member_map where member_id = :person_id }] #ad_return_error $group_id $group_id } -on_submit { } -after_submit { - ad_returnredirect -message "Group Information Saved." [export_vars -base "person-ae" -url {person_id}] + ad_returnredirect -message "[_ contacts.lt_Group_Information_Sav]" [export_vars -base "person-ae" -url {person_id}] } Index: openacs-4/packages/contacts/www/relationship-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/relationship-add.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/relationship-add.tcl 25 May 2005 02:09:52 -0000 1.3 +++ openacs-4/packages/contacts/www/relationship-add.tcl 7 Jun 2005 07:45:40 -0000 1.4 @@ -14,24 +14,24 @@ } -validate { contact_one_exists -requires {party_one} { if { ![contact::exists_p -party_id $party_one] } { - ad_complain "The first contact specified does not exist" + ad_complain "[_ contacts.lt_The_first_contact_spe]" } } contact_two_exists -requires {party_two} { if { ![contact::exists_p -party_id $party_two] } { - ad_complain "The second contact specified does not exist" + ad_complain "[_ contacts.lt_The_second_contact_sp]" } } role_one_exists -requires {role_one} { set role $role_one if { ![db_0or1row role_exists_p {}] } { - ad_complain "The first role specified does not exist" + ad_complain "[_ contacts.lt_The_first_role_specif]" } } role_two_exists -requires {role_two} { set role $role_two if { ![db_0or1row role_exists_p {}] } { - ad_complain "The second role specified does not exist" + ad_complain "[_ contacts.lt_The_second_role_speci]" } } } @@ -46,7 +46,7 @@ set options_list [db_list_of_lists get_rel_types {}] set options_length [llength $options_list] if { $options_length == "0" } { - ad_return_error "Error" "There was a problem with your input. this type of relationship cannot exist." + ad_return_error "[_ contacts.Error]" "[_ contacts.lt_There_was_a_problem_w]" } elseif { $options_length == "1" } { set rel_type [lindex [lindex $options_list 0] 0] set role_one [lindex [lindex $options_list 0] 1] Index: openacs-4/packages/contacts/www/relationship-ae.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/relationship-ae.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/relationship-ae.tcl 4 Jun 2005 12:36:45 -0000 1.3 +++ openacs-4/packages/contacts/www/relationship-ae.tcl 7 Jun 2005 07:45:40 -0000 1.4 @@ -13,17 +13,17 @@ } -validate { contact_one_exists -requires {object_id_one} { if { ![contact::exists_p -party_id $object_id_one] } { - ad_complain "The first contact specified does not exist" + ad_complain "[_ contacts.lt_The_first_contact_spe]" } } contact_two_exists -requires {object_id_two} { if { ![contact::exists_p -party_id $object_id_two] } { - ad_complain "The second contact specified does not exist" + ad_complain "[_ contacts.lt_The_second_contact_sp]" } } party_id_valid -requires {object_id_one object_id_two party_id} { if { $party_id != $object_id_one && $party_id != $object_id_two } { - ad_complain "The contact specified is not one of the contacts in this relationship" + ad_complain "[_ contacts.lt_The_contact_specified_1]" } } } @@ -74,9 +74,9 @@ set creation_ip [ad_conn peeraddr] set rel_id [db_exec_plsql create_rel {}] db_dml insert_contact_rel {} - util_user_message -message "Relationship Added" + util_user_message -message "[_ contacts.Relationship_Added]" } else { - util_user_message -message "Relationship Updated" + util_user_message -message "[_ contacts.Relationship_Updated]" } if { $list_exists_p } { ams::ad_form::save -package_key "contacts" \ Index: openacs-4/packages/contacts/www/relationship-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/relationship-delete.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/relationship-delete.tcl 25 May 2005 02:09:52 -0000 1.2 +++ openacs-4/packages/contacts/www/relationship-delete.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -11,7 +11,7 @@ } -validate { valid_party -requires {party_id} { if { ![contact::exists_p -party_id $party_id] } { - ad_complain "The contact specified does not exist" + ad_complain "[_ contacts.lt_The_contact_specified]" } } } @@ -22,5 +22,5 @@ if { ![exists_and_not_null return_url] } { set return_url "$party_id/relationships" } -ad_returnredirect -message "Relationship Deleted" $return_url +ad_returnredirect -message "[_ contacts.Relationship_Deleted]" $return_url ad_script_abort Index: openacs-4/packages/contacts/www/search-help.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/search-help.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/search-help.tcl 4 Jun 2005 12:36:45 -0000 1.2 +++ openacs-4/packages/contacts/www/search-help.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -9,6 +9,6 @@ } set admin_p [ad_permission_p [ad_conn package_id] admin] #set default_group_id [contacts::default_group_id] -set title "Search Help" +set title "[_ contacts.Search_Help]" set context [list $title] Index: openacs-4/packages/contacts/www/settings.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/settings.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/settings.tcl 4 Jun 2005 12:36:45 -0000 1.2 +++ openacs-4/packages/contacts/www/settings.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -8,7 +8,7 @@ } { } -set title "Settings" +set title "[_ contacts.Settings]" set context [list $title] set package_id [ad_conn package_id] set party_id [ad_conn user_id] @@ -17,7 +17,7 @@ template::list::create \ -name "signatures" \ -multirow "signatures" \ - -row_pretty_plural "signatures" \ + -row_pretty_plural "[_ contacts.signatures]" \ -elements { default_p { label "" Index: openacs-4/packages/contacts/www/signature.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/signature.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/signature.tcl 4 Jun 2005 12:36:45 -0000 1.2 +++ openacs-4/packages/contacts/www/signature.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -11,34 +11,34 @@ set party_id [ad_conn user_id] if { ![ad_form_new_p -key signature_id] } { if { [string is false [db_0or1row sig_is_mine_p {select '1' from contact_signatures where signature_id = :signature_id and party_id = :party_id}]] } { - ad_complain "This signature specified either does not exist or does not belong to you" + ad_complain "[_ contacts.lt_This_signature_specif]" } } } } if { [ad_form_new_p -key signature_id] } { - set page_title "Create a Signature" - set edit_buttons [list [list "Create" save]] + set page_title "[_ contacts.Create_a_Signature]" + set edit_buttons [list [list "[_ contacts.Create]" save]] } else { - set page_title "Edit a Signature" - set edit_buttons [list [list "Save" save] [list "Delete" delete]] + set page_title "[_ contacts.Edit_a_Signature]" + set edit_buttons [list [list "[_ contacts.Save]" save] [list "[_ contacts.Delete]" delete]] } set context [list $page_title] set party_id [ad_conn user_id] set form_elements { signature_id:key - {title:text(text) {label "Save As"} {html {size 35 maxlength 35}}} - {signature:text(textarea) {label "Signature"} {html {cols 45 rows 5}}} - {default_p:boolean(checkbox),optional {label ""} {options {{{this is my default signature} 1}}}} + {title:text(text) {label "[_ contacts.Save_As]"} {html {size 35 maxlength 35}}} + {signature:text(textarea) {label "[_ contacts.Signature]"} {html {cols 45 rows 5}}} + {default_p:boolean(checkbox),optional {label ""} {options {{{[_ contacts.lt_this_is_my_default_si]} 1}}}} } ad_form -action signature \ -name signature \ - -cancel_label "Cancel" \ + -cancel_label "[_ contacts.Cancel]" \ -cancel_url "settings" \ -edit_buttons $edit_buttons \ -form $form_elements \ Index: openacs-4/packages/contacts/www/admin/group-ae.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/group-ae.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/admin/group-ae.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/admin/group-ae.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -20,16 +20,16 @@ } if { [ad_form_new_p -key group_id] } { - set parents "{{-- top level group --} {}} [contact::groups -expand "none" -output "ad_form" -privilege_required "admin"]" + set parents "{{[_ contacts.lt_--_top_level_group_--]} {}} [contact::groups -expand "none" -output "ad_form" -privilege_required "admin"]" append form_elements { - {parent:integer(select),optional {label "Parent Group"} {options $parents}} + {parent:integer(select),optional {label "[_ contacts.Parent_Group]"} {options $parents}} } } else { set parent_id [contact::group::parent -group_id $group_id] if { [exists_and_not_null parent_id] } { set parent [acs_object_name $parent_id] append form_elements { - {parent:text(inform),optional {label "Parent Group"}} + {parent:text(inform),optional {label "[_ contacts.Parent_Group]"}} } } } @@ -39,14 +39,14 @@ #} append form_elements { - {group_name:text(text) {label "Group Name"}} + {group_name:text(text) {label "[_ contacts.Group_Name]"}} join_policy:text(hidden) url:text(hidden),optional email:text(hidden),optional } ad_form -name group_ae -action group-ae -form $form_elements \ -new_request { - set title "Add a Group" + set title "[_ contacts.Add_a_Group]" set context [list $title] set join_policy "open" } -edit_request { @@ -60,8 +60,8 @@ and groups.group_id = :group_id } - set title "Edit ${group_name}" - set context [list [list groups "Groups"] $title] + set title "[_ contacts.Edit_group_name]" + set context [list [list groups "[_ contacts.Groups]"] $title] } -validate { } -new_data { @@ -79,7 +79,7 @@ relation_add -member_state "approved" "composition_rel" $parent $group_id } } - set message "Group '${group_name}' Created" + set message "[_ contacts.lt_Group_group_name_Crea]" } -edit_data { @@ -97,7 +97,7 @@ where party_id = :group_id } - set message "Group '${group_name}' Updated" + set message "[_ contacts.lt_Group_group_name_Upda]" } -after_submit { Index: openacs-4/packages/contacts/www/admin/group-map.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/group-map.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/admin/group-map.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/admin/group-map.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -12,7 +12,7 @@ } -validate { action_valid -requires {action} { if { [lsearch [list map unmap makedefault] $action] < 0 } { - ad_complain "the action supplied is not valid" + ad_complain "[_ contacts.lt_the_action_supplied_i]" } } action_appropriate -requires {action} { @@ -23,24 +23,24 @@ if { [exists_and_not_null default_p] } { # the group is mapped if { $default_p && $action == "makedefault" } { - ad_complain "This group is already the default" + ad_complain "[_ contacts.lt_This_group_is_already]" } if { [exists_and_not_null parent_id] && $action == "makedefault" } { - ad_complain "You cannot make sub groups the default group" + ad_complain "[_ contacts.lt_You_cannot_make_sub_g]" } if { $default_p && $action == "unmap" } { - ad_complain "You cannot unmap the default group" + ad_complain "[_ contacts.lt_You_cannot_unmap_the_]" } if { $action == "map" } { - ad_complain "This group is already mapped" + ad_complain "[_ contacts.lt_This_group_is_already_1]" } } else { if { $action != "map" } { - ad_complain "This action cannot be taken for unmapped groups" + ad_complain "[_ contacts.lt_This_action_cannot_be]" } if { [exists_and_not_null parent_id] } { if { ![db_0or1row parent_mapped { select 1 from contact_groups where group_id = :parent_id and package_id = :package_id }] } { - ad_complain "You cannot map groups whose parent groups are not mapped" + ad_complain "[_ contacts.lt_You_cannot_map_groups]" } } } Index: openacs-4/packages/contacts/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/index.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/admin/index.tcl 18 May 2005 16:45:50 -0000 1.3 +++ openacs-4/packages/contacts/www/admin/index.tcl 7 Jun 2005 07:45:40 -0000 1.4 @@ -10,50 +10,50 @@ set orderby "name" -set title "Contact Administration" +set title "[_ contacts.lt_Contact_Administratio]" set context {} set package_id [ad_conn package_id] template::list::create \ -name "groups" \ -multirow "groups" \ - -row_pretty_plural "groups" \ + -row_pretty_plural "[_ contacts.groups]" \ -elements { edit { label {} display_template { - Edit + [_ acs-kernel.common_Edit] } } group_name { label {Group} display_col group_name } member_count { - label {\# Contacts} + label {[_ contacts.Contacts]} display_col member_count link_url_eval $group_url } mapped { label {Mapped} display_template { - True + [_ contacts.True] - False + [_ contacts.False] } } default { label {Default} display_template { - True + [_ contacts.True] - False + [_ contacts.False] @@ -62,17 +62,17 @@ } person_form { display_template { - Person Form + [_ contacts.Person_Form] } } org_form { display_template { - Organization Form + [_ contacts.Organization_Form] } } actions { display_template { - Permissions + [_ contacts.Permissions] } } } -filters { @@ -96,14 +96,14 @@ -list_name "${package_id}__${group_id}" \ -pretty_name "${package_id}__${group_id}" \ -return_url [ad_conn url] \ - -return_url_label "Return to \"$title\""] + -return_url_label "[_ contacts.Return_to_title]"] set ams_org_url [ams::list::url \ -package_key "contacts" \ -object_type "organization" \ -list_name "${package_id}__${group_id}" \ -pretty_name "${package_id}__${group_id}" \ -return_url [ad_conn url] \ - -return_url_label "Return to \"$title\""] + -return_url_label "[_ contacts.Return_to_title]"] multirow append groups [lindex $group 1] [lindex $group 0] "../?group_id=${group_id}" $ams_person_url $ams_org_url $member_count $level $mapped_p $default_p Index: openacs-4/packages/contacts/www/admin/permissions-user-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/permissions-user-add.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/admin/permissions-user-add.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/admin/permissions-user-add.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -8,7 +8,7 @@ object_id:integer } -set page_title "Add User" +set page_title "[_ contacts.Add_User]" -set context [list [list [export_vars -base permissions { object_id }] "Permissions"] $page_title] +set context [list [list [export_vars -base permissions { object_id }] "[_ contacts.Permissions]"] $page_title] Index: openacs-4/packages/contacts/www/admin/permissions.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/permissions.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/admin/permissions.tcl 18 May 2005 16:45:50 -0000 1.3 +++ openacs-4/packages/contacts/www/admin/permissions.tcl 7 Jun 2005 07:45:40 -0000 1.4 @@ -10,7 +10,7 @@ set object_id $group_id -set page_title "Permissions" +set page_title "[_ contacts.Permissions]" set context [list $page_title] Index: openacs-4/packages/contacts/www/admin/relationships.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/relationships.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/www/admin/relationships.tcl 21 May 2005 21:00:41 -0000 1.2 +++ openacs-4/packages/contacts/www/admin/relationships.tcl 7 Jun 2005 07:45:40 -0000 1.3 @@ -15,7 +15,7 @@ rel_types:multirow } -set title "Relationship types" +set title "[_ contacts.Relationship_types]" set context [list $title] set package_id [ad_conn package_id] @@ -36,22 +36,22 @@ } { switch $primary_object_type { - party { set primary_type_pretty "Person or Organization" } - organization { set primary_type_pretty "Organization" } - person { set primary_type_pretty "Person" } + party { set primary_type_pretty "[_ contacts.lt_Person_or_Organizatio]" } + organization { set primary_type_pretty "[_ contacts.Organization]" } + person { set primary_type_pretty "[_ contacts.Person]" } } switch $secondary_object_type { - party { set secondary_type_pretty "Person or Organization" } - organization { set secondary_type_pretty "Organization" } - person { set secondary_type_pretty "Person" } + party { set secondary_type_pretty "[_ contacts.lt_Person_or_Organizatio]" } + organization { set secondary_type_pretty "[_ contacts.Organization]" } + person { set secondary_type_pretty "[_ contacts.Person]" } } set rel_form_url [ams::list::url \ -package_key "contacts" \ -object_type ${rel_type} \ -list_name ${package_id} \ -pretty_name ${pretty_name} \ -return_url ${url} \ - -return_url_label "Return to \"$title\""] + -return_url_label "[_ contacts.Return_to_title]"] } ad_return_template Index: openacs-4/packages/contacts/www/admin/roles.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/admin/roles.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/contacts/www/admin/roles.tcl 18 May 2005 16:45:50 -0000 1.1 +++ openacs-4/packages/contacts/www/admin/roles.tcl 7 Jun 2005 07:45:40 -0000 1.2 @@ -14,7 +14,7 @@ } -set context [list [list "relationships" "Relationship types"] "Roles"] +set context [list [list "relationships" "[_ contacts.Relationship_types]"] "[_ contacts.Roles]"] db_multirow roles select_roles { select r.role, r.pretty_name, coalesce(num1.number_rels,0) + coalesce(num2.number_rels,0) as number_rel_types