Index: openacs-4/packages/static-portlet/catalog/static-portlet.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/catalog/static-portlet.en_US.ISO-8859-1.xml,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/static-portlet/catalog/static-portlet.en_US.ISO-8859-1.xml 23 Oct 2002 12:33:54 -0000 1.1
+++ openacs-4/packages/static-portlet/catalog/static-portlet.en_US.ISO-8859-1.xml 10 Nov 2002 17:44:39 -0000 1.2
@@ -1,3 +1,15 @@
+
+
+
+ Content
+ Control Panel
+ Edit content element
+ Name
+ New
Custom Portlet Administration
+ Delete %element_pretty_name% %pretty_name%
+ Editing %element_pretty_name% %pretty_name%
+ Use this form to create a new %element_pretty_name%. The %element_pretty_name% will be created and automatically placed on the first page of %portal_name% portal. Goto the %control_panel_text% and select Customize Layout to move the this %element_pretty_name%.
+ <strong>Note</strong>: You can use plain text or HTML in the Content area.
Index: openacs-4/packages/static-portlet/www/element-new.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/Attic/element-new.adp,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/static-portlet/www/element-new.adp 16 Oct 2002 15:41:55 -0000 1.5
+++ openacs-4/packages/static-portlet/www/element-new.adp 10 Nov 2002 17:44:39 -0000 1.6
@@ -23,15 +23,11 @@
@community_id@
-Use this form to create a new @element_pretty_name@. The @element_pretty_name@ will be created and automatically placed on the first page of @portal_name@ portal. Goto the @control_panel_text@ and select Customize Layout to move the this @element_pretty_name@.
+#static-portlet.lt_Use_this_form_to_crea#
-Note: You can use plain text or HTML in the Content area.
+#static-portlet.lt_strongNotestrong_You_#
-
-
-
-
Index: openacs-4/packages/static-portlet/www/element-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/Attic/element-new.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/static-portlet/www/element-new.tcl 16 Oct 2002 15:41:55 -0000 1.10
+++ openacs-4/packages/static-portlet/www/element-new.tcl 10 Nov 2002 17:44:39 -0000 1.11
@@ -28,29 +28,29 @@
title:onevalue
}
-set element_pretty_name [ad_parameter static_admin_portlet_element_pretty_name static-portlet "Custom Portlet"]
+set element_pretty_name [ad_parameter -localize static_admin_portlet_element_pretty_name static-portlet]
-set title "New $element_pretty_name"
+set title "[_ static-portlet.New] $element_pretty_name"
#these are set for display and instructions.
set community_id $package_id
set portal_name [portal::get_name $portal_id]
if {![info exists control_panel_text]} {
- set control_panel_text "Control Panel"
+ set control_panel_text "[_ static-portlet.Control_Panel]"
}
form create new_static_element
element create new_static_element pretty_name \
- -label "Name" \
+ -label "[_ static-portlet.Name]" \
-datatype text \
-widget text \
-html {size 60}
element create new_static_element content \
- -label "Content" \
+ -label "[_ static-portlet.Content]" \
-datatype text \
-widget textarea \
-html {rows 15 cols 80 wrap soft}
@@ -94,14 +94,3 @@
ad_returnredirect $referer
ad_script_abort
}
-
-
-
-
-
-
-
-
-
-
-
Index: openacs-4/packages/static-portlet/www/element.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/element.adp,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/static-portlet/www/element.adp 9 Aug 2002 18:39:33 -0000 1.6
+++ openacs-4/packages/static-portlet/www/element.adp 10 Nov 2002 17:44:39 -0000 1.7
@@ -21,16 +21,16 @@
@title@
-Editing @element_pretty_name@ @pretty_name@
+#static-portlet.lt_Editing_element_prett#
-[Delete @element_pretty_name@ @pretty_name@]
+[#static-portlet.lt_Delete_element_pretty#]
-Note: You can use plain text or HTML in the Content area.
+#static-portlet.lt_strongNotestrong_You_#
Index: openacs-4/packages/static-portlet/www/element.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/element.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/static-portlet/www/element.tcl 16 Oct 2002 15:41:55 -0000 1.8
+++ openacs-4/packages/static-portlet/www/element.tcl 10 Nov 2002 17:44:39 -0000 1.9
@@ -27,8 +27,8 @@
title:onevalue
}
-set title "Edit content element"
-set element_pretty_name [ad_parameter static_admin_portlet_element_pretty_name static-portlet]
+set title "[_ static-portlet.Edit_content_element]"
+set element_pretty_name [ad_parameter -localize static_admin_portlet_element_pretty_name static-portlet]
db_1row get_content_element {
select content, pretty_name
@@ -39,14 +39,14 @@
form create static_element
element create static_element pretty_name \
- -label "Name" \
+ -label "[_ static-portlet.Name]" \
-datatype text \
-widget text \
-html {size 60} \
-value $pretty_name
element create static_element content \
- -label "Content" \
+ -label "[_ static-portlet.Content]" \
-datatype text \
-widget textarea \
-html {rows 15 cols 80 wrap soft} \
Index: openacs-4/packages/static-portlet/www/static-admin-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-admin-portlet.adp,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/static-portlet/www/static-admin-portlet.adp 9 Aug 2002 18:39:33 -0000 1.11
+++ openacs-4/packages/static-portlet/www/static-admin-portlet.adp 10 Nov 2002 17:44:39 -0000 1.12
@@ -26,6 +26,6 @@
- New @element_pretty_name@
+ #static-portlet.New# @element_pretty_name@
Index: openacs-4/packages/static-portlet/www/static-admin-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-admin-portlet.tcl,v
diff -u -r1.13 -r1.14
--- openacs-4/packages/static-portlet/www/static-admin-portlet.tcl 16 Oct 2002 15:41:55 -0000 1.13
+++ openacs-4/packages/static-portlet/www/static-admin-portlet.tcl 10 Nov 2002 17:44:39 -0000 1.14
@@ -43,15 +43,17 @@
set referer [ad_conn url]
}
-set element_pretty_name [ad_parameter static_admin_portlet_element_pretty_name static-portlet "Custom Portlet"]
-set element_pretty_plural [ad_parameter static_admin_portlet_element_pretty_plural static-portlet "Custom Portlets"]
+set element_pretty_name [ad_parameter -localize static_admin_portlet_element_pretty_name static-portlet]
+set element_pretty_plural [ad_parameter -localize static_admin_portlet_element_pretty_plural static-portlet]
ns_log notice "package_id = $package_id"
db_multirow content select_content {
select content_id,
pretty_name
from static_portal_content
where package_id = :package_id
+} {
+ set pretty_name [lang::util::localize $pretty_name]
}