Index: openacs-4/packages/ams/tcl/ams-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/tcl/ams-procs.tcl,v diff -u -r1.47 -r1.48 --- openacs-4/packages/ams/tcl/ams-procs.tcl 7 Apr 2006 07:57:42 -0000 1.47 +++ openacs-4/packages/ams/tcl/ams-procs.tcl 25 Apr 2006 07:11:22 -0000 1.48 @@ -55,11 +55,14 @@ if { $attribute_id eq "" } { return "" } else { - set help_text [lang::util::localize "#acs-translations.ams_attribute_${attribute_id}_help_text#"] - if {[string match "MESSAGE KEY MISSING*" $help_text]} { - return "" + # in order to prevent numbers message key errors + # we check first if the message exists for the + # connected locale (the same locale lang::util::localize + # use + if { [lang::message::message_exists_p [ad_conn locale] "acs-translations.ams_attribute_${attribute_id}_help_text"] } { + return [lang::util::localize "#acs-translations.ams_attribute_${attribute_id}_help_text#"] } else { - return $help_text + return "" } } }