Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added message at the top of "mandatory" questions to indicate that th…
…ey are required. Uses new language constant "_REQUIRED" which by default is a red star.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1131 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 20, 2004
1 parent 0a1e9b4 commit 2bce6a3
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/chinese.lang.php
Expand Up @@ -51,6 +51,7 @@
define("_INCREASE", "增加"); //NEW WITH 0.98
define("_SAME", "相同"); //NEW WITH 0.98
define("_DECREASE", "下降"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "確認");
define("_TOKEN_PS", "操作代碼");
Expand Down
1 change: 1 addition & 0 deletions lang/danish.lang.php
Expand Up @@ -54,6 +54,7 @@
define("_INCREASE", "H&aelig;v"); //NEW WITH 0.98
define("_SAME", "Samme"); //NEW WITH 0.98
define("_DECREASE", "S&aelig;nk"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Bekr&aelig;ftelse");
define("_TOKEN_PS", "N&oslash;gle");
Expand Down
1 change: 1 addition & 0 deletions lang/english.lang.php
Expand Up @@ -50,6 +50,7 @@
define("_INCREASE", "Increase"); //NEW WITH 0.98
define("_SAME", "Same"); //NEW WITH 0.98
define("_DECREASE", "Decrease"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Confirmation");
define("_TOKEN_PS", "Token");
Expand Down
1 change: 1 addition & 0 deletions lang/french.lang.php
Expand Up @@ -56,6 +56,7 @@
define("_INCREASE", "Augmenter"); //NEW WITH 0.98
define("_SAME", "Sans Changement"); //NEW WITH 0.98
define("_DECREASE", "Diminuer"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Confirmation");
define("_TOKEN_PS", "Invitation");
Expand Down
1 change: 1 addition & 0 deletions lang/hungarian.lang.php
Expand Up @@ -55,6 +55,7 @@
define("_INCREASE", "Növel"); //NEW WITH 0.98
define("_SAME", "Ugyanaz"); //NEW WITH 0.98
define("_DECREASE", "Csökkent"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Megerõsítés");
define("_TOKEN_PS", "Kód");
Expand Down
1 change: 1 addition & 0 deletions lang/italian.lang.php
Expand Up @@ -54,6 +54,7 @@
define("_INCREASE", "Crescente"); //NEW WITH 0.98
define("_SAME", "Uguale"); //NEW WITH 0.98
define("_DECREASE", "Descrescente"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Conferma");
define("_TOKEN_PS", "Token");
Expand Down
1 change: 1 addition & 0 deletions lang/norwegian.lang.php
Expand Up @@ -54,6 +54,7 @@
define("_INCREASE", "&Oslash;k"); //NEW WITH 0.98
define("_SAME", "Samme"); //NEW WITH 0.98
define("_DECREASE", "Minsk"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Bekreftelse");
define("_TOKEN_PS", "ID");
Expand Down
1 change: 1 addition & 0 deletions lang/simplified-chinese.lang.php
Expand Up @@ -52,6 +52,7 @@
define("_INCREASE", "增加"); //NEW WITH 0.98
define("_SAME", "相同"); //NEW WITH 0.98
define("_DECREASE", "减少"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "确认");
define("_TOKEN_PS", "令牌");
Expand Down
1 change: 1 addition & 0 deletions lang/slovenian.lang.php
Expand Up @@ -56,6 +56,7 @@
define("_INCREASE", "Poveèalo"); //NEW WITH 0.98
define("_SAME", "Ostalo enako"); //NEW WITH 0.98
define("_DECREASE", "Zmanj¹alo"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Potrditev");
define("_TOKEN_PS", "Geslo");
Expand Down
1 change: 1 addition & 0 deletions lang/spanish.lang.php
Expand Up @@ -54,6 +54,7 @@
define("_INCREASE", "Aumento"); //NEW WITH 0.98 BABELFISH TRANSLATION
define("_SAME", "Iguales"); //NEW WITH 0.98 BABELFISH TRANSLATION
define("_DECREASE", "Disminución"); //NEW WITH 0.98 BABELFISH TRANSLATION
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01
//from questions.php
define("_CONFIRMATION", "Confirmación");
define("_TOKEN_PS", "Token");
Expand Down
1 change: 1 addition & 0 deletions lang/swedish.lang.php
Expand Up @@ -61,6 +61,7 @@
define("_INCREASE", "Öka"); //NEW WITH 0.98
define("_SAME", "Samma"); //NEW WITH 0.98
define("_DECREASE", "Minska"); //NEW WITH 0.98
define("_REQUIRED", "<font color='red'>*</font>"); //NEW WITH 0.99dev01

//BUTTONS
define("_ACCEPT", "Acceptera");
Expand Down
6 changes: 6 additions & 0 deletions qanda.php
Expand Up @@ -48,6 +48,8 @@
*/
function retrieveConditionInfo($ia)
{
//This function returns an array containing all related conditions
//for a question - the array contains the fields from the conditions table
global $dbprefix;
if ($ia[7] == "Y")
{ //DEVELOP CONDITIONS ARRAY FOR THIS QUESTION
Expand Down Expand Up @@ -317,6 +319,10 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
}
$answer .= "'>\n"; //for conditional mandatory questions

if ($ia[6] == "Y")
{
$qtitle = _REQUIRED.$qtitle;
}
//If this question is mandatory but wasn't answered in the last page
//add a message HIGHLIGHTING the question
$qtitle .= mandatory_message($ia);
Expand Down

0 comments on commit 2bce6a3

Please sign in to comment.