Skip to content

Commit c28a7eb

Browse files
authored
Merge pull request #5 from mlocati/fix-translation
Improve translation of missing required field messages
2 parents 059a114 + b4b0fea commit c28a7eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blocks/pure_cookies_notice/controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ public function validate($data)
280280
$e = $this->app->make('error');
281281

282282
if (empty($data['content'])) {
283-
$e->add(t('%s is required', 'Content'));
283+
$e->add(t('Field "Content" is required'));
284284
}
285285
if (empty($data['position'])) {
286-
$e->add(t('%s is required', 'Position'));
286+
$e->add(t('Field "Position" is required'));
287287
}
288288

289289
return $e;

0 commit comments

Comments
 (0)