Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cint
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 5, 2016
2 parents e4105b7 + d1ce539 commit 9b84f13
Show file tree
Hide file tree
Showing 33 changed files with 120 additions and 62 deletions.
2 changes: 1 addition & 1 deletion application/controllers/RegisterController.php
Expand Up @@ -144,7 +144,7 @@ public function getRegisterErrors($iSurveyId){

if (!$captchaCorrect)
{
$this->aRegisterErrors[] = gT("The answer to the security question is incorrect.");
$this->aRegisterErrors[] = gT("Your answer to the security question was not correct - please try again.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion application/helpers/frontend_helper.php
Expand Up @@ -986,7 +986,7 @@ function buildsurveysession($surveyid,$preview=false)
{
if (isset($loadsecurity))
{ // was a bad answer
$FlashError.=gT("The content of the captcha is incorrect.")."<br/>\n";
$FlashError.=gT("Your answer to the security question was not correct - please try again.")."<br/>\n";
}
$renderCaptcha='main';
}
Expand Down
48 changes: 26 additions & 22 deletions application/views/admin/notifications/notifications.php
@@ -1,22 +1,26 @@
<div id="notif-container" class="col-lg-12 content-right" style="z-index: 999">
<?php foreach($aMessage as $message):?>
<?php
if(isset($message['type']) && in_array($message['type'],array('error','success','danger','warning','info')))
{
$sType=$message['type'];
if($sType=='error')
{
$sType='danger';
}
}
else
{
$sType='success';
}
echo CHtml::openTag("div",array('class'=>"alert alert-{$sType} alert-dismissible",'role'=>'alert'));
echo CHtml::htmlButton("<span >&times;</span>",array('type'=>'button','class'=>'close','data-dismiss'=>'alert','aria-label'=>gT("Close")));
echo $message['message'];
echo CHtml::closeTag("div");
?>
<?php endforeach;?>
</div>
<div class="container-fluid">
<div class="row">
<div id="notif-container" class="col-sm-12 content-right" style="z-index: 999">
<?php foreach($aMessage as $message):?>
<?php
if(isset($message['type']) && in_array($message['type'],array('error','success','danger','warning','info')))
{
$sType=$message['type'];
if($sType=='error')
{
$sType='danger';
}
}
else
{
$sType='success';
}
echo CHtml::openTag("div",array('class'=>"alert alert-{$sType} alert-dismissible",'role'=>'alert'));
echo CHtml::htmlButton("<span >&times;</span>",array('type'=>'button','class'=>'close','data-dismiss'=>'alert','aria-label'=>gT("Close")));
echo $message['message'];
echo CHtml::closeTag("div");
?>
<?php endforeach;?>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion application/views/admin/survey/surveybar_view.php
Expand Up @@ -7,7 +7,7 @@


<div class='menubar surveybar' id="surveybarid">
<div class='row container-fluid'>
<div class='row container-fluid row-button-margin-bottom'>

<?php // If there are no save or close buttons, take up some more space (useful for 1366x768 screens) ?>
<?php if (!isset($surveybar['savebutton']['form']) && (!isset($surveybar['saveandclosebutton'])) && (!isset($surveybar['closebutton']))): ?>
Expand Down
Expand Up @@ -23,14 +23,14 @@
<tr id='javatbd<?php echo $myfname; ?>' class="question-item answer-item numeric-item text-item" <?php echo $sDisplayStyle;?>>
<td class='text-right align-middle'>
<?php if($alert):?>
<div class="label label-danger errormandatory" role="alert">
<label class="control-label numeric-label label label-danger errormandatory" role="alert">
<?php echo $labelText;?>
</div> <!-- alert -->
</label> <!-- alert -->
<?php else:?>
<label class='control-label numeric-label' for="answer<?php echo $myfname; ?>">
<?php echo $labelText;?>
</label>
<?php endif;?>

<label class='control-label numeric-label' for="answer<?php echo $myfname; ?>">
<?php echo $labelText;?>
</label>
</td>

<?php if (!empty($prefix)): ?>
Expand Down
20 changes: 10 additions & 10 deletions locale/_template/limesurvey.pot
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: LimeSurvey language file\n"
"Report-Msgid-Bugs-To: http://translate.limesurvey.org/\n"
"POT-Creation-Date: 2016-08-05 08:07:22+00:00\n"
"POT-Creation-Date: 2016-08-05 08:52:07+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -467,9 +467,8 @@ msgid "ID"
msgstr ""

#: application/controllers/RegisterController.php:147
#: application/controllers/survey/index.php:344
#: application/libraries/Save.php:130
msgid "The answer to the security question is incorrect."
#: application/helpers/frontend_helper.php:989
msgid "Your answer to the security question was not correct - please try again."
msgstr ""

#: application/controllers/RegisterController.php:156
Expand Down Expand Up @@ -4893,6 +4892,11 @@ msgstr ""
msgid "You did not answer to the security question."
msgstr ""

#: application/controllers/survey/index.php:344
#: application/libraries/Save.php:130
msgid "The answer to the security question is incorrect."
msgstr ""

#: application/controllers/survey/index.php:355
msgid "There is no matching saved survey"
msgstr ""
Expand Down Expand Up @@ -7339,10 +7343,6 @@ msgstr ""
msgid "Try to submit again"
msgstr ""

#: application/helpers/frontend_helper.php:989
msgid "The content of the captcha is incorrect."
msgstr ""

#: application/helpers/frontend_helper.php:1018
msgid "The token you have provided is either not valid, or has already been used."
msgstr ""
Expand Down Expand Up @@ -9664,7 +9664,7 @@ msgid "Database update"
msgstr ""

#: application/helpers/update/updatedb_helper.php:1440
msgid "The database has been updated to version 259. New version includes notification system."
msgid "The database has been updated from version %s to version %s."
msgstr ""

#: application/helpers/update/updatedb_helper.php:2781
Expand Down Expand Up @@ -18278,7 +18278,7 @@ msgid "Before you start, please prove you are human."
msgstr ""

#: application/views/survey/frontpage/enterToken.php:8
msgid "This is a controlled survey, you need a valid token to participate."
msgid "To participate in this restricted survey, you need a valid token."
msgstr ""

#: application/views/survey/frontpage/enterToken.php:10
Expand Down
Binary file modified locale/de/de.mo
Binary file not shown.
Binary file modified locale/it-informal/it-informal.mo
Binary file not shown.
Binary file modified locale/it/it.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion styles/Apple_Blossom/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Apple_Blossom/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Bay_of_Many/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Bay_of_Many/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Black_Pearl/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Black_Pearl/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Dark_Sky/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Dark_Sky/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Free_Magenta/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Free_Magenta/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Noto_All_Languages/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Noto_All_Languages/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Purple_Tentacle/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Purple_Tentacle/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Sea_Green/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Sea_Green/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down
2 changes: 1 addition & 1 deletion styles/Sunset_Orange/css/lime-admin-common-rtl.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion styles/Sunset_Orange/css/lime-admin-common.css
Expand Up @@ -4,7 +4,12 @@
* This file contain all the common css definitions for the different admin theme.
* It should not contain color definition (grey, blacks, and white are acceptable)
*/

.row-button-margin-bottom {
margin-bottom: -5px;
}
.row-button-margin-bottom .btn{
margin-bottom: 5px;
}

.ui-datepicker {
width: 17em;
Expand Down

0 comments on commit 9b84f13

Please sign in to comment.