Including variables

"Luca Notari" <[email protected]> Mon, 23 Jan 2006 10:45:34 +0100
Newsgroups gmane.comp.apache.mod-survey.general
Organization The Marketing Lab
Message-ID <[email protected]>
Hi,
I need having some variables available including an external file that
contains them.

As an example, I have to do 2 surveys in 2 different languages, that are
identical in structure; the only thing that changes is the language; As for
the translation of mod_survey itself, the best thing (I think..) is to have
the right variable in the right language for the CAPTION element
(CAPTION=[variable_in_the_right_language]);

I've tried {@filename@}, expecting to have all variables defined in
[filename] available in my .survey file;
But the only result of parsing is visible when i put in a CUSTOM TAG;

I've defined a variable $myvar="text for my caption" in [filename], and
including in my .survey file with {@filename@}, but nothing works;
 
For example:
{@filename@}
<TEXT NAME="myname" CAPTION="{$myvar$}> $myvar not parsed;
<TEXT NAME="myname" CAPTION="{$myvar}> error;
<TEXT NAME="myname" CAPTION="{%myvar%}> $myvar not parsed;
<TEXT NAME="myname" CAPTION="{_myvar_}> $myvar not parsed;
<TEXT NAME="myname" CAPTION="{print $myvar }> security exception error;

How can I do?
Thanks,

Luca Notari
The Marketing Lab 
[email protected]

Skickat av "Luca Notari" <[email protected]>
till survey-discussion