View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 06184 | Bug reports | Accessibility | public | 2012-06-09 01:45 | 2012-06-20 14:10 |
| Reporter | Assigned To | Mazi | |||
| Priority | normal | Severity | partial_block | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 1.92+ | ||||
| Summary | 06184: When going to survey linkI get this result "This survey does not yet have any questions and cannot be tested or completed." | ||||
| Description | When I go to the survey url on my localhost system I get the page with this error. "This survey does not yet have any questions and cannot be tested or completed." I can test the surveys from within the Limesurvey admin page and it works fine. and if I click on the URL Link on the page that details the completion of designing a survey I also get a good survey page. This is the case for two surveys I have created and made active. | ||||
| Steps To Reproduce | Create a survey and make active then paste url in a php webpage. The pad is accessed but with the result of "This survey does not yet have any questions and cannot be tested or completed." | ||||
| Tags | No tags attached. | ||||
| Attached Files | limesurvey_survey_92734.lss.xml (22,783 bytes)
<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurveyDocType>Survey</LimeSurveyDocType>
<DBVersion>155</DBVersion>
<languages>
<language>en</language>
</languages>
<answers>
<fields>
<fieldname>qid</fieldname>
<fieldname>code</fieldname>
<fieldname>answer</fieldname>
<fieldname>assessment_value</fieldname>
<fieldname>sortorder</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[3]]></qid>
<code><![CDATA[A1]]></code>
<answer><![CDATA[MS Windows]]></answer>
<assessment_value><![CDATA[0]]></assessment_value>
<sortorder><![CDATA[1]]></sortorder>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
</row>
<row>
<qid><![CDATA[3]]></qid>
<code><![CDATA[A2]]></code>
<answer><![CDATA[Apple OSX]]></answer>
<assessment_value><![CDATA[1]]></assessment_value>
<sortorder><![CDATA[2]]></sortorder>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
</row>
<row>
<qid><![CDATA[3]]></qid>
<code><![CDATA[A3]]></code>
<answer><![CDATA[Linux]]></answer>
<assessment_value><![CDATA[1]]></assessment_value>
<sortorder><![CDATA[3]]></sortorder>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
</row>
</rows>
</answers>
<groups>
<fields>
<fieldname>gid</fieldname>
<fieldname>sid</fieldname>
<fieldname>group_name</fieldname>
<fieldname>group_order</fieldname>
<fieldname>description</fieldname>
<fieldname>language</fieldname>
<fieldname>randomization_group</fieldname>
<fieldname>grelevance</fieldname>
</fields>
<rows>
<row>
<gid><![CDATA[1]]></gid>
<sid><![CDATA[92734]]></sid>
<group_name><![CDATA[First and Only Group]]></group_name>
<group_order><![CDATA[0]]></group_order>
<description><![CDATA[]]></description>
<language><![CDATA[en]]></language>
<randomization_group><![CDATA[]]></randomization_group>
<grelevance><![CDATA[]]></grelevance>
</row>
</rows>
</groups>
<questions>
<fields>
<fieldname>qid</fieldname>
<fieldname>parent_qid</fieldname>
<fieldname>sid</fieldname>
<fieldname>gid</fieldname>
<fieldname>type</fieldname>
<fieldname>title</fieldname>
<fieldname>question</fieldname>
<fieldname>preg</fieldname>
<fieldname>help</fieldname>
<fieldname>other</fieldname>
<fieldname>mandatory</fieldname>
<fieldname>question_order</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
<fieldname>same_default</fieldname>
<fieldname>relevance</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[1]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[92734]]></sid>
<gid><![CDATA[1]]></gid>
<type><![CDATA[Y]]></type>
<title><![CDATA[Q0001]]></title>
<question><![CDATA[Do you like taking surveys?]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[0]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[2]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[92734]]></sid>
<gid><![CDATA[1]]></gid>
<type><![CDATA[5]]></type>
<title><![CDATA[Q0002]]></title>
<question><![CDATA[<p>
How easy is it to understand how to take this survey?</p>
<p>
Where 1=Hard 5=Easy</p>
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[1]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[3]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[92734]]></sid>
<gid><![CDATA[1]]></gid>
<type><![CDATA[L]]></type>
<title><![CDATA[Q0003]]></title>
<question><![CDATA[What operating system is on your computer used for this survey?]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[2]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[4]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[92734]]></sid>
<gid><![CDATA[1]]></gid>
<type><![CDATA[Y]]></type>
<title><![CDATA[Q0004]]></title>
<question><![CDATA[Did everything function correctly while taking this survey?]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[3]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
</rows>
</questions>
<question_attributes>
<fields>
<fieldname>qid</fieldname>
<fieldname>attribute</fieldname>
<fieldname>value</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[hidden]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[hide_tip]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[page_break]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[public_statistics]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[random_group]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[1]]></qid>
<attribute><![CDATA[scale_export]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[hidden]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[hide_tip]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[page_break]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[public_statistics]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[random_group]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[2]]></qid>
<attribute><![CDATA[slider_rating]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[alphasort]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[array_filter]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[array_filter_exclude]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[display_columns]]></attribute>
<value><![CDATA[1]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[hidden]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[hide_tip]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[other_comment_mandatory]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[other_numbers_only]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[other_replace_text]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[page_break]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[public_statistics]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[random_group]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[random_order]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[3]]></qid>
<attribute><![CDATA[scale_export]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[hidden]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[hide_tip]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[page_break]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[public_statistics]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[random_group]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[4]]></qid>
<attribute><![CDATA[scale_export]]></attribute>
<value><![CDATA[0]]></value>
</row>
</rows>
</question_attributes>
<surveys>
<fields>
<fieldname>sid</fieldname>
<fieldname>admin</fieldname>
<fieldname>expires</fieldname>
<fieldname>startdate</fieldname>
<fieldname>adminemail</fieldname>
<fieldname>anonymized</fieldname>
<fieldname>faxto</fieldname>
<fieldname>format</fieldname>
<fieldname>savetimings</fieldname>
<fieldname>template</fieldname>
<fieldname>language</fieldname>
<fieldname>additional_languages</fieldname>
<fieldname>datestamp</fieldname>
<fieldname>usecookie</fieldname>
<fieldname>allowregister</fieldname>
<fieldname>allowsave</fieldname>
<fieldname>autonumber_start</fieldname>
<fieldname>autoredirect</fieldname>
<fieldname>allowprev</fieldname>
<fieldname>printanswers</fieldname>
<fieldname>ipaddr</fieldname>
<fieldname>refurl</fieldname>
<fieldname>publicstatistics</fieldname>
<fieldname>publicgraphs</fieldname>
<fieldname>listpublic</fieldname>
<fieldname>htmlemail</fieldname>
<fieldname>tokenanswerspersistence</fieldname>
<fieldname>assessments</fieldname>
<fieldname>usecaptcha</fieldname>
<fieldname>usetokens</fieldname>
<fieldname>bounce_email</fieldname>
<fieldname>attributedescriptions</fieldname>
<fieldname>emailresponseto</fieldname>
<fieldname>emailnotificationto</fieldname>
<fieldname>tokenlength</fieldname>
<fieldname>showxquestions</fieldname>
<fieldname>showgroupinfo</fieldname>
<fieldname>shownoanswer</fieldname>
<fieldname>showqnumcode</fieldname>
<fieldname>bouncetime</fieldname>
<fieldname>bounceprocessing</fieldname>
<fieldname>bounceaccounttype</fieldname>
<fieldname>bounceaccounthost</fieldname>
<fieldname>bounceaccountpass</fieldname>
<fieldname>bounceaccountencryption</fieldname>
<fieldname>bounceaccountuser</fieldname>
<fieldname>showwelcome</fieldname>
<fieldname>showprogress</fieldname>
<fieldname>allowjumps</fieldname>
<fieldname>navigationdelay</fieldname>
<fieldname>nokeyboard</fieldname>
<fieldname>alloweditaftercompletion</fieldname>
<fieldname>googleanalyticsstyle</fieldname>
<fieldname>googleanalyticsapikey</fieldname>
</fields>
<rows>
<row>
<sid><![CDATA[92734]]></sid>
<admin><![CDATA[Kevin ]]></admin>
<expires><![CDATA[2012-06-30 00:00:00]]></expires>
<startdate><![CDATA[2012-06-07 00:00:00]]></startdate>
<adminemail><![CDATA[your-email@example.net]]></adminemail>
<anonymized><![CDATA[N]]></anonymized>
<faxto><![CDATA[]]></faxto>
<format><![CDATA[A]]></format>
<savetimings><![CDATA[N]]></savetimings>
<template><![CDATA[eirenicon]]></template>
<language><![CDATA[en]]></language>
<additional_languages><![CDATA[]]></additional_languages>
<datestamp><![CDATA[N]]></datestamp>
<usecookie><![CDATA[N]]></usecookie>
<allowregister><![CDATA[N]]></allowregister>
<allowsave><![CDATA[Y]]></allowsave>
<autonumber_start><![CDATA[0]]></autonumber_start>
<autoredirect><![CDATA[N]]></autoredirect>
<allowprev><![CDATA[Y]]></allowprev>
<printanswers><![CDATA[N]]></printanswers>
<ipaddr><![CDATA[N]]></ipaddr>
<refurl><![CDATA[N]]></refurl>
<publicstatistics><![CDATA[Y]]></publicstatistics>
<publicgraphs><![CDATA[Y]]></publicgraphs>
<listpublic><![CDATA[Y]]></listpublic>
<htmlemail><![CDATA[Y]]></htmlemail>
<tokenanswerspersistence><![CDATA[N]]></tokenanswerspersistence>
<assessments><![CDATA[N]]></assessments>
<usecaptcha><![CDATA[N]]></usecaptcha>
<usetokens><![CDATA[N]]></usetokens>
<bounce_email><![CDATA[your-email@example.net]]></bounce_email>
<attributedescriptions><![CDATA[]]></attributedescriptions>
<emailresponseto><![CDATA[]]></emailresponseto>
<emailnotificationto><![CDATA[]]></emailnotificationto>
<tokenlength><![CDATA[15]]></tokenlength>
<showxquestions><![CDATA[Y]]></showxquestions>
<showgroupinfo><![CDATA[B]]></showgroupinfo>
<shownoanswer><![CDATA[Y]]></shownoanswer>
<showqnumcode><![CDATA[X]]></showqnumcode>
<bouncetime><![CDATA[]]></bouncetime>
<bounceprocessing><![CDATA[N]]></bounceprocessing>
<bounceaccounttype><![CDATA[]]></bounceaccounttype>
<bounceaccounthost><![CDATA[]]></bounceaccounthost>
<bounceaccountpass><![CDATA[]]></bounceaccountpass>
<bounceaccountencryption><![CDATA[]]></bounceaccountencryption>
<bounceaccountuser><![CDATA[]]></bounceaccountuser>
<showwelcome><![CDATA[Y]]></showwelcome>
<showprogress><![CDATA[Y]]></showprogress>
<allowjumps><![CDATA[N]]></allowjumps>
<navigationdelay><![CDATA[0]]></navigationdelay>
<nokeyboard><![CDATA[Y]]></nokeyboard>
<alloweditaftercompletion><![CDATA[N]]></alloweditaftercompletion>
<googleanalyticsstyle><![CDATA[0]]></googleanalyticsstyle>
<googleanalyticsapikey><![CDATA[]]></googleanalyticsapikey>
</row>
</rows>
</surveys>
<surveys_languagesettings>
<fields>
<fieldname>surveyls_survey_id</fieldname>
<fieldname>surveyls_language</fieldname>
<fieldname>surveyls_title</fieldname>
<fieldname>surveyls_description</fieldname>
<fieldname>surveyls_welcometext</fieldname>
<fieldname>surveyls_endtext</fieldname>
<fieldname>surveyls_url</fieldname>
<fieldname>surveyls_urldescription</fieldname>
<fieldname>surveyls_email_invite_subj</fieldname>
<fieldname>surveyls_email_invite</fieldname>
<fieldname>surveyls_email_remind_subj</fieldname>
<fieldname>surveyls_email_remind</fieldname>
<fieldname>surveyls_email_register_subj</fieldname>
<fieldname>surveyls_email_register</fieldname>
<fieldname>surveyls_email_confirm_subj</fieldname>
<fieldname>surveyls_email_confirm</fieldname>
<fieldname>surveyls_dateformat</fieldname>
<fieldname>email_admin_notification_subj</fieldname>
<fieldname>email_admin_notification</fieldname>
<fieldname>email_admin_responses_subj</fieldname>
<fieldname>email_admin_responses</fieldname>
<fieldname>surveyls_numberformat</fieldname>
</fields>
<rows>
<row>
<surveyls_survey_id><![CDATA[92734]]></surveyls_survey_id>
<surveyls_language><![CDATA[en]]></surveyls_language>
<surveyls_title><![CDATA[My First Test Survey]]></surveyls_title>
<surveyls_description><![CDATA[This survey is to test the functionality of Lime Survey]]></surveyls_description>
<surveyls_welcometext><![CDATA[Welcome to my first test survey]]></surveyls_welcometext>
<surveyls_endtext><![CDATA[Thank you for taking this survey]]></surveyls_endtext>
<surveyls_url><![CDATA[http://192.168.0.112]]></surveyls_url>
<surveyls_urldescription><![CDATA[]]></surveyls_urldescription>
<surveyls_email_invite_subj><![CDATA[Invitation to participate in a survey]]></surveyls_email_invite_subj>
<surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br /><br />you have been invited to participate in a survey.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}]]></surveyls_email_invite>
<surveyls_email_remind_subj><![CDATA[Reminder to participate in a survey]]></surveyls_email_remind_subj>
<surveyls_email_remind><![CDATA[Dear {FIRSTNAME},<br /><br />Recently we invited you to participate in a survey.<br /><br />We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}]]></surveyls_email_remind>
<surveyls_email_register_subj><![CDATA[Survey registration confirmation]]></surveyls_email_register_subj>
<surveyls_email_register><![CDATA[Dear {FIRSTNAME},<br /><br />You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br /><br />To complete this survey, click on the following URL:<br /><br />{SURVEYURL}<br /><br />If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]></surveyls_email_register>
<surveyls_email_confirm_subj><![CDATA[Confirmation of your participation in our survey]]></surveyls_email_confirm_subj>
<surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br /><br />this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br /><br />If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br /><br />Sincerely,<br /><br />{ADMINNAME}]]></surveyls_email_confirm>
<surveyls_dateformat><![CDATA[1]]></surveyls_dateformat>
<email_admin_notification_subj><![CDATA[Response submission for survey {SURVEYNAME}]]></email_admin_notification_subj>
<email_admin_notification><![CDATA[Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}]]></email_admin_notification>
<email_admin_responses_subj><![CDATA[Response submission for survey {SURVEYNAME} with results]]></email_admin_responses_subj>
<email_admin_responses><![CDATA[<style type="text/css">
.printouttable {
margin:1em auto;
}
.printouttable th {
text-align: center;
}
.printouttable td {
border-color: #ddf #ddf #ddf #ddf;
border-style: solid;
border-width: 1px;
padding:0.1em 1em 0.1em 0.5em;
}
.printouttable td:first-child {
font-weight: 700;
text-align: right;
padding-right: 5px;
padding-left: 5px;
}
.printouttable .printanswersquestion td{
background-color:#F7F8FF;
}
.printouttable .printanswersquestionhead td{
text-align: left;
background-color:#ddf;
}
.printouttable .printanswersgroup td{
text-align: center;
font-weight:bold;
padding-top:1em;
}
</style>Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}<br /><br /><br />The following answers were given by the participant:<br />{ANSWERTABLE}]]></email_admin_responses>
<surveyls_numberformat><![CDATA[0]]></surveyls_numberformat>
</row>
</rows>
</surveys_languagesettings>
</document>
surveytranslator.php (26,206 bytes)
<?php
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: surveytranslator.php 11664 2011-12-16 05:19:42Z tmswhite $
*/
/*
* Internationalization and Localization utilities
*
* @package Classes
* @subpackage Core
*/
/**
* Returns all available dateformats in a structured aray
* If $format is given only the particual dateformat will be returned
*
* @param $format integer
* @returns array
*
*/
function getDateFormatData($format=0)
{
$dateformats= array(
1=> array ('phpdate' => 'd.m.Y', 'jsdate' => 'dd.mm.yy', 'dateformat' => 'dd.mm.yyyy'),
2=> array ('phpdate' => 'd-m-Y', 'jsdate' => 'dd-mm-yy', 'dateformat' => 'dd-mm-yyyy'),
5=> array ('phpdate' => 'd/m/Y', 'jsdate' => 'dd/mm/yy', 'dateformat' => 'dd/mm/yyyy'),
3=> array ('phpdate' => 'Y.m.d', 'jsdate' => 'yy.mm.dd', 'dateformat' => 'yyyy.mm.dd'),
6=> array ('phpdate' => 'Y-m-d', 'jsdate' => 'yy-mm-dd', 'dateformat' => 'yyyy-mm-dd'),
7=> array ('phpdate' => 'Y/m/d', 'jsdate' => 'yy/mm/dd', 'dateformat' => 'yyyy/mm/dd'),
4=> array ('phpdate' => 'j.n.Y', 'jsdate' => 'd.m.yy', 'dateformat' => 'd.m.yyyy'),
12=>array ('phpdate' => 'j-n-Y', 'jsdate' => 'd-m-yy', 'dateformat' => 'd-m-yyyy'),
8=> array ('phpdate' => 'j/n/Y', 'jsdate' => 'd/m/yy', 'dateformat' => 'd/m/yyyy'),
9=> array ('phpdate' => 'm-d-Y', 'jsdate' => 'mm-dd-yy', 'dateformat' => 'mm-dd-yyyy'),
10=>array ('phpdate' => 'm.d.Y', 'jsdate' => 'mm.dd.yy', 'dateformat' => 'mm.dd.yyyy'),
11=>array ('phpdate' => 'm/d/Y', 'jsdate' => 'mm/dd/yy', 'dateformat' => 'mm/dd/yyyy')
);
if ($format >0)
{
return $dateformats[$format];
}
else
return $dateformats;
}
/**
* Returns avaliable formats for Radix Points (Decimal Seperators) or returns
* radix point info about a specific format.
*
* @param int $format Format ID/Number [optional]
*/
function getRadixPointData($format=-1)
{
global $clang;
$aRadixFormats = array (
0=>array('seperator'=> '.', 'desc'=> $clang->gT('Dot (.)')),
1=>array('seperator'=> ',', 'desc'=> $clang->gT('Comma (,)'))
);
if ($format >= 0)
return $aRadixFormats[$format];
else
return $aRadixFormats;
}
function getLanguageCodefromLanguage($languagetosearch)
{
$detaillanguages = getLanguageData();
foreach ($detaillanguages as $key2=>$languagename)
{
if ($languagetosearch==$languagename['description'])
{
return $key2;
}
}
// else return default en code
return "en";
}
function getLanguageNameFromCode($codetosearch, $withnative=true)
{
$detaillanguages = getLanguageData();
if (isset($detaillanguages[$codetosearch]['description']))
{
if ($withnative) {
return $detaillanguages[$codetosearch]['description'].' - '.$detaillanguages[$codetosearch]['nativedescription'];
}
else { return $detaillanguages[$codetosearch]['description'];}
}
else
// else return default en code
return false;
}
function getLanguageRTL($codetosearch)
{
$detaillanguages = getLanguageData();
if (isset($detaillanguages[$codetosearch]['rtl']))
{
return $detaillanguages[$codetosearch]['rtl'];
}
else
{
return false;
}
}
/**
* Returns the locale settings for a certain language code
*
* @param string $codetosearch
* @return array Array with locale details
*
*/
function getLanguageDetails($codetosearch)
{
$detaillanguages = getLanguageData();
if (isset($detaillanguages[$codetosearch]))
{
return $detaillanguages[$codetosearch];
}
else
{
return $detaillanguages['en'];
}
}
function getLanguageData($orderbynative=false) {
global $clang;
static $supportedLanguages;
static $result = array();
if (isset($result[$orderbynative])) return $result[$orderbynative];
if (!isset($supportedLanguages)) {
// Afrikaans
$supportedLanguages['af']['description'] = $clang->gT('Afrikaans');
$supportedLanguages['af']['nativedescription'] = 'Afrikaans';
$supportedLanguages['af']['rtl'] = false;
$supportedLanguages['af']['dateformat'] = 2;
$supportedLanguages['af']['radixpoint'] = 1;
// Amharic
$supportedLanguages['am']['description'] = $clang->gT('Amharic');
$supportedLanguages['am']['nativedescription'] = 'አማርኛ';
$supportedLanguages['am']['rtl'] = false;
$supportedLanguages['am']['dateformat'] = 2;
$supportedLanguages['am']['radixpoint'] = 1;
// Albanian
$supportedLanguages['sq']['description'] = $clang->gT('Albanian');
$supportedLanguages['sq']['nativedescription'] = 'Shqipe';
$supportedLanguages['sq']['rtl'] = false;
$supportedLanguages['sq']['dateformat'] = 1;
$supportedLanguages['sq']['radixpoint'] = 1;
// Arabic
$supportedLanguages['ar']['description'] = $clang->gT('Arabic');
$supportedLanguages['ar']['nativedescription'] = 'عَرَبيْ';
$supportedLanguages['ar']['rtl'] = true;
$supportedLanguages['ar']['dateformat'] = 2;
$supportedLanguages['ar']['radixpoint'] = 0;
// Basque
$supportedLanguages['eu']['description'] = $clang->gT('Basque');
$supportedLanguages['eu']['nativedescription'] = 'Euskara';
$supportedLanguages['eu']['rtl'] = false;
$supportedLanguages['eu']['dateformat'] = 3;
$supportedLanguages['eu']['radixpoint'] = 1;
// Belarusian
$supportedLanguages['be']['description'] = $clang->gT('Belarusian');
$supportedLanguages['be']['nativedescription'] = 'Беларускі';
$supportedLanguages['be']['rtl'] = false;
$supportedLanguages['be']['dateformat'] = 1;
$supportedLanguages['be']['radixpoint'] = 1;
// Bosnian
$supportedLanguages['bs']['description'] = $clang->gT('Bosnian');
$supportedLanguages['bs']['nativedescription'] = 'Bosanski';
$supportedLanguages['bs']['rtl'] = false;
$supportedLanguages['bs']['dateformat'] = 4;
$supportedLanguages['bs']['radixpoint'] = 0;
// Bulgarian
$supportedLanguages['bg']['description'] = $clang->gT('Bulgarian');
$supportedLanguages['bg']['nativedescription'] = 'Български';
$supportedLanguages['bg']['rtl'] = false;
$supportedLanguages['bg']['dateformat'] = 1;
$supportedLanguages['bg']['radixpoint'] = 0;
// Catalan
$supportedLanguages['ca']['description'] = $clang->gT('Catalan');
$supportedLanguages['ca']['nativedescription'] = 'Catalά';
$supportedLanguages['ca']['rtl'] = false;
$supportedLanguages['ca']['dateformat'] = 1;
$supportedLanguages['ca']['radixpoint'] = 1;
// Welsh
$supportedLanguages['cy']['description'] = $clang->gT('Welsh');
$supportedLanguages['cy']['nativedescription'] = 'Cymraeg';
$supportedLanguages['cy']['rtl'] = false;
$supportedLanguages['cy']['dateformat'] = 5;
$supportedLanguages['cy']['radixpoint'] = 0;
// Chinese (Simplified)
$supportedLanguages['zh-Hans']['description'] = $clang->gT('Chinese (Simplified)');
$supportedLanguages['zh-Hans']['nativedescription'] = '简体中文';
$supportedLanguages['zh-Hans']['rtl'] = false;
$supportedLanguages['zh-Hans']['dateformat'] = 6;
$supportedLanguages['zh-Hans']['radixpoint'] = 0;
// Chinese (Traditional - Hong Kong)
$supportedLanguages['zh-Hant-HK']['description'] = $clang->gT('Chinese (Traditional - Hong Kong)');
$supportedLanguages['zh-Hant-HK']['nativedescription'] = '繁體中文語系';
$supportedLanguages['zh-Hant-HK']['rtl'] = false;
$supportedLanguages['zh-Hant-HK']['dateformat'] = 6;
$supportedLanguages['zh-Hant-HK']['radixpoint'] = 0;
// Chinese (Traditional - Taiwan)
$supportedLanguages['zh-Hant-TW']['description'] = $clang->gT('Chinese (Traditional - Taiwan)');
$supportedLanguages['zh-Hant-TW']['nativedescription'] = 'Chinese (Traditional - Taiwan)';
$supportedLanguages['zh-Hant-TW']['rtl'] = false;
$supportedLanguages['zh-Hant-TW']['dateformat'] = 6;
$supportedLanguages['zh-Hant-TW']['radixpoint'] = 0;
// Croatian
$supportedLanguages['hr']['description'] = $clang->gT('Croatian');
$supportedLanguages['hr']['nativedescription'] = 'Hrvatski';
$supportedLanguages['hr']['rtl'] = false;
$supportedLanguages['hr']['dateformat'] = 4;
$supportedLanguages['hr']['radixpoint'] = 1;
// Czech
$supportedLanguages['cs']['description'] = $clang->gT('Czech');
$supportedLanguages['cs']['nativedescription'] = 'Česky';
$supportedLanguages['cs']['rtl'] = false;
$supportedLanguages['cs']['dateformat'] = 4;
$supportedLanguages['cs']['radixpoint'] = 1;
// Danish
$supportedLanguages['da']['description'] = $clang->gT('Danish');
$supportedLanguages['da']['nativedescription'] = 'Dansk';
$supportedLanguages['da']['rtl'] = false;
$supportedLanguages['da']['dateformat'] = 2;
$supportedLanguages['da']['radixpoint'] = 1;
// Dutch
$supportedLanguages['nl']['description'] = $clang->gT('Dutch');
$supportedLanguages['nl']['nativedescription'] = 'Nederlands';
$supportedLanguages['nl']['rtl'] = false;
$supportedLanguages['nl']['dateformat'] = 2;
$supportedLanguages['nl']['radixpoint'] = 1;
// Dutch
$supportedLanguages['nl-informal']['description'] = $clang->gT('Dutch Informal');
$supportedLanguages['nl-informal']['nativedescription'] = 'Nederlands (informeel)';
$supportedLanguages['nl-informal']['rtl'] = false;
$supportedLanguages['nl-informal']['dateformat'] = 2;
$supportedLanguages['nl-informal']['radixpoint'] = 1;
// English
$supportedLanguages['en']['description'] = $clang->gT('English');
$supportedLanguages['en']['nativedescription'] = 'English';
$supportedLanguages['en']['rtl'] = false;
$supportedLanguages['en']['dateformat'] = 9;
$supportedLanguages['en']['radixpoint'] = 0;
// Estonian
$supportedLanguages['et']['description'] = $clang->gT('Estonian');
$supportedLanguages['et']['nativedescription'] = 'Eesti';
$supportedLanguages['et']['rtl'] = false;
$supportedLanguages['et']['dateformat'] = 4;
$supportedLanguages['et']['radixpoint'] = 1;
// Finnish
$supportedLanguages['fi']['description'] = $clang->gT('Finnish');
$supportedLanguages['fi']['nativedescription'] = 'Suomi';
$supportedLanguages['fi']['rtl'] = false;
$supportedLanguages['fi']['dateformat'] = 4;
$supportedLanguages['fi']['radixpoint'] = 1;
// French
$supportedLanguages['fr']['description'] = $clang->gT('French');
$supportedLanguages['fr']['nativedescription'] = 'Français';
$supportedLanguages['fr']['rtl'] = false;
$supportedLanguages['fr']['dateformat'] = 2;
$supportedLanguages['fr']['radixpoint'] = 1;
// Galician
$supportedLanguages['gl']['description'] = $clang->gT('Galician');
$supportedLanguages['gl']['nativedescription'] = 'Galego';
$supportedLanguages['gl']['rtl'] = false;
$supportedLanguages['gl']['dateformat'] = 5;
$supportedLanguages['gl']['radixpoint'] = 1;
// German
$supportedLanguages['de']['description'] = $clang->gT('German');
$supportedLanguages['de']['nativedescription'] = 'Deutsch';
$supportedLanguages['de']['rtl'] = false;
$supportedLanguages['de']['dateformat'] = 1;
$supportedLanguages['de']['radixpoint'] = 1;
// German informal
$supportedLanguages['de-informal']['description'] = $clang->gT('German informal');
$supportedLanguages['de-informal']['nativedescription'] = 'Deutsch (Du)';
$supportedLanguages['de-informal']['rtl'] = false;
$supportedLanguages['de-informal']['dateformat'] = 1;
$supportedLanguages['de-informal']['radixpoint'] = 1;
// Greek
$supportedLanguages['el']['description'] = $clang->gT('Greek');
$supportedLanguages['el']['nativedescription'] = 'ελληνικά';
$supportedLanguages['el']['rtl'] = false;
$supportedLanguages['el']['dateformat'] = 8;
$supportedLanguages['el']['radixpoint'] = 1;
// Hindi
$supportedLanguages['hi']['description'] = $clang->gT('Hindi');
$supportedLanguages['hi']['nativedescription'] = 'हिन्दी';
$supportedLanguages['hi']['rtl'] = false;
$supportedLanguages['hi']['dateformat'] = 2;
$supportedLanguages['hi']['radixpoint'] = 0;
// Hebrew
$supportedLanguages['he']['description'] = $clang->gT('Hebrew');
$supportedLanguages['he']['nativedescription'] = ' עברית';
$supportedLanguages['he']['rtl'] = true;
$supportedLanguages['he']['dateformat'] = 5;
$supportedLanguages['he']['radixpoint'] = 0;
// Hungarian
$supportedLanguages['hu']['description'] = $clang->gT('Hungarian');
$supportedLanguages['hu']['nativedescription'] = 'Magyar';
$supportedLanguages['hu']['rtl'] = false;
$supportedLanguages['hu']['dateformat'] = 6;
$supportedLanguages['hu']['radixpoint'] = 1;
// Icelandic
$supportedLanguages['is']['description'] = $clang->gT('Icelandic');
$supportedLanguages['is']['nativedescription'] = 'íslenska';
$supportedLanguages['is']['rtl'] = false;
$supportedLanguages['is']['dateformat'] = 1;
$supportedLanguages['is']['radixpoint'] = 1;
// Indonesian
$supportedLanguages['id']['description'] = $clang->gT('Indonesian');
$supportedLanguages['id']['nativedescription'] = 'Bahasa Indonesia';
$supportedLanguages['id']['rtl'] = false;
$supportedLanguages['id']['dateformat'] = 5;
$supportedLanguages['id']['radixpoint'] = 1;
// Irish
$supportedLanguages['ie']['description'] = $clang->gT('Irish');
$supportedLanguages['ie']['nativedescription'] = 'Gaeilge';
$supportedLanguages['ie']['rtl'] = false;
$supportedLanguages['ie']['dateformat'] = 2;
$supportedLanguages['ie']['radixpoint'] = 0;
// Italian
$supportedLanguages['it']['description'] = $clang->gT('Italian');
$supportedLanguages['it']['nativedescription'] = 'Italiano';
$supportedLanguages['it']['rtl'] = false;
$supportedLanguages['it']['dateformat'] = 5;
$supportedLanguages['it']['radixpoint'] = 1;
// Italian-Formal
$supportedLanguages['it-formal']['description'] = $clang->gT('Italian (formal)');
$supportedLanguages['it-formal']['nativedescription'] = 'Formale Italiano';
$supportedLanguages['it-formal']['rtl'] = false;
$supportedLanguages['it-formal']['dateformat'] = 5;
$supportedLanguages['it-formal']['radixpoint'] = 1;
// Japanese
$supportedLanguages['ja']['description'] = $clang->gT('Japanese');
$supportedLanguages['ja']['nativedescription'] = '日本語';
$supportedLanguages['ja']['rtl'] = false;
$supportedLanguages['ja']['dateformat'] = 6;
$supportedLanguages['ja']['radixpoint'] = 0;
// Korean
$supportedLanguages['ko']['description'] = $clang->gT('Korean');
$supportedLanguages['ko']['nativedescription'] = '한국어';
$supportedLanguages['ko']['rtl'] = false;
$supportedLanguages['ko']['dateformat'] = 7;
$supportedLanguages['ko']['radixpoint'] = 0;
// Lithuanian
$supportedLanguages['lt']['description'] = $clang->gT('Lithuanian');
$supportedLanguages['lt']['nativedescription'] = 'Lietuvių';
$supportedLanguages['lt']['rtl'] = false;
$supportedLanguages['lt']['dateformat'] = 6;
$supportedLanguages['lt']['radixpoint'] = 1;
// Latvian
$supportedLanguages['lv']['description'] = $clang->gT('Latvian');
$supportedLanguages['lv']['nativedescription'] = 'Latviešu';
$supportedLanguages['lv']['rtl'] = false;
$supportedLanguages['lv']['dateformat'] = 6;
$supportedLanguages['lv']['radixpoint'] = 1;
// Macedonian
$supportedLanguages['mk']['description'] = $clang->gT('Macedonian');
$supportedLanguages['mk']['nativedescription'] = 'Македонски';
$supportedLanguages['mk']['rtl'] = false;
$supportedLanguages['mk']['dateformat'] = 1;
$supportedLanguages['mk']['radixpoint'] = 1;
// Malay
$supportedLanguages['ms']['description'] = $clang->gT('Malay');
$supportedLanguages['ms']['nativedescription'] = 'Bahasa Melayu';
$supportedLanguages['ms']['rtl'] = false;
$supportedLanguages['ms']['dateformat'] = 1;
$supportedLanguages['ms']['radixpoint'] = 0;
// Maltese
$supportedLanguages['mt']['description'] = $clang->gT('Maltese');
$supportedLanguages['mt']['nativedescription'] = 'Malti';
$supportedLanguages['mt']['rtl'] = false;
$supportedLanguages['mt']['dateformat'] = 1;
$supportedLanguages['mt']['radixpoint'] = 0;
// Norwegian Bokmal
$supportedLanguages['nb']['description'] = $clang->gT('Norwegian (Bokmal)');
$supportedLanguages['nb']['nativedescription'] = 'Norsk Bokmål';
$supportedLanguages['nb']['rtl'] = false;
$supportedLanguages['nb']['dateformat'] = 4;
$supportedLanguages['nb']['radixpoint'] = 1;
// Norwegian Nynorsk
$supportedLanguages['nn']['description'] = $clang->gT('Norwegian (Nynorsk)');
$supportedLanguages['nn']['nativedescription'] = 'Norsk Nynorsk';
$supportedLanguages['nn']['rtl'] = false;
$supportedLanguages['nn']['dateformat'] = 4;
$supportedLanguages['nn']['radixpoint'] = 1;
// Persian
$supportedLanguages['fa']['description'] = $clang->gT('Persian');
$supportedLanguages['fa']['nativedescription'] = 'فارسی';
$supportedLanguages['fa']['rtl'] = true;
$supportedLanguages['fa']['dateformat'] = 6;
$supportedLanguages['fa']['radixpoint'] = 0;
// Polish
$supportedLanguages['pl']['description'] = $clang->gT('Polish');
$supportedLanguages['pl']['nativedescription'] = 'Polski';
$supportedLanguages['pl']['rtl'] = false;
$supportedLanguages['pl']['dateformat'] = 1;
$supportedLanguages['pl']['radixpoint'] = 1;
// Portuguese
$supportedLanguages['pt']['description'] = $clang->gT('Portuguese');
$supportedLanguages['pt']['nativedescription'] = 'Português';
$supportedLanguages['pt']['rtl'] = false;
$supportedLanguages['pt']['dateformat'] = 5;
$supportedLanguages['pt']['radixpoint'] = 1;
// Brazilian Portuguese
$supportedLanguages['pt-BR']['description'] = $clang->gT('Portuguese (Brazilian)');
$supportedLanguages['pt-BR']['nativedescription'] = 'Português do Brasil';
$supportedLanguages['pt-BR']['rtl'] = false;
$supportedLanguages['pt-BR']['dateformat'] = 5;
$supportedLanguages['pt-BR']['radixpoint'] = 1;
// Punjabi
$supportedLanguages['pa']['description'] = $clang->gT('Punjabi');
$supportedLanguages['pa']['nativedescription'] = 'ਪੰਜਾਬੀ';
$supportedLanguages['pa']['rtl'] = false;
$supportedLanguages['pa']['dateformat'] = 2;
$supportedLanguages['pa']['radixpoint'] = 0;
// Russian
$supportedLanguages['ru']['description'] = $clang->gT('Russian');
$supportedLanguages['ru']['nativedescription'] = 'Русский';
$supportedLanguages['ru']['rtl'] = false;
$supportedLanguages['ru']['dateformat'] = 1;
$supportedLanguages['ru']['radixpoint'] = 1;
// Romanian
$supportedLanguages['ro']['description'] = $clang->gT('Romanian');
$supportedLanguages['ro']['nativedescription'] = 'Românesc';
$supportedLanguages['ro']['rtl'] = false;
$supportedLanguages['ro']['dateformat'] = 1;
$supportedLanguages['ro']['radixpoint'] = 1;
// Slovak
$supportedLanguages['sk']['description'] = $clang->gT('Slovak');
$supportedLanguages['sk']['nativedescription'] = 'Slovák';
$supportedLanguages['sk']['rtl'] = false;
$supportedLanguages['sk']['dateformat'] = 4;
$supportedLanguages['sk']['radixpoint'] = 1;
// Sinhala
$supportedLanguages['si']['description'] = $clang->gT('Sinhala');
$supportedLanguages['si']['nativedescription'] = 'සිංහල';
$supportedLanguages['si']['rtl'] = false;
$supportedLanguages['si']['dateformat'] = 5;
$supportedLanguages['si']['radixpoint'] = 0;
// Slovenian
$supportedLanguages['sl']['description'] = $clang->gT('Slovenian');
$supportedLanguages['sl']['nativedescription'] = 'Slovenščina';
$supportedLanguages['sl']['rtl'] = false;
$supportedLanguages['sl']['dateformat'] = 4;
$supportedLanguages['sl']['radixpoint'] = 1;
// Serbian
$supportedLanguages['sr']['description'] = $clang->gT('Serbian');
$supportedLanguages['sr']['nativedescription'] = 'Srpski';
$supportedLanguages['sr']['rtl'] = false;
$supportedLanguages['sr']['dateformat'] = 4;
$supportedLanguages['sr']['radixpoint'] = 1;
// Spanish
$supportedLanguages['es']['description'] = $clang->gT('Spanish');
$supportedLanguages['es']['nativedescription'] = 'Español';
$supportedLanguages['es']['rtl'] = false;
$supportedLanguages['es']['dateformat'] = 5;
$supportedLanguages['es']['radixpoint'] = 1;
// Spanish (Chile)
$supportedLanguages['es-CL']['description'] = $clang->gT('Spanish (Mexico)');
$supportedLanguages['es-CL']['nativedescription'] = 'Español chileno';
$supportedLanguages['es-CL']['rtl'] = false;
$supportedLanguages['es-CL']['dateformat'] = 5;
$supportedLanguages['es-CL']['radixpoint'] = 0;
// Spanish (Mexico)
$supportedLanguages['es-MX']['description'] = $clang->gT('Spanish (Mexico)');
$supportedLanguages['es-MX']['nativedescription'] = 'Español mejicano';
$supportedLanguages['es-MX']['rtl'] = false;
$supportedLanguages['es-MX']['dateformat'] = 5;
$supportedLanguages['es-MX']['radixpoint'] = 0;
// Swedish
$supportedLanguages['sv']['description'] = $clang->gT('Swedish');
$supportedLanguages['sv']['nativedescription'] = 'Svenska';
$supportedLanguages['sv']['rtl'] = false;
$supportedLanguages['sv']['dateformat'] = 6;
$supportedLanguages['sv']['radixpoint'] = 1;
// Turkish
$supportedLanguages['tr']['description'] = $clang->gT('Turkish');
$supportedLanguages['tr']['nativedescription'] = 'Türkçe';
$supportedLanguages['tr']['rtl'] = false;
$supportedLanguages['tr']['dateformat'] = 5;
$supportedLanguages['tr']['radixpoint'] = 1;
// Thai
$supportedLanguages['th']['description'] = $clang->gT('Thai');
$supportedLanguages['th']['nativedescription'] = 'ภาษาไทย';
$supportedLanguages['th']['rtl'] = false;
$supportedLanguages['th']['dateformat'] = 5;
$supportedLanguages['th']['radixpoint'] = 0;
//Urdu
$supportedLanguages['ur']['description'] = $clang->gT('Urdu');
$supportedLanguages['ur']['nativedescription'] = 'اردو';
$supportedLanguages['ur']['rtl'] = true;
$supportedLanguages['ur']['dateformat'] = 2;
$supportedLanguages['ur']['radixpoint'] = 0;
// Vietnamese
$supportedLanguages['vi']['description'] = $clang->gT('Vietnamese');
$supportedLanguages['vi']['nativedescription'] = 'Tiếng Việt';
$supportedLanguages['vi']['rtl'] = false;
$supportedLanguages['vi']['dateformat'] = 5;
$supportedLanguages['vi']['radixpoint'] = 1;
}
if ($orderbynative)
{
uasort($supportedLanguages,"user_sort_native");
}
else
{
uasort($supportedLanguages,"user_sort");
}
$result[$orderbynative] = $supportedLanguages;
Return $supportedLanguages;
}
function user_sort($a, $b) {
// smarts is all-important, so sort it first
if($a['description'] >$b['description']) {
return 1;
}
else {
return -1;
}
}
function user_sort_native($a, $b) {
// smarts is all-important, so sort it first
if($a['nativedescription'] >$b['nativedescription']) {
return 1;
}
else {
return -1;
}
}
/* // future languages
// Afrikaans
$supportedLanguages['za']['nativedescription'] = 'Afrikaans';
// Irish
$supportedLanguages['ie']['nativedescription'] = 'Gaeilge';
// Serbian
$supportedLanguages['yu']['nativedescription'] = 'Srpski';
*/
/**
* This function support the ability NOT to reverse numbers (for example when you output
* a phrase as a parameter for a SWF file that can't handle RTL languages itself, but
* obviously any numbers should remain the same as in the original phrase).
* Note that it can be used just as well for UTF-8 usages if you want the numbers to remain intact
*
* @param string $str
* @param boolean $reverse_numbers
* @return string
*/
function utf8_strrev($str, $reverse_numbers=false) {
preg_match_all('/./us', $str, $ar);
if ($reverse_numbers)
return join('',array_reverse($ar[0]));
else {
$temp = array();
foreach ($ar[0] as $value) {
if (is_numeric($value) && !empty($temp[0]) && is_numeric($temp[0])) {
foreach ($temp as $key => $value2) {
if (is_numeric($value2))
$pos = ($key + 1);
else
break;
}
$temp2 = array_splice($temp, $pos);
$temp = array_merge($temp, array($value), $temp2);
} else
array_unshift($temp, $value);
}
return implode('', $temp);
}
}
?>
| ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 120608 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | mysql 5.5.22 | ||||
| Server OS (if known) | ubuntu 12.04 | ||||
| Webserver software & version (if known) | apache 2.2.22 | ||||
| PHP Version | 5.3.10-1ubuntu3.1 | ||||
| Git branch / Pull Request URL | |||||
|
I downloaded the Customer Service Satisfaction Demo Survey and imported it. It works fine. So either the created surveys have a problem in the creation process or I am not creating them correctly. |
|
|
That is the desired behavior. You have to add groups and questions. An active survey that has no groups or questions should give a reasonable warning message, which this does. So, please make sure to add groups and questions before you activate the survey. |
|
|
I understand that Groups and Questions are needed. I have 3 surveys now that I have created each have one group. Then they have 2-4 questions each. Yes they are active! |
|
|
I have look at the settings of the demo survey and my surveys and I don't see any difference except the demo survey is anonimized and mine are not |
|
|
I have uploaded my first test survey if it helps. |
|
|
I can't reproduce what you're seeing. Your survey works fine when I import it (as long as I change the extension to .lss instead of .lss.xml) You say "Create a survey and make active then paste url in a php webpage" - what do you mean? Are you trying to embed the link in a CMS system, or are you saying the default page that is generated to list surveys? |
|
|
What I am saying is I have a website made with php When I take the url given to me from limesurvey and put it in a <a href tag within my site. It is done manually as I am only in the testing phase . From there I run the php page called surveys.php and i get the error. As I stated before the Function within Limesurvey admin page "Execute this survey" works fine. The "Survey URL" from within LimeSurvey also works when clicked on. Just not the duplicate URL that resides in my own webpage "surveys.php which is an exact copy of the URL within Limesurvey. The demo survey I imported works in all locations. Limesurvey and my webpage. Just not the surveys I have created today. Now I have tested further and have found that if I export my surveys and delete them from Limesurvey and then re-import them back into Limesurvey they work as they should. Why would that be? and what can I do to have them functional with out having to hop thru the export/import phase? |
|
|
This isn't a bug with LimeSurvey. Rather, you have dueling session and/or header management between your website and LimeSurvey. Try setting the $embedded option in config.php as described here - http://docs.limesurvey.org/Optional+settings&structure=English+Instructions+for+LimeSurvey |
|
|
I tried your solution and it did not work. It added my header to the webpage that limesurvey produced which is supposed to be the survey. But i still get the issue of no Questions. Also your solution does not make sense. If it was only a header issue then why would my surveys work after I export them and then re-import them. That should not change the header information. Here what I did to test your theory: $embedded = True; This did put my header into the page above the limesurvey box which still told me the survey has no questions and cannot be tested or completed. So it seems to me that this is a problem with the creation/permissions of the surveys when initially created and that when they are exported and re-imported the problem is fixed. Any thoughts? |
|
|
Your Solution did not resolve the issue. Read my last note. Also I compared a survey that does not work and one that was Exported/Re-imported and now works and found only one small change. Doesn't Work: Also the <Title> </Title> tag is empty in the survey that does not work but has the correct title in the one that does. |
|
|
Turned Debug on and the survey page that has the error has this debug remark. Notice: Undefined index: in /var/www/limesurvey/classes/core/surveytranslator.php on line 75 |
|
|
I still can't reproduce this. Assigning it to someone might be able to provide more help. |
|
|
Somehow during the creation of the survey header Limesurvey is putting in "eng" instead of "en". The $surveylanguage variable is getting "eng" from somewhere. This is causing survey translator.php to error on line 75. Just have to figure where the "eng" is coming from. This error is being created on the initial creation of a survey. It does not occur when a survey is imported. This should help in tracking down the rouge "eng" |
|
|
"Somehow during the creation of the survey header Limesurvey is putting in "eng" instead of "en"
|
|
|
My survey system is not online so a link is not going to work at this point. As far as core mods, I have not done any. I installed the system per your installation instructions and all 4 of the surveys I have created have had this problem. I did send you folks a file, but either the export or import process seems to fix the header and correct the "eng" to "en". Below is the source file of a failed survey page, I have debug on so the first line is its notice. Notice: Undefined index: in /var/www/limesurvey/classes/core/surveytranslator.php on line 75
<!--[if IE 7]>
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/survey_runtime.js"></script>
<table class="outer-frame">
</tr>
</tr> </div> </td> </tr> </table> </div>
</html> Below is the source of a survey that was exported /re-imported and now works: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 7]>
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/survey_runtime.js"></script>
<table class="outer-frame">
</table> <input type='text' id='runonce' value='0' style='display: none;'/>
// --> <!-- START THE GROUP --> <div id='group-0'> <!-- PRESENT THE QUESTIONS -->
<input class="radio" type="radio" name="92734X10X34" id="answer92734X10X34Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" /> <input class="radio" type="radio" name="92734X10X34" id="answer92734X10X34N" value="N" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X34N" class="answertext" > No </label> <input type="hidden" name="java92734X10X34" id="java92734X10X34" value="" />
</div>
<ul id="slider133942706673"> <input class="radio" type="radio" name="92734X10X35" id="answer92734X10X351" value="1" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X351" class="answertext">1</label> <input class="radio" type="radio" name="92734X10X35" id="answer92734X10X352" value="2" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X352" class="answertext">2</label> <input class="radio" type="radio" name="92734X10X35" id="answer92734X10X353" value="3" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X353" class="answertext">3</label> <input class="radio" type="radio" name="92734X10X35" id="answer92734X10X354" value="4" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X354" class="answertext">4</label> <input class="radio" type="radio" name="92734X10X35" id="answer92734X10X355" value="5" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X355" class="answertext">5</label> <input class="radio noAnswer" type="radio" name="92734X10X35" id="answer92734X10X35NANS" value="" checked="checked" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X35NANS" class="answertext">No answer</label> <input type="hidden" name="java92734X10X35" id="java92734X10X35" value="" />
</div>
</div>
<input class="radio" type="radio" name="92734X10X37" id="answer92734X10X37Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" /> <input class="radio" type="radio" name="92734X10X37" id="answer92734X10X37N" value="N" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X37N" class="answertext" > No </label> <input class="radio" type="radio" name="92734X10X37" id="answer92734X10X37" value="" checked="checked" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X10X37" class="answertext"> No answer </label> <input type="hidden" name="java92734X10X37" id="java92734X10X37" value="" />
</div> <!-- END THE GROUP --> </div> <!-- START THE GROUP --> <div id='group-1'>
<!-- PRESENT THE QUESTIONS -->
<input class="radio" type="radio" name="92734X11X38" id="answer92734X11X38Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" /> <input class="radio" type="radio" name="92734X11X38" id="answer92734X11X38N" value="N" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X11X38N" class="answertext" > No </label> <input class="radio" type="radio" name="92734X11X38" id="answer92734X11X38" value="" checked="checked" onclick="checkconditions(this.value, this.name, this.type)" /> <label for="answer92734X11X38" class="answertext"> No answer </label> <input type="hidden" name="java92734X11X38" id="java92734X11X38" value="" />
</div>
<label for="answer92734X11X39SQ001" class="answertext">Very Much</label>
<label for="answer92734X11X39SQ002" class="answertext">I Like Them</label>
<label for="answer92734X11X39SQ003" class="answertext">They are OK</label>
<label for="answer92734X11X39SQ004" class="answertext">I dont like them</label>
</div> <!-- END THE GROUP --> </div> } <!-- PRESENT THE NAVIGATOR -->
</table>
</html> |
|
|
Really weird. Can you attach the survetranslator.php file that is mentioned at the error message? |
|
|
I have uploaded surveyranslator.php. I hope this helps. Cant you do a recursive grub search of the source code for "eng" as it has to be coming from somewhere within the program? |
|
|
What I ment to say was a grep search not grub. My mind and fingers weren't yet connected I guess |
|
|
I searched the lime survey files an the only real occurrence of eng was in the file name eng.php with is the english language file? |
|
|
My local version of the file totally matches yous, so ni idea why an error is shown and why that weird "ENG" is used. Did you try a different browser? What if you create a survey in e.g. German or French language? What if you set English as additional language and use the language switch to switch to english? |
|
|
Ok I found the problem and I feel like a idiot! I tried it in german and it worked fine, I tried three browsers and had the same issues. But as I was entering the url for the survey into my static web page i discovered that I had lang=eng at the end of the line. I must have done it. Well I change the eng to en and all of my surveys work just fine. I am sorry for the rabbit trail. I was certain I had already eliminated this as a problem. Your suggestion to make a german survey had me look over the static webpage once again. Thanks |
|
|
Per reporter, this was not a bug. |
|
|
Have a look at http://donate.limesurvey.org ;-) |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-06-09 01:45 |
|
New Issue | |
| 2012-06-09 02:09 |
|
Note Added: 19122 | |
| 2012-06-09 02:35 | TMSWhite | Note Added: 19123 | |
| 2012-06-09 02:35 | TMSWhite | Status | new => resolved |
| 2012-06-09 02:35 | TMSWhite | Resolution | open => no change required |
| 2012-06-09 02:35 | TMSWhite | Assigned To | => TMSWhite |
| 2012-06-09 03:04 |
|
Note Added: 19124 | |
| 2012-06-09 03:04 |
|
Status | resolved => feedback |
| 2012-06-09 03:04 |
|
Resolution | no change required => reopened |
| 2012-06-09 03:07 |
|
Note Added: 19125 | |
| 2012-06-09 03:07 |
|
Status | feedback => assigned |
| 2012-06-09 03:09 |
|
File Added: limesurvey_survey_92734.lss.xml | |
| 2012-06-09 03:10 |
|
Note Added: 19126 | |
| 2012-06-09 04:43 | TMSWhite | Note Added: 19127 | |
| 2012-06-09 04:43 | TMSWhite | Status | assigned => feedback |
| 2012-06-09 06:52 |
|
Note Added: 19129 | |
| 2012-06-09 06:52 |
|
Status | feedback => assigned |
| 2012-06-09 13:50 | TMSWhite | Note Added: 19132 | |
| 2012-06-09 13:50 | TMSWhite | Status | assigned => resolved |
| 2012-06-09 13:50 | TMSWhite | Resolution | reopened => no change required |
| 2012-06-10 01:04 |
|
Note Added: 19137 | |
| 2012-06-10 01:26 |
|
Note Added: 19138 | |
| 2012-06-10 01:26 |
|
Status | resolved => feedback |
| 2012-06-10 01:26 |
|
Resolution | no change required => reopened |
| 2012-06-10 01:37 |
|
Note Added: 19139 | |
| 2012-06-10 01:37 |
|
Status | feedback => assigned |
| 2012-06-10 03:58 | TMSWhite | Note Added: 19140 | |
| 2012-06-10 03:59 | TMSWhite | Assigned To | TMSWhite => Mazi |
| 2012-06-10 04:27 |
|
Note Added: 19141 | |
| 2012-06-11 10:01 | Mazi | Note Added: 19146 | |
| 2012-06-11 17:05 |
|
Note Added: 19169 | |
| 2012-06-12 13:51 | Mazi | Note Added: 19197 | |
| 2012-06-12 13:51 | Mazi | Status | assigned => feedback |
| 2012-06-12 16:27 |
|
File Added: surveytranslator.php | |
| 2012-06-12 16:30 |
|
Note Added: 19215 | |
| 2012-06-12 16:30 |
|
Status | feedback => assigned |
| 2012-06-12 16:37 |
|
Note Added: 19216 | |
| 2012-06-12 17:31 |
|
Note Added: 19219 | |
| 2012-06-12 18:55 | Mazi | Note Added: 19221 | |
| 2012-06-12 19:53 |
|
Note Added: 19224 | |
| 2012-06-12 21:49 | TMSWhite | Note Added: 19231 | |
| 2012-06-12 21:49 | TMSWhite | Status | assigned => resolved |
| 2012-06-12 21:49 | TMSWhite | Resolution | reopened => no change required |
| 2012-06-12 22:38 | Mazi | Note Added: 19232 | |
| 2012-06-20 14:10 | c_schmitz | Status | resolved => closed |