Index: openacs-4/www/blank-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/www/blank-master.tcl,v diff -u -r1.57.2.4 -r1.57.2.5 --- openacs-4/www/blank-master.tcl 13 Jul 2023 13:19:30 -0000 1.57.2.4 +++ openacs-4/www/blank-master.tcl 2 Sep 2024 11:22:48 -0000 1.57.2.5 @@ -204,16 +204,23 @@ # -content "text/javascript" \ # -http_equiv "Content-Script-Type" - -# Determine if we should be displaying the translation UI # -if {[lang::util::translator_mode_p]} { +# Determine if we should be displaying the translation UI. +# +# We just do this when the developer support is active, but this does +# not have to be this way. By showing the translator mode only for ds, +# we save for large sites a large number of client properties to be +# set via "lang::util::translator_mode_p" and +# "ad_get_client_property". +# +set ds_active [expr {[namespace which ::ds_show_p] ne {} && [::ds_show_p]}] +if {$ds_active && [lang::util::translator_mode_p]} { template::add_footer -src "/packages/acs-lang/lib/messages-to-translate" } # Determine if developer support is installed and enabled # -if {[namespace which ::ds_show_p] ne {} && [ds_show_p]} { +if {$ds_active} { template::head::add_css \ -href "/resources/acs-developer-support/acs-developer-support.css" \ -media "all"