Forum OpenACS Development: @@ and ##

Collapse
Posted by Samer Abukhait on
Can any body tell me which parsed first @@ or ## ?

I faced cases like
Folder <span>#</span>dotlrn-fs.Assignments# is empty
in a dotlrn installation and other cases that were parsed correctly.

Collapse
2: Re: @@ and ## (response to 1)
Posted by Andrei Popov on
## is message catalog lookup
@@ is a variable subst
Collapse
3: Re: @@ and ## (response to 1)
Posted by Samer Abukhait on
let's say the following:

X.tcl:

set variable hello
set somevar "<span>#</span>somemsg#"

X.adp:
@somevar@

shouldn't this be evaluated as the message in somemsg?

and if somemsg is provided as "%variable% there", shouldn't the final output be "hello there" ?

I faced some cases in dotLRN where the final message is not shown as it is supposed to be shown, like Folder <span>#</span>dotlrn-fs.Assignments# is empty

Why <span>#</span>dotlrn-fs.Assignments# is not rendered to it's message in catalog? providing it is correctly set in the catalog.