View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06184Bug reportsAccessibilitypublic2012-06-20 14:10
Reporteruser20316Assigned ToMazi  
PrioritynormalSeveritypartial_block 
Status closedResolutionno change required 
Product Version1.92+ 
Summary06184: 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."

TagsNo 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>
limesurvey_survey_92734.lss.xml (22,783 bytes)   
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'] = '&#4768;&#4635;&#4653;&#4763;';
    $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'] = '&#1593;&#1614;&#1585;&#1614;&#1576;&#1610;&#1618;';
    $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'] = '&#1041;&#1077;&#1083;&#1072;&#1088;&#1091;&#1089;&#1082;&#1110;';
    $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'] = '&#x0411;&#x044a;&#x043b;&#x0433;&#x0430;&#x0440;&#x0441;&#x043a;&#x0438;';
    $supportedLanguages['bg']['rtl'] = false;
    $supportedLanguages['bg']['dateformat'] = 1;
    $supportedLanguages['bg']['radixpoint'] = 0;

    // Catalan
    $supportedLanguages['ca']['description'] = $clang->gT('Catalan');
    $supportedLanguages['ca']['nativedescription'] = 'Catal&#940;';
    $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'] = '&#31616;&#20307;&#20013;&#25991;';
    $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'] = '&#32321;&#39636;&#20013;&#25991;&#35486;&#31995;';
    $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'] = '&#x010c;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&#231;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'] = '&#949;&#955;&#955;&#951;&#957;&#953;&#954;&#940;';
    $supportedLanguages['el']['rtl'] = false;
    $supportedLanguages['el']['dateformat'] = 8;
    $supportedLanguages['el']['radixpoint'] = 1;

    // Hindi
    $supportedLanguages['hi']['description'] = $clang->gT('Hindi');
    $supportedLanguages['hi']['nativedescription'] = '&#2361;&#2367;&#2344;&#2381;&#2342;&#2368;';
    $supportedLanguages['hi']['rtl'] = false;
    $supportedLanguages['hi']['dateformat'] = 2;
    $supportedLanguages['hi']['radixpoint'] = 0;

    // Hebrew
    $supportedLanguages['he']['description'] = $clang->gT('Hebrew');
    $supportedLanguages['he']['nativedescription'] = ' &#1506;&#1489;&#1512;&#1497;&#1514;';
    $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'] = '&#237;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'] = '&#x65e5;&#x672c;&#x8a9e;';
    $supportedLanguages['ja']['rtl'] = false;
    $supportedLanguages['ja']['dateformat'] = 6;
    $supportedLanguages['ja']['radixpoint'] = 0;

    // Korean
    $supportedLanguages['ko']['description'] = $clang->gT('Korean');
    $supportedLanguages['ko']['nativedescription'] = '&#54620;&#44397;&#50612;';
    $supportedLanguages['ko']['rtl'] = false;
    $supportedLanguages['ko']['dateformat'] = 7;
    $supportedLanguages['ko']['radixpoint'] = 0;

    // Lithuanian
    $supportedLanguages['lt']['description'] = $clang->gT('Lithuanian');
    $supportedLanguages['lt']['nativedescription'] = 'Lietuvi&#371;';
    $supportedLanguages['lt']['rtl'] = false;
    $supportedLanguages['lt']['dateformat'] = 6;
    $supportedLanguages['lt']['radixpoint'] = 1;

    // Latvian
    $supportedLanguages['lv']['description'] = $clang->gT('Latvian');
    $supportedLanguages['lv']['nativedescription'] = 'Latvie&#353;u';
    $supportedLanguages['lv']['rtl'] = false;
    $supportedLanguages['lv']['dateformat'] = 6;
    $supportedLanguages['lv']['radixpoint'] = 1;

    // Macedonian
    $supportedLanguages['mk']['description'] = $clang->gT('Macedonian');
    $supportedLanguages['mk']['nativedescription'] = '&#1052;&#1072;&#1082;&#1077;&#1076;&#1086;&#1085;&#1089;&#1082;&#1080;';
    $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&#229;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'] = '&#1601;&#1575;&#1585;&#1587;&#1740;';
    $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&#234;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&#234;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'] = '&#2602;&#2672;&#2588;&#2622;&#2604;&#2624;';
    $supportedLanguages['pa']['rtl'] = false;
    $supportedLanguages['pa']['dateformat'] = 2;
    $supportedLanguages['pa']['radixpoint'] = 0;

    // Russian
    $supportedLanguages['ru']['description'] = $clang->gT('Russian');
    $supportedLanguages['ru']['nativedescription'] = '&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;';
    $supportedLanguages['ru']['rtl'] = false;
    $supportedLanguages['ru']['dateformat'] = 1;
    $supportedLanguages['ru']['radixpoint'] = 1;

    // Romanian
    $supportedLanguages['ro']['description'] = $clang->gT('Romanian');
    $supportedLanguages['ro']['nativedescription'] = 'Rom&#226;nesc';
    $supportedLanguages['ro']['rtl'] = false;
    $supportedLanguages['ro']['dateformat'] = 1;
    $supportedLanguages['ro']['radixpoint'] = 1;

    // Slovak
    $supportedLanguages['sk']['description'] = $clang->gT('Slovak');
    $supportedLanguages['sk']['nativedescription'] = 'Slov&aacute;k';
    $supportedLanguages['sk']['rtl'] = false;
    $supportedLanguages['sk']['dateformat'] = 4;
    $supportedLanguages['sk']['radixpoint'] = 1;

    // Sinhala
    $supportedLanguages['si']['description'] = $clang->gT('Sinhala');
    $supportedLanguages['si']['nativedescription'] = '&#3523;&#3538;&#3458;&#3524;&#3517;';
    $supportedLanguages['si']['rtl'] = false;
    $supportedLanguages['si']['dateformat'] = 5;
    $supportedLanguages['si']['radixpoint'] = 0;

    // Slovenian
    $supportedLanguages['sl']['description'] = $clang->gT('Slovenian');
    $supportedLanguages['sl']['nativedescription'] = 'Sloven&#353;&#269;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&#241;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&#241;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&#241;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&#252;rk&#231;e';
    $supportedLanguages['tr']['rtl'] = false;
    $supportedLanguages['tr']['dateformat'] = 5;
    $supportedLanguages['tr']['radixpoint'] = 1;

    // Thai
    $supportedLanguages['th']['description'] = $clang->gT('Thai');
    $supportedLanguages['th']['nativedescription'] = '&#3616;&#3634;&#3625;&#3634;&#3652;&#3607;&#3618;';
    $supportedLanguages['th']['rtl'] = false;
    $supportedLanguages['th']['dateformat'] = 5;
    $supportedLanguages['th']['radixpoint'] = 0;


    //Urdu
    $supportedLanguages['ur']['description'] = $clang->gT('Urdu');
    $supportedLanguages['ur']['nativedescription'] = '&#1575;&#1585;&#1583;&#1608;';
    $supportedLanguages['ur']['rtl'] = true;
    $supportedLanguages['ur']['dateformat'] = 2;
    $supportedLanguages['ur']['radixpoint'] = 0;

    // Vietnamese
    $supportedLanguages['vi']['description'] = $clang->gT('Vietnamese');
    $supportedLanguages['vi']['nativedescription'] = 'Ti&#7871;ng Vi&#7879;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);
    }
}

?>
surveytranslator.php (26,206 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)120608
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5.5.22
Server OS (if known)ubuntu 12.04
Webserver software & version (if known)apache 2.2.22
PHP Version5.3.10-1ubuntu3.1
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

user20316

2012-06-09 02:09

  ~19122

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.

TMSWhite

TMSWhite

2012-06-09 02:35

reporter   ~19123

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.

user20316

2012-06-09 03:04

  ~19124

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!

user20316

2012-06-09 03:07

  ~19125

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

user20316

2012-06-09 03:10

  ~19126

I have uploaded my first test survey if it helps.

TMSWhite

TMSWhite

2012-06-09 04:43

reporter   ~19127

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?

user20316

2012-06-09 06:52

  ~19129

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?

TMSWhite

TMSWhite

2012-06-09 13:50

reporter   ~19132

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

user20316

2012-06-10 01:04

  ~19137

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;
$embeddeb_inc = "/var/www/header.php';
$embedded_headerfunc = ' ';
$embedded_footerfunc=' ';

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?

user20316

2012-06-10 01:26

  ~19138

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:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng" lang="eng">
Does Work:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Also the <Title> </Title> tag is empty in the survey that does not work but has the correct title in the one that does.

user20316

2012-06-10 01:37

  ~19139

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

TMSWhite

TMSWhite

2012-06-10 03:58

reporter   ~19140

I still can't reproduce this. Assigning it to someone might be able to provide more help.

user20316

2012-06-10 04:27

  ~19141

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"

Mazi

Mazi

2012-06-11 10:01

updater   ~19146

"Somehow during the creation of the survey header Limesurvey is putting in "eng" instead of "en"
^- Can you post a link to such a survey?

  • Could the problem be related to any core modifications you made?

user20316

2012-06-11 17:05

  ~19169

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng" lang="eng">
<head>
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/jquery/jquery-ui.js"></script>
<link href="http://192.168.0.112/limesurvey/scripts/jquery/css/start/jquery-ui.css" media="all" type="text/css" rel="stylesheet" /><link href="http://192.168.0.112/limesurvey/scripts/jquery/css/start/lime-progress.css" media="all" type="text/css" rel="stylesheet" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title> </title>
<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />

<!-- The following line includes template.css and if an RTL-language is used template-rtl.css -->
<link rel='stylesheet' type='text/css' href='http://192.168.0.112/limesurvey/templates/eirenicon/template.css' />

<!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_6.css" />
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_8.css" />
<![endif]-->

<!-- The following CSS hides visual elements of the progress bar from screen readers. -->
<style type="text/css" media="aural tty">
    progress-graph .zero, progress-graph .graph, progress-graph .cent { display: none; }
</style>

<script type="text/javascript" src="http://192.168.0.112/limesurvey/templates/eirenicon/template.js"></script>
<link rel="shortcut icon" href="http://192.168.0.112/limesurvey/templates/eirenicon/favicon.ico" />

<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/survey_runtime.js"></script>
</head>

<body bgcolor="#C0C0C0" class="lang-eng ">
            <div class="outerframe">

<table class="outer-frame">
<tr>
<td>
<table class="survey-header-table">
<tr>
<td class="survey-description">
<h2 class="survey-name"></h2>
<span class="survey-description-text"></span>
</td>
</tr>
<tr>
<td class="graph">

</td>

</tr>
</table>
<table class="language-changer-table">
<tr>
<td align="center">

</td>

</tr>
</table>
<div id='wrapper'>
<p id='tokenmessage'>
This survey does not yet have any questions and cannot be tested or completed.


For further information please contact (<a href='mailto:'></a>)



</div>
</td>
</tr>
</table>
</div>

</body>

</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">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" type="text/css" media="all" href="http://192.168.0.112/limesurvey/scripts/jquery/css/jquery.keypad.alt.css" />
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/jquery/jquery-ui.js"></script>
<link href="http://192.168.0.112/limesurvey/scripts/jquery/css/start/jquery-ui.css" media="all" type="text/css" rel="stylesheet" /><link href="http://192.168.0.112/limesurvey/scripts/jquery/css/start/lime-progress.css" media="all" type="text/css" rel="stylesheet" /><script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/jquery/jquery.keypad.min.js"></script>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />   
<title> My First Test Survey </title>
<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />

<!-- The following line includes template.css and if an RTL-language is used template-rtl.css -->
<link rel='stylesheet' type='text/css' href='http://192.168.0.112/limesurvey/templates/eirenicon/template.css' />

<!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_6.css" />
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="http://192.168.0.112/limesurvey/templates/eirenicon/ie_fix_8.css" />
<![endif]-->

<!-- The following CSS hides visual elements of the progress bar from screen readers. -->
<style type="text/css" media="aural tty">
    progress-graph .zero, progress-graph .graph, progress-graph .cent { display: none; }
</style>

<script type="text/javascript" src="http://192.168.0.112/limesurvey/templates/eirenicon/template.js"></script>
<link rel="shortcut icon" href="http://192.168.0.112/limesurvey/templates/eirenicon/favicon.ico" />

<script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/survey_runtime.js"></script>
</head>

<body bgcolor="#C0C0C0" class="lang-en allinone showprogress showqnumcode-X">
            <div class="outerframe">

<table class="outer-frame">
<tr>
<td>
<form method='post' action='http://192.168.0.112/limesurvey/index.php' id='limesurvey' name='limesurvey' autocomplete='off'>
<!-- INPUT NAMES -->
<input type='hidden' name='fieldnames' value='92734X10X34|92734X10X35|92734X10X36|92734X10X37|92734X11X38|92734X11X39SQ001|92734X11X39SQ002|92734X11X39SQ003|92734X11X39SQ004' id='fieldnames' />
<script type='text/javascript'>
<!--
// register the standard (last) onsubmit handler first
document.limesurvey.onsubmit = std_onsubmit_handler;
-->
</script>
<noscript><span class='warningjs'>Caution: JavaScript execution is disabled in your browser. You may not be able to answer all questions in this survey. Please, verify your browser parameters.</span></noscript>
<table class="welcome-table">
<tr>
<td class="welcome-header">
<h2 class="survey-name">My First Test Survey</h2>
<span class="survey-description-text">This survey is to test the functionality of Lime Survey</span>
</td>
</tr>
<tr>
<td class="welcome-language-changer">

    </td>
</tr>
<tr>
    <td class="welcome-content">
        <span class="survey-welcome">Welcome to my first test survey</span>
        <span class="x-questions">There are 6 questions in this survey.</span>
    </td>
</tr>

</table>

<input type='text' id='runonce' value='0' style='display: none;'/>
<!-- JAVASCRIPT FOR CONDITIONAL QUESTIONS -->
<script type='text/javascript'>
<!--
var LEMradix='.';
function fixnum_checkconditions(value, name, type, evt_type)
{
newval = value;
if (LEMradix === ',') {
newval = new String(value);
newval = newval.split(',').join('.');
}
if (newval != parseFloat(newval)) {
newval = '';
if (name.match(/other$/)) {
$('#answer'+name+'text').val('');
}
$('#answer'+name).val('');
}

    if (typeof evt_type === 'undefined')
    {
        evt_type = 'onchange';
    }
    checkconditions(newval, name, type, evt_type);
}

function checkconditions(value, name, type, evt_type)
{
    if (typeof evt_type === 'undefined')
    {
        evt_type = 'onchange';
    }
    if (type == 'radio' || type == 'select-one')
    {
        var hiddenformname='java'+name;
        document.getElementById(hiddenformname).value=value;
    }
    else if (type == 'checkbox')
    {
        if (document.getElementById('answer'+name).checked)
        {
            $('#java'+name).val('Y');
        } else
        {
            $('#java'+name).val('');
        }
    }
    else if (type == 'text' && name.match(/other$/) && typeof document.getElementById('java'+name) !== 'undefined' && document.getElementById('java'+name) != null)
    {
        $('#java'+name).val(value);
    }
    ExprMgr_process_relevance_and_tailoring(evt_type,name,type);
}

// -->
</script>

<!-- START THE GROUP -->

<div id='group-0'>
<table class="group">
<tr>
<td align="center">
<span class="group-name">First and Only Group</span>

<!-- PRESENT THE QUESTIONS -->
<div id="question34" class="yes-no mandatory">
<table class="question-wrapper">
<tr>
<td align="center">
<table width="100%" cellspacing="0">
<tr>
<td class="question-text">
<span class="asterisk">*</span><span class="qnumcode"> </span>Do you like taking surveys?


<span class="questionhelp"></span>

                        <span class="questionhelp" id="vmsg_34"></span>

                    </td>
                </tr>
                <tr>
                    <td class="question-answer">
                        <ul>
<li>

<input class="radio" type="radio" name="92734X10X34" id="answer92734X10X34Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" />
<label for="answer92734X10X34Y" class="answertext">
Yes
</label>


  • <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="" />

                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>
    <div id="question35" class="choice-5-pt-radio">
    <table class="question-wrapper">
    <tr>
    <td align="center">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="question-text">
    <span class="asterisk"></span><span class="qnumcode"> </span>


    How easy is it to understand how to take this survey?



    Where 1=Hard 5=Easy

                            <br />
                            <span class="questionhelp"></span>
    
                            <span class="questionhelp" id="vmsg_35"></span>
    
                        </td>
                    </tr>
                    <tr>
                        <td class="question-answer">

    <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="" />

                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>
    <div id="question36" class="list-radio">
    <table class="question-wrapper">
    <tr>
    <td align="center">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="question-text">
    <span class="asterisk"></span><span class="qnumcode"> </span>What operating system is on your computer used for this survey?


    <span class="questionhelp">Choose one of the following answers</span>

                            <span class="questionhelp" id="vmsg_36"></span>
    
                        </td>
                    </tr>
                    <tr>
                        <td class="question-answer">

      <li id='javatbd92734X10X36A1'>
      
          <input class="radio" type="radio" value="A1" name="92734X10X36" id="answer92734X10X36A1" onclick="if (document.getElementById('answer92734X10X36othertext') != null) document.getElementById('answer92734X10X36othertext').value='';checkconditions(this.value, this.name, this.type)" />
          <label for="answer92734X10X36A1" class="answertext">MS Windows</label>
              </li>
      
      <li id='javatbd92734X10X36A2'>
      
          <input class="radio" type="radio" value="A2" name="92734X10X36" id="answer92734X10X36A2" onclick="if (document.getElementById('answer92734X10X36othertext') != null) document.getElementById('answer92734X10X36othertext').value='';checkconditions(this.value, this.name, this.type)" />
          <label for="answer92734X10X36A2" class="answertext">Apple OSX</label>
              </li>
      
      <li id='javatbd92734X10X36A3'>
      
          <input class="radio" type="radio" value="A3" name="92734X10X36" id="answer92734X10X36A3" onclick="if (document.getElementById('answer92734X10X36othertext') != null) document.getElementById('answer92734X10X36othertext').value='';checkconditions(this.value, this.name, this.type)" />
          <label for="answer92734X10X36A3" class="answertext">Linux</label>
              </li>
      <li>
          <input class="radio" type="radio" name="92734X10X36" id="answer92734X10X36NANS" value="" checked="checked" onclick="if (document.getElementById('answer92734X10X36othertext') != null) document.getElementById('answer92734X10X36othertext').value='';checkconditions(this.value, this.name, this.type)" />
          <label for="answer92734X10X36NANS" class="answertext">No answer</label>
              </li>

    <input type="hidden" name="java92734X10X36" id="java92734X10X36" value="" />
    
                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>
    <div id="question37" class="yes-no">
    <table class="question-wrapper">
    <tr>
    <td align="center">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="question-text">
    <span class="asterisk"></span><span class="qnumcode"> </span>Did everything function correctly while taking this survey?


    <span class="questionhelp"></span>

                            <span class="questionhelp" id="vmsg_37"></span>
    
                        </td>
                    </tr>
                    <tr>
                        <td class="question-answer">
                            <ul>
    <li>

    <input class="radio" type="radio" name="92734X10X37" id="answer92734X10X37Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" />
    <label for="answer92734X10X37Y" class="answertext">
    Yes
    </label>


  • <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="" />

                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>

    <!-- END THE GROUP -->
    </td>
    </tr>
    </table>

    </div>

    <!-- START THE GROUP -->

    <div id='group-1'>
    <table class="group">
    <tr>
    <td align="center">
    <span class="group-name">Group 2</span>

            <br />
            <span class="group-description">Group 2</span>
            <br />

    <!-- PRESENT THE QUESTIONS -->
    <div id="question38" class="yes-no">
    <table class="question-wrapper">
    <tr>
    <td align="center">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="question-text">
    <span class="asterisk"></span><span class="qnumcode"> </span>Is this group working?


    <span class="questionhelp"></span>

                            <span class="questionhelp" id="vmsg_38"></span>
    
                        </td>
                    </tr>
                    <tr>
                        <td class="question-answer">
                            <ul>
    <li>

    <input class="radio" type="radio" name="92734X11X38" id="answer92734X11X38Y" value="Y" onclick="checkconditions(this.value, this.name, this.type)" />
    <label for="answer92734X11X38Y" class="answertext">
    Yes
    </label>


  • <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="" />

                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>
    <div id="question39" class="multiple-opt">
    <table class="question-wrapper">
    <tr>
    <td align="center">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="question-text">
    <span class="asterisk"></span><span class="qnumcode"> </span>Do you like cats?


    <span class="questionhelp">Check any that apply</span>

                            <span class="questionhelp" id="vmsg_39"></span>
    
                        </td>
                    </tr>
                    <tr>
                        <td class="question-answer">
                            <input type="hidden" name="MULTI92734X11X39" value="4" />

      <li id='javatbd92734X11X39SQ001'>
      
          <input class="checkbox" type="checkbox" name="92734X11X39SQ001" id="answer92734X11X39SQ001" value="Y" onclick='cancelBubbleThis(event);checkconditions(this.value, this.name, this.type)' />

      <label for="answer92734X11X39SQ001" class="answertext">Very Much</label>
      <input type="hidden" name="java92734X11X39SQ001" id="java92734X11X39SQ001" value="" />

      <li id='javatbd92734X11X39SQ002'>
      
          <input class="checkbox" type="checkbox" name="92734X11X39SQ002" id="answer92734X11X39SQ002" value="Y" onclick='cancelBubbleThis(event);checkconditions(this.value, this.name, this.type)' />

      <label for="answer92734X11X39SQ002" class="answertext">I Like Them</label>
      <input type="hidden" name="java92734X11X39SQ002" id="java92734X11X39SQ002" value="" />

      <li id='javatbd92734X11X39SQ003'>
      
          <input class="checkbox" type="checkbox" name="92734X11X39SQ003" id="answer92734X11X39SQ003" value="Y" onclick='cancelBubbleThis(event);checkconditions(this.value, this.name, this.type)' />

      <label for="answer92734X11X39SQ003" class="answertext">They are OK</label>
      <input type="hidden" name="java92734X11X39SQ003" id="java92734X11X39SQ003" value="" />

      <li id='javatbd92734X11X39SQ004'>
      
          <input class="checkbox" type="checkbox" name="92734X11X39SQ004" id="answer92734X11X39SQ004" value="Y" onclick='cancelBubbleThis(event);checkconditions(this.value, this.name, this.type)' />

      <label for="answer92734X11X39SQ004" class="answertext">I dont like them</label>
      <input type="hidden" name="java92734X11X39SQ004" id="java92734X11X39SQ004" value="" />

                        </td>
                    </tr>
                    <tr>
                        <td class="survey-question-help">
    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    </div>

    <!-- END THE GROUP -->
    </td>
    </tr>
    </table>

    </div>
    <script type="text/javascript" src="http://192.168.0.112/limesurvey/scripts/em_javascript.js"></script>
    <script type='text/javascript'>
    <!--
    var LEMmode='survey';
    function ExprMgr_process_relevance_and_tailoring(evt_type,sgqa,type){
    if (typeof LEM_initialized == 'undefined') {
    LEM_initialized=true;
    LEMsetTabIndexes();
    }
    if (evt_type == 'onchange' && (typeof last_sgqa !== 'undefined' && sgqa==last_sgqa) && (typeof last_evt_type !== 'undefined' && last_evt_type == 'TAB' && type != 'checkbox')) {
    last_evt_type='onchange';
    last_sgqa=sgqa;
    return;
    }
    last_evt_type = evt_type;
    last_sgqa=sgqa;
    relChange34=false;
    relChange35=false;
    relChange36=false;
    relChange37=false;
    relChange38=false;
    relChange39=false;
    relChangeG0=false;
    relChangeG1=false;

    }
    //-->
    </script>
    <input type='hidden' id='relevance34' name='relevance34' value='1'/>
    <input type='hidden' id='relevance35' name='relevance35' value='1'/>
    <input type='hidden' id='relevance36' name='relevance36' value='1'/>
    <input type='hidden' id='relevance37' name='relevance37' value='1'/>
    <input type='hidden' id='relevance38' name='relevance38' value='1'/>
    <input type='hidden' id='relevance39' name='relevance39' value='1'/>
    <input type='hidden' id='relevanceG0' name='relevanceG0' value='1'/>
    <input type='hidden' id='relevanceG1' name='relevanceG1' value='1'/>

    <!-- PRESENT THE NAVIGATOR -->
    <table class="navigator-table">
    <tr>
    <td>
    <span class="submit-buttons"><input type="hidden" name="move" value="movenext" id="movenext" /> <input class="submit" type="submit" accesskey="l" onclick="javascript:document.limesurvey.move.value = 'movesubmit';" value="Submit" name="move2" id="movesubmitbtn" />
    </span>

    <span class="clear-all"><input type='button' name='clearallbtn' value='Exit and clear survey' class='clearall' onclick="if (confirm('Are you sure you want to clear all your responses?')) {
    window.open('http://192.168.0.112/limesurvey/index.php?sid=92734&move=clearall&lang=en', '_self')}" /></span>
    <span class="save-all"> <input type='button' name='loadall' value='Load unfinished survey' class='saveall' onclick="javascript:addHiddenField(document.getElementById('limesurvey'),'loadall',this.value);document.getElementById('limesurvey').submit();" />
    <input type='button' name='saveallbtn' value='Resume later' class='saveall' onclick="javascript:document.limesurvey.move.value = this.value;addHiddenField(document.getElementById('limesurvey'),'saveall',this.value);document.getElementById('limesurvey').submit();" /></span>

        </td>
    </tr>

    </table>
    <input type='hidden' name='thisstep' value='2' id='thisstep' />
    <input type='hidden' name='sid' value='92734' id='sid' />
    <input type='hidden' name='start_time' value='1339427066' id='start_time' />
    <input type='hidden' name='LEMpostKey' value='1172789654' id='LEMpostKey' />
    </form>
    </td>
    </tr>
    </table>
    </div>

    </body>

    </html>

    Mazi

    Mazi

    2012-06-12 13:51

    updater   ~19197

    Really weird. Can you attach the survetranslator.php file that is mentioned at the error message?

    user20316

    2012-06-12 16:30

      ~19215

    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?

    user20316

    2012-06-12 16:37

      ~19216

    What I ment to say was a grep search not grub. My mind and fingers weren't yet connected I guess

    user20316

    2012-06-12 17:31

      ~19219

    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?

    Mazi

    Mazi

    2012-06-12 18:55

    updater   ~19221

    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?

    user20316

    2012-06-12 19:53

      ~19224

    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
    Kevin

    TMSWhite

    TMSWhite

    2012-06-12 21:49

    reporter   ~19231

    Per reporter, this was not a bug.

    Mazi

    Mazi

    2012-06-12 22:38

    updater   ~19232

    Have a look at http://donate.limesurvey.org ;-)

    Issue History

    Date Modified Username Field Change
    2012-06-09 01:45 user20316 New Issue
    2012-06-09 02:09 user20316 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 user20316 Note Added: 19124
    2012-06-09 03:04 user20316 Status resolved => feedback
    2012-06-09 03:04 user20316 Resolution no change required => reopened
    2012-06-09 03:07 user20316 Note Added: 19125
    2012-06-09 03:07 user20316 Status feedback => assigned
    2012-06-09 03:09 user20316 File Added: limesurvey_survey_92734.lss.xml
    2012-06-09 03:10 user20316 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 user20316 Note Added: 19129
    2012-06-09 06:52 user20316 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 user20316 Note Added: 19137
    2012-06-10 01:26 user20316 Note Added: 19138
    2012-06-10 01:26 user20316 Status resolved => feedback
    2012-06-10 01:26 user20316 Resolution no change required => reopened
    2012-06-10 01:37 user20316 Note Added: 19139
    2012-06-10 01:37 user20316 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 user20316 Note Added: 19141
    2012-06-11 10:01 Mazi Note Added: 19146
    2012-06-11 17:05 user20316 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 user20316 File Added: surveytranslator.php
    2012-06-12 16:30 user20316 Note Added: 19215
    2012-06-12 16:30 user20316 Status feedback => assigned
    2012-06-12 16:37 user20316 Note Added: 19216
    2012-06-12 17:31 user20316 Note Added: 19219
    2012-06-12 18:55 Mazi Note Added: 19221
    2012-06-12 19:53 user20316 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