Skip to content

Commit

Permalink
Added new "replace" line in welcome.pstpl - {THEREAREXQUESTIONS} - wh…
Browse files Browse the repository at this point in the history
…ich uses new constants defined in the public language file _THEREAREXQUESTIONS -or- _THEREAREXQUESTIONS_SINGLE to display the text "There are X questions in this survey". This is the last of all hard-coded text in the template files.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1034 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed May 20, 2004
1 parent 27c05cd commit ecdf374
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 4 deletions.
10 changes: 9 additions & 1 deletion index.php
Expand Up @@ -304,7 +304,15 @@ function templatereplace($line)
$line=str_replace("{QUESTION}", $question, $line);
$line=str_replace("{QUESTION_CODE}", $questioncode, $line);
$line=str_replace("{ANSWER}", $answer, $line);
$line=str_replace("{NUMBEROFQUESTIONS}", $totalquestions, $line);
if ($totalquestions < 2)
{
$line=str_replace("{THEREAREXQUESTIONS}", _THEREAREXQUESTIONS_SINGLE, $line); //Singular
}
else
{
$line=str_replace("{THEREAREXQUESTIONS}", _THEREAREXQUESTIONS, $line); //Note this line MUST be before {NUMBEROFQUESTIONS}
$line=str_replace("{NUMBEROFQUESTIONS}", $totalquestions, $line);
}
$line=str_replace("{TOKEN}", $token, $line);
$line=str_replace("{SID}", $sid, $line);
if ($help) {
Expand Down
3 changes: 3 additions & 0 deletions lang/chinese.lang.php
Expand Up @@ -142,6 +142,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/danish.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/english.lang.php
Expand Up @@ -140,6 +140,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/french.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/hungarian.lang.php
Expand Up @@ -145,6 +145,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/italian.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/norwegian.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/simplified-chinese.lang.php
Expand Up @@ -142,6 +142,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/slovenian.lang.php
Expand Up @@ -146,6 +146,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/spanish.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
3 changes: 3 additions & 0 deletions lang/swedish.lang.php
Expand Up @@ -144,6 +144,9 @@
."(or haven't) completed this survey. There is no way of matching "
."identification tokens with survey responses in this survey."); //New for 0.98rc9

define("_THEREAREXQUESTIONS", "There are {NUMBEROFQUESTIONS} questions in this survey."); //New for 0.98rc9 Must contain {NUMBEROFQUESTIONS} which gets replaced with a question count.
define("_THEREAREXQUESTIONS_SINGLE", "There is 1 question in this survey."); //New for 0.98rc9 - singular version of above

define ("_RG_REGISTER1", "You must be registered to complete this survey"); //NEW for 0.98rc9
define ("_RG_REGISTER2", "You may register for this survey if you wish to take part.<br />\n"
."Enter your details below, and an email containing the link to "
Expand Down
2 changes: 1 addition & 1 deletion templates/bubblegum/welcome.pstpl
Expand Up @@ -8,7 +8,7 @@
<tr>
<td align='center' bgcolor='#F0F0FF'>
<font size='2'>{WELCOME}<br /><br />
<i>There are {NUMBEROFQUESTIONS} questions in this survey.</i>
<i>{THEREAREXQUESTIONS}</i>
</td>
</tr>
</table>
2 changes: 1 addition & 1 deletion templates/default/welcome.pstpl
Expand Up @@ -8,7 +8,7 @@
<tr>
<td align='center' bgcolor='#DEDEDE'>
<font face='verdana' size='2'>{WELCOME}<br /><br />
<i>There are {NUMBEROFQUESTIONS} questions in this survey.</i>
<i>{THEREAREXQUESTIONS}</i>
</font></td>
</tr>
</table>
2 changes: 1 addition & 1 deletion templates/edgyblue/welcome.pstpl
Expand Up @@ -20,7 +20,7 @@
<td></td>
<td align='center'>
<font size='2'><br />{WELCOME}<br /><br />
<i>There are {NUMBEROFQUESTIONS} questions in this survey.</i><br />&nbsp;
<i>{THEREAREXQUESTIONS}</i><br />&nbsp;
</td>
<td></td>
</tr>
Expand Down

0 comments on commit ecdf374

Please sign in to comment.