Index: openacs-4/packages/ams/www/attribute-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ams/www/attribute-add-2.tcl,v
diff -u -r1.1 -r1.1.2.1
--- openacs-4/packages/ams/www/attribute-add-2.tcl 30 Oct 2004 00:23:54 -0000 1.1
+++ openacs-4/packages/ams/www/attribute-add-2.tcl 30 Nov 2005 16:21:53 -0000 1.1.2.1
@@ -16,8 +16,8 @@
acs_object_type::get -object_type $object_type -array "object_info"
-set title "Define Options"
-set context [list [list objects Objects] [list "object?object_type=$object_type" $object_info(pretty_name)] [list "attribute-add?object_type=$object_type" "Add Attribute"] $title]
+set title "[_ ams.Define_Options]"
+set context [list [list objects Objects] [list "object?object_type=$object_type" $object_info(pretty_name)] [list "attribute-add?object_type=$object_type" "[_ ams.Add_Attribute]"] $title]
db_1row select_widget_pretty_and_storage_type { select storage_type from ams_widgets where widget_name = :widget_name }
@@ -28,10 +28,10 @@
if { [exists_and_not_null list_id] } {
set return_url "list-attributes-map?[export_vars -url {ams_attribute_id list_id}]"
- set user_message "AMS Attribute $pretty_name Created and Mapped."
+ set user_message "[_ ams.lt_AMS_Attribute_a_hrefa]"
} else {
set return_url "object?[export_vars -url {object_type}]"
- set user_message "AMS Attribute $pretty_name Created."
+ set user_message "[_ ams.lt_AMS_Attribute_a_hrefa_1]"
}
@@ -59,15 +59,15 @@
{ams_attribute_id:key}
{list_id:integer(hidden)}
{object_type:text(hidden)}
- {widget_name:text(inform) {label "Widget"}}
- {attribute_name:text(inform) {label "Attribute Name"}}
- {pretty_name:text(inform) {label "Pretty Name"}}
- {pretty_plural:text(inform) {label "Pretty Plural"}}
+ {widget_name:text(inform) {label "[_ ams.Widget_1]"}}
+ {attribute_name:text(inform) {label "[_ ams.Attribute_Name]"}}
+ {pretty_name:text(inform) {label "[_ ams.Pretty_Name_1]"}}
+ {pretty_plural:text(inform) {label "[_ ams.Pretty_Plural_1]"}}
}
if { [exists_and_not_null description] } {
ad_form -extend -name attribute_form -form {
- {description:text(inform) {label "Description"}}
+ {description:text(inform) {label "[_ ams.Description]"}}
}
} else {
ad_form -extend -name attribute_form -form {
@@ -76,15 +76,15 @@
}
ad_form -extend -name attribute_form -form {
- {option1:text {label "Option 1"} {html {size 50}}}
- {option2:text,optional {label "Option 2"} {html {size 50}}}
- {option3:text,optional {label "Option 3"} {html {size 50}}}
- {option4:text,optional {label "Option 4"} {html {size 50}}}
- {option5:text,optional {label "Option 5"} {html {size 50}}}
- {option6:text,optional {label "Option 6"} {html {size 50}}}
- {option7:text,optional {label "Option 7"} {html {size 50}}}
- {option8:text,optional {label "Option 8"} {html {size 50}}}
- {option9:text,optional {label "Option 9"} {html {size 50}} {help_text {If you need to add more options you will be able to do so by editing this attributes details}}}
+ {option1:text {label "[_ ams.Option_1]"} {html {size 50}}}
+ {option2:text,optional {label "[_ ams.Option_2]"} {html {size 50}}}
+ {option3:text,optional {label "[_ ams.Option_3]" } {html {size 50}}}
+ {option4:text,optional {label "[_ ams.Option_4]" } {html {size 50}}}
+ {option5:text,optional {label "[_ ams.Option_5]"} {html {size 50}}}
+ {option6:text,optional {label "[_ ams.Option_6]"} {html {size 50}}}
+ {option7:text,optional {label "[_ ams.Option_7]"} {html {size 50}}}
+ {option8:text,optional {label "[_ ams.Option_8]"} {html {size 50}}}
+ {option9:text,optional {label "[_ ams.Option_9]"} {html {size 50}} {help_text {If you need to add more options you will be able to do so by editing this attributes details}}}
} -new_request {
} -edit_request {
} -validate {