Skip to content

Commit 5dd7561

Browse files
committed
Exercises: Remove French hardcoded texts - fixes #2605
1 parent b8ebc4d commit 5dd7561

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

main/exercise/MultipleAnswerTrueFalseDegreeCertainty.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,7 @@ public static function displayDegreeChartChildren(
794794
$title = ucfirst(api_preg_replace("/[\[\]]/", '', $title));
795795
}
796796

797-
$display = (strpos($title, "ensemble") > 0) ?
798-
$title."<br/>($totalAttemptNumber questions)" :
799-
$title;
800-
$textSize = (
801-
strpos($title, 'ensemble') > 0 ||
802-
strpos($title, 'votre dernier résultat à ce test') > 0
803-
) ? 100 : 80;
797+
$textSize = 80;
804798

805799
$classGlobalChart = '';
806800
if ($displayExplanationText) {
@@ -809,10 +803,8 @@ public static function displayDegreeChartChildren(
809803
}
810804

811805
$html .= '<table class="certaintyTable" style="height :'.$verticalLineHeight.'px; margin-bottom: 10px;" >';
812-
$html .= '<tr><th colspan="5" class="'
813-
.$classGlobalChart
814-
.'">'
815-
.$display
806+
$html .= '<tr><th colspan="5" class="'.$classGlobalChart.'">'
807+
.$title
816808
.'</th><tr>'
817809
;
818810

0 commit comments

Comments
 (0)