mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-05 01:40:54 -05:00
BonusController: German & French Translation
This commit is contained in:
@@ -212,18 +212,18 @@ class BonusController extends Controller
|
||||
|
||||
if (! $flag) {
|
||||
return \redirect()->route('bonus_store')
|
||||
->withErrors('Bonus Exchange Failed!');
|
||||
->withErrors(\trans('bon.failed'));
|
||||
}
|
||||
|
||||
$user->seedbonus -= $itemCost;
|
||||
$user->save();
|
||||
} else {
|
||||
return \redirect()->route('bonus_store')
|
||||
->withErrors('Bonus Exchange Failed!');
|
||||
->withErrors(\trans('bon.failed'));
|
||||
}
|
||||
|
||||
return \redirect()->route('bonus_store')
|
||||
->withSuccess('Bonus Exchange Successful');
|
||||
->withSuccess(\trans('bon.success'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -261,9 +261,9 @@ class BonusController extends Controller
|
||||
$privateMessage = new PrivateMessage();
|
||||
$privateMessage->sender_id = 1;
|
||||
$privateMessage->receiver_id = $userAcc->id;
|
||||
$privateMessage->subject = 'Personal 24 Hour Freeleech Activated';
|
||||
$privateMessage->message = \sprintf('Your [b]Personal 24 Hour Freeleech[/b] session has started! It will expire on %s [b]', $current->addDays(1)->toDayDateTimeString()).\config('app.timezone').'[/b]!
|
||||
[color=red][b]THIS IS AN AUTOMATED SYSTEM MESSAGE, PLEASE DO NOT REPLY![/b][/color]';
|
||||
$privateMessage->subject = \trans('bon.pm-subject');
|
||||
$privateMessage->message = \sprintf(\trans('bon.pm-message'), $current->addDays(1)->toDayDateTimeString()).\config('app.timezone').'[/b]!
|
||||
[color=red][b]'.\trans('common.system-message').'[/b][/color]';
|
||||
$privateMessage->save();
|
||||
} else {
|
||||
return false;
|
||||
@@ -314,7 +314,7 @@ class BonusController extends Controller
|
||||
|
||||
if (! $recipient || $recipient->id == $user->id) {
|
||||
return \redirect()->route('bonus_store')
|
||||
->withErrors('Unable to find specified user');
|
||||
->withErrors(\trans('bon.failed-user-not-found'));
|
||||
}
|
||||
|
||||
$value = $request->input('bonus_points');
|
||||
@@ -342,16 +342,16 @@ class BonusController extends Controller
|
||||
$recipientUrl = \href_profile($recipient);
|
||||
|
||||
$this->chatRepository->systemMessage(
|
||||
\sprintf('[url=%s]%s[/url] has gifted %s BON to [url=%s]%s[/url]', $profileUrl, $user->username, $value, $recipientUrl, $recipient->username)
|
||||
\sprintf(\trans('bon.system-message'), $profileUrl, $user->username, $value, $recipientUrl, $recipient->username)
|
||||
);
|
||||
|
||||
if ($dest == 'profile') {
|
||||
return \redirect()->route('users.show', ['username' => $recipient->username])
|
||||
->withSuccess('Gift Sent');
|
||||
->withSuccess(\trans('bon.gift-sent'));
|
||||
}
|
||||
|
||||
return \redirect()->route('bonus_gift')
|
||||
->withSuccess('Gift Sent');
|
||||
->withSuccess(\trans('bon.gift-sent'));
|
||||
}
|
||||
|
||||
$v = \validator($request->all(), [
|
||||
@@ -362,20 +362,20 @@ class BonusController extends Controller
|
||||
|
||||
if (! $recipient || $recipient->id == $user->id) {
|
||||
return \redirect()->route('bonus_store')
|
||||
->withErrors('Unable to find specified user');
|
||||
->withErrors(\trans('bon.failed-user-not-found'));
|
||||
}
|
||||
|
||||
if ($dest == 'profile') {
|
||||
return \redirect()->route('users.show', ['username' => $recipient->username])
|
||||
->withErrors('You Must Enter An Amount And Message!');
|
||||
->withErrors(\trans('bon.failed-amount-message'));
|
||||
}
|
||||
|
||||
return \redirect()->route('bonus_gift')
|
||||
->withErrors('You Must Enter An Amount And Message!');
|
||||
->withErrors(\trans('bon.failed-amount-message'));
|
||||
}
|
||||
|
||||
return \redirect()->route('bonus_store')
|
||||
->withErrors('Unable to find specified user');
|
||||
->withErrors(\trans('bon.failed-user-not-found'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,17 +394,17 @@ class BonusController extends Controller
|
||||
$tipAmount = $request->input('tip');
|
||||
if ($tipAmount > $user->seedbonus) {
|
||||
return \redirect()->route('torrent', ['id' => $torrent->id])
|
||||
->withErrors('Your To Broke To Tip The Uploader!');
|
||||
->withErrors(\trans('bon.failed-funds-uploader'));
|
||||
}
|
||||
|
||||
if ($user->id == $torrent->user_id) {
|
||||
return \redirect()->route('torrent', ['id' => $torrent->id])
|
||||
->withErrors('You Cannot Tip Yourself!');
|
||||
->withErrors(\trans('bon.failed-yourself'));
|
||||
}
|
||||
|
||||
if ($tipAmount <= 0) {
|
||||
return \redirect()->route('torrent', ['id' => $torrent->id])
|
||||
->withErrors('You Cannot Tip A Negative Amount!');
|
||||
->withErrors(\trans('bon.failed-negative'));
|
||||
}
|
||||
|
||||
$uploader->seedbonus += $tipAmount;
|
||||
@@ -428,7 +428,7 @@ class BonusController extends Controller
|
||||
}
|
||||
|
||||
return \redirect()->route('torrent', ['id' => $torrent->id])
|
||||
->withSuccess('Your Tip Was Successfully Applied!');
|
||||
->withSuccess(\trans('bon.success-tip'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -451,17 +451,17 @@ class BonusController extends Controller
|
||||
$tipAmount = $request->input('tip');
|
||||
if ($tipAmount > $user->seedbonus) {
|
||||
return \redirect()->route('forum_topic', ['id' => $post->topic->id])
|
||||
->withErrors('You Are To Broke To Tip The Poster!');
|
||||
->withErrors(\trans('bon.failed-funds-poster'));
|
||||
}
|
||||
|
||||
if ($user->id == $poster->id) {
|
||||
return \redirect()->route('forum_topic', ['id' => $post->topic->id])
|
||||
->withErrors('You Cannot Tip Yourself!');
|
||||
->withErrors(\trans('bon.failed-yourself'));
|
||||
}
|
||||
|
||||
if ($tipAmount <= 0) {
|
||||
return \redirect()->route('forum_topic', ['id' => $post->topic->id])
|
||||
->withErrors('You Cannot Tip A Negative Amount!');
|
||||
->withErrors(\trans('bon.failed-negative'));
|
||||
}
|
||||
|
||||
$poster->seedbonus += $tipAmount;
|
||||
@@ -483,7 +483,7 @@ class BonusController extends Controller
|
||||
$poster->notify(new NewPostTip('forum', $user->username, $tipAmount, $post));
|
||||
|
||||
return \redirect()->route('forum_topic', ['id' => $post->topic->id])
|
||||
->withSuccess('Your Tip Was Successfully Applied!');
|
||||
->withSuccess(\trans('bon.success-tip'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user