InviteController: German & French Translation

This commit is contained in:
alkl58
2021-12-07 15:39:17 +01:00
parent b8683d42ef
commit 0feacc1aec
4 changed files with 27 additions and 9 deletions
+9 -9
View File
@@ -51,17 +51,17 @@ class InviteController extends Controller
if (\config('other.invite-only') == false) {
return \redirect()->route('home.index')
->withErrors('Invitations Are Disabled Due To Open Registration!');
->withErrors(\trans('user.invites-disabled'));
}
if ($user->can_invite == 0) {
return \redirect()->route('home.index')
->withErrors('Your Invite Rights Have Been Revoked!');
->withErrors(\trans('user.invites-banned'));
}
if (\config('other.invites_restriced') == true && ! \in_array($user->group->name, \config('other.invite_groups'), true)) {
return \redirect()->route('home.index')
->withErrors('Invites are currently disabled for your group.');
->withErrors(\trans('user.invites-disabled-group'));
}
return \view('user.invite', ['user' => $user, 'route' => 'invite']);
@@ -82,19 +82,19 @@ class InviteController extends Controller
if (\config('other.invites_restriced') == true && ! \in_array($user->group->name, \config('other.invite_groups'), true)) {
return \redirect()->route('home.index')
->withErrors('Invites are currently disabled for your group.');
->withErrors(\trans('user.invites-disabled-group'));
}
if ($user->invites <= 0) {
return \redirect()->route('invites.create')
->withErrors('You do not have enough invites!');
->withErrors(\trans('user.not-enough-invites'));
}
$exist = Invite::where('email', '=', $request->input('email'))->first();
if ($exist) {
return \redirect()->route('invites.create')
->withErrors('The email address your trying to send a invite to has already been sent one.');
->withErrors(\trans('user.invite-already-sent'));
}
$code = Uuid::uuid4()->toString();
@@ -128,7 +128,7 @@ class InviteController extends Controller
$user->save();
return \redirect()->route('invites.create')
->withSuccess('Invite was sent successfully!');
->withSuccess(\trans('user.invite-sent-success'));
}
/**
@@ -147,12 +147,12 @@ class InviteController extends Controller
if ($invite->accepted_by !== null) {
return \redirect()->route('invites.index', ['username' => $user->username])
->withErrors('The invite you are trying to resend has already been used.');
->withErrors(\trans('user.invite-already-used'));
}
Mail::to($invite->email)->send(new InviteUser($invite));
return \redirect()->route('invites.index', ['username' => $user->username])
->withSuccess('Invite was resent successfully!');
->withSuccess(\trans('user.invite-resent-success'));
}
}
+6
View File
@@ -133,7 +133,11 @@ return [
'important-info' => 'Wichtige Info',
'information' => 'Information',
'invited-by' => 'Invited von',
'invite-already-sent' => 'Die E-Mail-Adresse hat bereits einen Invite erhalten.',
'invite-already-used' => 'Der Invite, den du erneut senden möchtest, wurde bereits verwendet.',
'invite-friend' => 'Lade deinen Freund ein (E-Mail + Nachricht erforderlich)',
'invite-resent-success' => 'Der Invite wurde erfolgreich erneut versandt!',
'invite-sent-success' => 'Der Invite wurde erfolgreich versandt!',
'invite-tree' => 'Invite Hierarchie',
'invites' => 'Invites',
'invites-banned' => 'Fehler: Ihre Invite-Rechte wurden deaktiviert',
@@ -142,6 +146,7 @@ return [
'invites-disabled' => 'Achtung: Invites sind aufgrund der offenen Registrierung deaktiviert!',
'invites-disabled-desc' => 'Bitte schaue bald wieder vorbei!',
'invites-rules' => '<li class="text-success"> Lade nur Personen ein, die du kennst und denen du vertraust. </li><li class="text-danger"> Du wirst für die von dir eingeladenen Personen verantwortlich gemacht. </li><li class="text-danger"> Du darfst dich nicht selber einladen, wir prüfen jeden eingeladenen Nutzer. </li><li class="text-danger"> Handel oder verkaufe keine Invites. </li><li class="text-danger"> Wenn eine Person, die du eingeladen hast, beim Cheaten, beim Handeln von Accounts oder beim Verkauf / Handel von Invites erwischt wird, wirst du verwarnt. </li>',
'invites-disabled-group' => 'Invites sind derzeit für deine Gruppe deaktiviert.',
'invites-send' => 'Invite verschickt',
'judge' => 'Richter',
'last-login' => 'Letzte Anmeldung',
@@ -175,6 +180,7 @@ return [
'no-logs' => 'Für diesen Nutzer gibt es keine Invite Logs in der Datenbank!',
'no-seedboxes' => 'Keine Seedboxen 😔',
'not-authorized' => 'Du bist nicht berechtigt, diese Seite aufzurufen. Dieses Mitglied zieht es vor ein Ninja zu sein!',
'not-enough-invites' => 'Du hast nicht genug Invites!';
'note' => 'Hinweis',
'notification' => 'Benachrichtigung',
'notification-settings' => 'Benachrichtigungs-Einstellungen',
+6
View File
@@ -143,7 +143,11 @@ return [
'important-info' => 'Important Info',
'information' => 'Information',
'invited-by' => 'Invited By',
'invite-already-sent' => 'The email address your trying to send a invite to has already been sent one.',
'invite-already-used' => 'The invite you are trying to resend has already been used.',
'invite-friend' => 'Invite your friend (Email + Message Required)',
'invite-resent-success' => 'Invite was resent successfully!',
'invite-sent-success' => 'Invite was sent successfully!',
'invite-tree' => 'Invite Tree',
'invites' => 'Invites',
'invites-banned' => 'Error: Your Invite Rights Have Been Disabled',
@@ -151,6 +155,7 @@ return [
'invites-count' => 'You Have :count Invite Tokens',
'invites-disabled' => 'Attention: Invites Are Disabled Due To Open Registration!',
'invites-disabled-desc' => 'Please Check Back Soon!',
'invites-disabled-group' => 'Invites are currently disabled for your group.',
'invites-rules' => '<li class="text-success">Only invite people you know and trust.</li><li class="text-danger">You will be held personally responsible for those you invite.</li><li class="text-danger">Dont invite yourself, we check every invited user.</li><li class="text-danger">Dont trade or sell Invites.</li><li class="text-danger">If a person you invited is caught cheating, trading account or selling/trading invites, you will be warned.</li>',
'invites-send' => 'Invites Send',
'judge' => 'Judge',
@@ -189,6 +194,7 @@ return [
'no-soft-warning' => 'There are no soft deleted warnings in the database for this user!',
'no-warning' => 'The are no warnings in the database for this user!',
'not-authorized' => 'You are not authorized to view this page. This member prefers to be hidden like a ninja!',
'not-enough-invites' => 'You do not have enough invites!';
'not-satisfied-not-immune' => 'Not Satisfied / Not Immune',
'note' => 'Note',
'notification' => 'Notification',
+6
View File
@@ -125,7 +125,11 @@ return [
'important' => 'Important',
'important-info' => 'Information importante',
'information' => 'Information',
'invite-already-sent' => 'L\'adresse e-mail à laquelle tu veux envoyer une invitation a déjà reçu une invitation.',
'invite-already-used' => 'L\'invitation que tu essayes de renvoyer a déjà été utilisée.',
'invite-friend' => 'Invitez un ami (Email + Message Obligatoire)',
'invite-resent-success' => 'L\'invitation a été renvoyée avec succès!',
'invite-sent-success' => 'L\'invitation a été envoyée avec succès!',
'invite-tree' => 'Invitation activée',
'invites' => 'Invités',
'invites-banned' => 'Erreur: vos droits d invitation ont été désactivés',
@@ -133,6 +137,7 @@ return [
'invites-count' => 'Vous avez: jetons d invitation',
'invites-disabled' => 'Attention: les invitations sont désactivées en raison d une inscription ouverte!',
'invites-disabled-desc' => 'Veuillez vérifier bientôt!',
'invites-disabled-group' => 'Les invitations sont actuellement désactivées pour ton groupe.',
'invites-rules' => '<li class="text-success"> Invitez uniquement des personnes que vous connaissez et en qui vous avez confiance. </li><li class="text-danger"> Vous serez tenu personnellement responsable de ceux que vous invitez. </li><li class="text-danger"> Ne vous invitez pas, nous vérifions chaque utilisateur invité. </li><li class="text-danger"> Ne pas échanger ou vendre des invitations. </li><li class="text-danger"> Si une personne que vous avez invitée est prise en train de tricher, d ouvrir un compte ou d inviter à la vente, vous en serez averti. </li>',
'invites-send' => 'Invitation Envoyée',
'last-login' => 'Dernière connexion',
@@ -165,6 +170,7 @@ return [
'no-logs' => 'Il n y a pas de journaux d invitation dans la base de données pour cet utilisateur!',
'no-seedboxes' => 'Pas de seedbox 😔',
'not-authorized' => 'Vous n êtes pas autorisé à afficher cette page. Ce membre préfère être caché comme un ninja!',
'not-enough-invites' => 'Tu n\'as pas assez d\'invitations!';
'note' => 'Remarque',
'notification' => 'Notification',
'notification-settings' => 'Paramètres de notification',