mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-27 22:14:40 -05:00
PollController: German & French Translation
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user