Skip to content

Commit

Permalink
Fixed issue #17625: Untranslated texts
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 18, 2022
1 parent 4b8b33c commit f626282
Show file tree
Hide file tree
Showing 41 changed files with 1,053 additions and 1,053 deletions.
2 changes: 1 addition & 1 deletion application/core/SurveyCommonAction.php
Expand Up @@ -597,7 +597,7 @@ public function questionbar($aData)
//Count answer-options for this question
$aData['qct'] = Answer::model()->countByAttributes(array('qid' => $qid));

//Count sub-questions for this question
//Count subquestions for this question
$aData['sqct'] = Question::model()->countByAttributes(array('parent_qid' => $qid));

$qrrow = Question::model()->findByAttributes(array('qid' => $qid, 'gid' => $gid, 'sid' => $iSurveyID));
Expand Down
Expand Up @@ -11,7 +11,7 @@
value="<?= CHtml::encode($value); ?>"
checked
/>
<?= $text; ?>
<?= gT($text); ?>
</label>
<?php else: ?>
<label class="btn btn-default">
Expand All @@ -20,7 +20,7 @@
name="<?= $inputBaseName ?>"
value="<?= CHtml::encode($value); ?>"
/>
<?= $text; ?>
<?= gT($text); ?>
</label>
<?php endif; ?>
<?php endforeach; ?>
Expand Down
Expand Up @@ -10,7 +10,7 @@ class="form-control"
<?php else: ?>
<option value="<?= CHtml::encode($value); ?>">
<?php endif; ?>
<?= $text; ?>
<?= gT($text); ?>
</option>
<?php endforeach; ?>
</select>
4 changes: 2 additions & 2 deletions application/helpers/questionHelper.php
Expand Up @@ -821,7 +821,7 @@ public static function getAttributesDefinitions()
'i18n' => true,
'default' => "",
"help" => gT('In the printable version the condition is being replaced with this explanation text.'),
"caption" => gT("Condition replacement text for printable survey")
"caption" => gT("Condition help for printable survey")
);

self::$attributes["public_statistics"] = array(
Expand Down Expand Up @@ -1432,7 +1432,7 @@ public static function getAttributesDefinitions()
'sortorder' => 100,
"inputtype" => "integer",
'default' => 1,
"help" => gT("Visual minute step interval"),
"help" => gT("Minute step interval when using select boxes"),
"caption" => gT("Minute step interval")
);

Expand Down
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -44,7 +44,7 @@
* @property string[] $quotableTypes Question types that can be used for quotas
* @property Answer[] $answers
* @property QuestionType $questionType
* @property array $allSubQuestionIds QID-s of all question sub-questions, empty array returned if no sub-questions
* @property array $allSubQuestionIds QID-s of all question subquestions, empty array returned if no subquestions
* @inheritdoc
*/
class Question extends LSActiveRecord
Expand Down
Expand Up @@ -153,7 +153,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -163,7 +163,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -221,7 +221,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -163,7 +163,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -221,7 +221,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -176,7 +176,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -257,7 +257,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -149,7 +149,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -177,7 +177,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -306,7 +306,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -163,7 +163,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -221,7 +221,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -309,7 +309,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -367,7 +367,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down Expand Up @@ -418,8 +418,8 @@
<inputtype>textarea</inputtype>
<expression>2</expression>
<xssfilter>0</xssfilter>
<help>Enter a boolean equation to validate each sub-question.</help>
<caption>Sub-question validation equation</caption>
<help>Enter a boolean equation to validate each subquestion.</help>
<caption>Subquestion validation equation</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
Expand All @@ -431,8 +431,8 @@
<inputtype>textarea</inputtype>
<expression>1</expression>
<i18n>1</i18n>
<help>This is a tip shown to the participant describing the sub-question validation equation.</help>
<caption>Sub-question validation tip</caption>
<help>This is a tip shown to the participant describing the subquestion validation equation.</help>
<caption>Subquestion validation tip</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -248,7 +248,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down Expand Up @@ -299,8 +299,8 @@
<inputtype>textarea</inputtype>
<expression>2</expression>
<xssfilter>0</xssfilter>
<help>Enter a boolean equation to validate each sub-question.</help>
<caption>Sub-question validation equation</caption>
<help>Enter a boolean equation to validate each subquestion.</help>
<caption>Subquestion validation equation</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
Expand All @@ -312,8 +312,8 @@
<inputtype>textarea</inputtype>
<expression>1</expression>
<i18n>1</i18n>
<help>This is a tip shown to the participant describing the sub-question validation equation.</help>
<caption>Sub-question validation tip</caption>
<help>This is a tip shown to the participant describing the subquestion validation equation.</help>
<caption>Subquestion validation tip</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -163,7 +163,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -221,7 +221,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/answer/date/config.xml
Expand Up @@ -149,7 +149,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -104,7 +104,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -149,7 +149,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -276,7 +276,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -172,7 +172,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down
Expand Up @@ -228,7 +228,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -349,7 +349,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -201,7 +201,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -272,7 +272,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -269,7 +269,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -394,7 +394,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down
Expand Up @@ -99,7 +99,7 @@
</option>
</options>
<default>0</default>
<help>Specify how array-filtered sub-questions should be displayed</help>
<help>Specify how array-filtered subquestions should be displayed</help>
<caption>Array filter style</caption>
<i18n></i18n>
<readonly></readonly>
Expand Down Expand Up @@ -150,8 +150,8 @@
<inputtype>textarea</inputtype>
<expression>2</expression>
<xssfilter>0</xssfilter>
<help>Enter a boolean equation to validate each sub-question.</help>
<caption>Sub-question validation equation</caption>
<help>Enter a boolean equation to validate each subquestion.</help>
<caption>Subquestion validation equation</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
Expand All @@ -163,8 +163,8 @@
<inputtype>textarea</inputtype>
<expression>1</expression>
<i18n>1</i18n>
<help>This is a tip shown to the participant describing the sub-question validation equation.</help>
<caption>Sub-question validation tip</caption>
<help>This is a tip shown to the participant describing the subquestion validation equation.</help>
<caption>Subquestion validation tip</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down Expand Up @@ -465,7 +465,7 @@
<i18n>1</i18n>
<default></default>
<help>In the printable version the condition is being replaced with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<caption>Condition help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
Expand Down

0 comments on commit f626282

Please sign in to comment.