Forum OpenACS Development: Re: Strange message key missing error (not the usual one either)

Hmm, this is a fairly annoying side effect of internationalization.

Look at this code:

.tcl

set text1 "#abc1#"
set text2 "\#abc2\#"
set text3 "#abc3#"

.adp

@text1@
@text2@
@text3;noquote@

Result:

MESSAGE KEY MISSING: 'abc1' MESSAGE KEY MISSING: 'abc2' MESSAGE KEY MISSING: 'abc3'

So what this looks like is that all output has to filtered to ensure that it doesn't contain \#.*\#  or we have to fix this in the templating system somehow.

Do we really want our users to be able to access arbitrary message keys? It seems like a programmer shouldn't have to make sure all output doesn't have ## tags in it.

The @ tags are dealt with better:

.tcl

set text1 "@abc1@"
set text2 "\@abc2\@"
set text3 "@abc3@"

.adp

@text1@
@text2@
@text3;noquote@

Output:

@abc1@ @abc2@ @abc3@