Forum .LRN Q&A: Rendering Parameterized Locale Messages

Hello,

I am facing some troubles when rendering locale messages stored in parameters.
i.e. : Parameter class_instances_pretty_nameclass_instances_pretty_name : <span>#</span>dotlrn.class_instances_pretty_name#

When this is rendered it is shown as <span>#</span>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?

Collapse
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 <span>#</span>package-key.message-key#

In ADP, calling @variable_name@ will result in the actual text (<span>#</span>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 <span>#</span>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.