R: multilanguage questionaire
"Luca Notari" <[email protected]> Mon, 6 Nov 2006 11:37:24 +0100
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <000501c7018f$8c68d4a0$6c01a8c0@evo01> |
I've made with success a multi language questionnaire using the
mechanism of including files.
I think you could separate the survey structure from the survey language
content (of course, question types must be the same)
This is what I've used:
<CUSTOM ESCAPED=3D"no">
<!--
{\
$session->setValue ("QuestionCode" , "QuestionCaption" );
...
...
\}
-->
</CUSTOM>
Above custom tag contains the whole questions and answers captions for a
language. So I named this file "english.stpl".
Each question is now a session variable.
And this is a piece of a question I put in a page:
{@english.stpl@}
<CHOICE MUSTANSWER=3D"yes" NAME=3D"question" CAPTION=3D"{_QuestionCode_}"=
>
<CHOICEELEMENT CAPTION=3D"{_QuestionCode1_}" VALUE=3D"1" />
<CHOICEELEMENT CAPTION=3D"{_QuestionCode2_}" VALUE=3D"2" />
<CHOICEELEMENT CAPTION=3D"{_QuestionCode3_}" VALUE=3D"3" />
<CHOICEELEMENT CAPTION=3D"{_QuestionCode4_}" VALUE=3D"4" />
</CHOICE>
<ROUTE CONTINUE=3D"next.survey" />
I've putted the include file instruction only in the first page
displayed .
Note that there is (I've found it) a little problem with SPSS export: if
you want to export labels, now the label name is {_questionCode_}, so
you have to prepare labels in another way.
Hope this is useful for you,
Luca=20
-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Clemens
Gruber
Inviato: luned=EC 6 novembre 2006 11.04
A: [email protected]
Oggetto: survey-discussion-list: multilanguage questionaire
Hello,
has somebody build a multi-language questionnaire with mod_survey? We've
got the same questions in english and french, but you can't say on the=20
last page store this data all in one file. You have allways=20
survey-en.survey or survey-fr.survey. So the data retrieval needs two=20
different pages, is this right?
Clemens
--=20
Clemens Gruber (Dipl.-Psychologe)
Zentrum zur Unterstuetzung virtueller Lehre
der Universitaet Osnabrueck (virtUOS)
Schloss-Strasse 9, Raum E07, D-49074 Osnabrueck
E-Mail: [email protected]
URL: http://www.virtuos.uni-osnabrueck.de
Telefon: (05 41) 969-6505 oder
(05 41) 969-6501 (Sekretariat)
Fax: (05 41) 969-16505
Skickat av Clemens Gruber <[email protected]>
till survey-discussion
--=20
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.18/506 - Release Date:
30/10/2006
=20
--=20
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.18/506 - Release Date:
30/10/2006
=20
Skickat av "Luca Notari" <[email protected]>
till survey-discussion