Index: openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl,v diff -u -N -r1.5 -r1.6 --- openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl 21 Oct 2002 11:39:12 -0000 1.5 +++ openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl 23 Oct 2002 11:48:17 -0000 1.6 @@ -303,7 +303,7 @@ and returns the same string but with the message keys (and their surrounding hash marks) replaced with the corresponding value in the message catalog. Message lookup is done with the locale of the request. If message lookup fails for a certain key - then that key is not replaced. + then a translation missing message will be used instead. @author Peter marklund (peter@collaboraid.biz) } { @@ -317,12 +317,9 @@ set message_key [string range $replacement_string 1 [expr [string length $replacement_string] - 2]] # Attempt a message lookup - set message_value [_ [ad_locale request locale] $message_key "not_found"] + set message_value [_ [ad_locale request locale] $message_key] - # Do substitution if message lookup succeeded - if { ![string equal $message_value "not_found"] } { - regsub $replacement_string $subst_string $message_value subst_string - } + regsub $replacement_string $subst_string $message_value subst_string } return $subst_string