Index: openacs-4/packages/acs-templating/tcl/acs-integration-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/acs-integration-procs.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/acs-templating/tcl/acs-integration-procs.tcl 25 Sep 2003 09:10:20 -0000 1.8
+++ openacs-4/packages/acs-templating/tcl/acs-integration-procs.tcl 30 Sep 2003 10:06:25 -0000 1.9
@@ -103,6 +103,59 @@
set parsed_template [template::adp_parse [file root [ad_conn file]] {}]
if {![empty_string_p $parsed_template]} {
+
+ #
+ # acs-lang translator mode
+ #
+
+ if { [lang::util::translator_mode_p] } {
+
+ # Attempt to move all message keys outside of tags
+ while { [regsub -all {(<[^>]*)(\x002\[\x001[^\x001]*\x001\]\x002)([^>]*>)} $parsed_template {\2\1\3} parsed_template] } {}
+
+ # Attempt to move all message keys outside of statements
+ regsub -all -nocase {(]*>)} $parsed_template {\2\1\3} parsed_template
+
+ while { [regsub -all -nocase {(