Re: R: multilanguage questionaire
Clemens Gruber <[email protected]> Mon, 06 Nov 2006 12:21:21 +0100
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Organization | virtUOS / Uni Osnabrueck |
| Message-ID | <[email protected]> |
Hi Luca, hi Joel,
by the second approach form you, Joel (One brancing lines which=20
converges in the end) is the "problem" - or not nice thing - that I have=20
to write such things like button text or message in both languages on=20
the last page. There is no mechanism like "if" to put out different=20
questions or text and the text on the button can I specify only once,=20
hmm. If I use Perl I have to rebuilt all questions in HTML.
To use the include mechanism sounds good, Luca. Do you use the same last=20
page for both languages?
Clemens
Luca Notari wrote:
>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
>
Skickat av Clemens Gruber <[email protected]>
till survey-discussion