PollController: German & French Translation

This commit is contained in:
alkl58
2021-12-08 20:57:23 +01:00
parent 57f868194f
commit a2da1e3480
4 changed files with 42 additions and 32 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ class PollController extends Controller
if ($userHasVoted) {
return \redirect()->route('poll_results', ['id' => $poll->id])
->withInfo('You have already vote on this poll. Here are the results.');
->withInfo(\trans('poll.already-voted-result'));
}
return \view('poll.show', ['poll' => $poll]);
@@ -76,7 +76,7 @@ class PollController extends Controller
->exists();
if ($voted) {
return \redirect()->route('poll_results', ['id' => $poll->id])
->withErrors('Bro have already vote on this poll. Your vote has not been counted.');
->withErrors(\trans('poll.already-voted-error'));
}
// Operate options after validation
@@ -98,7 +98,7 @@ class PollController extends Controller
);
return \redirect()->route('poll_results', ['id' => $poll->id])
->withSuccess('Your vote has been counted.');
->withSuccess(\trans('poll.vote-counted'));
}
/**