Re: multilanguage questionaire

Joel Palmius <[email protected]> Mon, 6 Nov 2006 11:28:43 +0100 (CET)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
I can see three solutions:

* Two separate lines ending in two separate data files
* One brancing lines which converges in the end
* One non-branching line using perl to do language stuff

I guess you did the first already.. Here's some attempt at ASCII gfx:

   2a-3a-4a
  /        \
1          5
  \        /
   2b-3b-4b

* On page 1 you ask which language to use, route to 2a or 2b depending on 
answer

* On pages 2-4 you ask same questions but in different language, making 
sure that variable names are exactly the same

* On page 5 you say thank you in both languages and say please press this 
button to finally commit data


As an alternative, use a non-branching survey with perl stuff

1-2-3-4-5

* On page 1, ask about language
* On pages 2-5, use perl, something like:

..

<TEXT NAME="name" CAPTION="{&
   if($session->getValue("SUBMITTED_lang") eq "en")
   {
     print "What is your name";
   }
   else
   {
     print "Ok, my french suck big time";
   }
&} />

..

I didn't test this, but should work. Hope it helps.

   // Joel




On Mon, 6 Nov 2006, Clemens Gruber wrote:

> 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 last page 
> store this data all in one file. You have allways survey-en.survey or 
> survey-fr.survey. So the data retrieval needs two different pages, is this 
> right?
>
> Clemens
>
>
> -- 
> 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
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion