Home
The Toolkit for Online Communities
15938 Community Members, 0 members online, 2304 visitors today
Log In Register

Forum .LRN Q&A: Rendering Parameterized Locale Messages

OpenACS Home : Forums : .LRN Q&A : Rendering Parameterized Locale Messages

Icon of Envelope Request notifications

+
Posted by Samer Abukhait on
Hello,

I am facing some troubles when rendering locale messages stored in parameters.
i.e. : Parameter class_instances_pretty_nameclass_instances_pretty_name : MESSAGE KEY MISSING: 'dotlrn.class_instances_pretty_name'

When this is rendered it is shown as MESSAGE KEY MISSING: 'dotlrn.class_instances_pretty_name' and not Class (The actual Message)

I don’t guess this is the default behavior?

Is this a known problem?

+
Posted by Samer Abukhait on
Actually, not only Parameterized Locale Messages, but any locale stored in a variable.

i.e.: In TCL: set variable_name MESSAGE KEY MISSING: 'package-key.message-key'

In ADP, calling @variable_name@ will result in the actual text (MESSAGE KEY MISSING: 'package-key.message-key' as it is) and not the Message of this message-key itself if it exists.

Is this the default behavior? I can't use MESSAGE KEY MISSING: 'package-key.message-key' format inside variables, database variables or in the system parameters?? Or there is a way to make the system resolves this.