Просмотр исходного кода

Highlight keywords in before test section

Alan Lam 3 лет назад
Родитель
Сommit
26cb9c20bc
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      engine/project.php

+ 9 - 9
engine/project.php

@@ -628,19 +628,19 @@ class Project extends Model {
 						if($this->browse_time) {
 							?>
 							<li>
-								<?=htmlspecialchars(n__(
-									"This test requires %d minute of browsing time.",
-									"This test requires %d minutes of browsing time.",
+								<?=n__(
+									"This test requires <strong style=\"background: yellow\">%d minute</strong> of browsing time.",
+									"This test requires <strong style=\"background: yellow\">%d minutes</strong> of browsing time.",
 									$this->browse_time,
 									$this->browse_time
-								))?>
+								)?>
 							</li>
 							<?php
 						}
 						if($this->play_money > 0) {
 							?>
 							<li>
-								<?=htmlspecialchars(__("This test has a total of £%.02f reimbursible play money.", $this->play_money))?>
+								<?=__("This test has a total of <strong style=\"background: yellow\">£%.02f reimbursible</strong> play money.", $this->play_money)?>
 								<?=htmlspecialchars(__("Do not spend more than this."))?>
 							</li>
 							<?php
@@ -648,12 +648,12 @@ class Project extends Model {
 						if($this->play_time) {
 							?>
 							<li>
-								<?=htmlspecialchars(n__(
-									"You must play the machine for %d minute.",
-									"You must play the machine for %d minutes.",
+								<?=n__(
+									"You must play the machine for <strong style=\"background: yellow\">%d minute</strong>.",
+									"You must play the machine for <strong style=\"background: yellow\">%d minutes</strong>.",
 									$this->play_time,
 									$this->play_time
-								))?>
+								)?>
 							</li>
 							<?php
 						}