From b5fdd1fd93ff9bd8e52fa8418c1e10417548d556 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 8 Oct 2022 08:27:29 +0200 Subject: add two new system messages for error messages --- Vote.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Vote.php') diff --git a/Vote.php b/Vote.php index b27cb5b..ada160a 100644 --- a/Vote.php +++ b/Vote.php @@ -74,12 +74,12 @@ class VoteHooks { if (!$date) { $addErrorCategory(); - $voteText .= formatError("invalid date" . ':') . " $line\n"; + $voteText .= formatError($msg('vote-error-invalid-date') . ':') . " $line\n"; continue; } if (!in_array($vote, self::$options)) { $addErrorCategory(); - $voteText .= formatError("invalid vote (expected YES, NO or ABSTAIN)" . ':') . " $line\n"; + $voteText .= formatError($msg('vote-error-invalid-vote', '(YES, NO, ABSTAIN)') . ':') . " $line\n"; continue; } -- cgit v1.2.3