Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: multilanguage questionaire: msg#00001

apache.mod-survey.general

Subject: Re: multilanguage questionaire

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: cgruber@xxxxxxxxxxxxxxxxx
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 <cgruber@xxxxxxxxxxxxxxxxx>
till survey-discussion

Skickat av Joel Palmius <joel.palmius@xxxxxxx>
till survey-discussion



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation