Browse Source

notification translations

1Day 3 năm trước cách đây
mục cha
commit
f54bed1c4a

+ 3 - 3
app/Notifications/ConfirmPaymentNotification.php

@@ -44,7 +44,7 @@ class ConfirmPaymentNotification extends Notification implements ShouldQueue
     public function toMail($notifiable)
     {
         return (new MailMessage)
-            ->subject('Payment Confirmation')
+            ->subject(__('Payment Confirmation'))
             ->markdown('mail.payment.confirmed' , ['payment' => $this->payment]);
     }
 
@@ -57,8 +57,8 @@ class ConfirmPaymentNotification extends Notification implements ShouldQueue
     public function toArray($notifiable)
     {
         return [
-            'title'   => "Payment Confirmed!",
-            'content' => "Payment Confirmed!",
+            'title'   => __("Payment Confirmed!"),
+            'content' => __("Payment Confirmed!"),
         ];
     }
 }

+ 1 - 1
app/Notifications/ServerCreationError.php

@@ -46,7 +46,7 @@ class ServerCreationError extends Notification
     public function toArray($notifiable)
     {
         return [
-            'title' => "Server Creation Error",
+            'title' => __("Server Creation Error"),
             'content' => "
                 <p>Hello <strong>{$this->server->User->name}</strong>, An unexpected error has occurred...</p>
                 <p>There was a problem creating your server on our pterodactyl panel. There are likely no allocations or rooms left on the selected node. Please contact one of our support members through our discord server to get this resolved asap!</p>

+ 10 - 10
app/Notifications/ServersSuspendedNotification.php

@@ -42,11 +42,11 @@ class ServersSuspendedNotification extends Notification implements ShouldQueue
     public function toMail($notifiable)
     {
         return (new MailMessage)
-                    ->subject('Your servers have been suspended!')
-                    ->greeting('Your servers have been suspended!')
-                    ->line("To automatically re-enable your server/s, you need to purchase more credits.")
-                    ->action('Purchase credits', route('store.index'))
-                    ->line('If you have any questions please let us know.');
+                    ->subject(__('Your servers have been suspended!'))
+                    ->greeting(__('Your servers have been suspended!'))
+                    ->line(__("To automatically re-enable your server/s, you need to purchase more credits."))
+                    ->action(__('Purchase credits'), route('store.index'))
+                    ->line(__('If you have any questions please let us know.'));
     }
 
     /**
@@ -58,12 +58,12 @@ class ServersSuspendedNotification extends Notification implements ShouldQueue
     public function toArray($notifiable)
     {
         return [
-            'title'   => "Servers suspended!",
+            'title'   => __('Your servers have been suspended!'),
             'content' => "
-                <h5>Your servers have been suspended!</h5>
-                <p>To automatically re-enable your server/s, you need to purchase more credits.</p>
-                <p>If you have any questions please let us know.</p>
-                <p>Regards,<br />" . config('app.name', 'Laravel') . "</p>
+                <h5>". __('Your servers have been suspended!')."</h5>
+                <p>". __("To automatically re-enable your server/s, you need to purchase more credits.")."</p>
+                <p>". __('If you have any questions please let us know.')."</p>
+                <p>". __('Regards').",<br />" . config('app.name', 'Laravel') . "</p>
             ",
         ];
     }

+ 1 - 1
app/Notifications/WelcomeMessage.php

@@ -66,7 +66,7 @@ class WelcomeMessage extends Notification implements ShouldQueue
     public function toArray($notifiable)
     {
         return [
-            'title'   => "Getting started!",
+            'title'   => __("Getting started!"),
             'content' => "
                <p>Hello <strong>{$this->user->name}</strong>, Welcome to our dashboard!</p>
                 <h5>Verification</h5>

+ 13 - 1
resources/lang/de.json

@@ -337,5 +337,17 @@
     "Enter your companys email adress":"Firmen E-Mail",
     "Enter your companys website":"Firmenwebsite",
     "Enter your custom invoice prefix":"Rechnungsprefix",
-    "Select Invoice Logo":"Firmenlogo auswählen"
+    "Select Invoice Logo":"Firmenlogo auswählen",
+
+    "Payment Confirmation": "Zahlungsbestätigung",
+    "Payment Confirmed!": "Zahlung bestätigt!",
+    "Server Creation Error": "Fehler beim erstellen des Servers",
+    "Your servers have been suspended!": "Deine Server wurden pausiert",
+    "To automatically re-enable your server/s, you need to purchase more credits.": "Um deine Server zu reaktivieren, musst du mehr Credits kaufen!",
+    "Purchase credits": "Credits kaufen",
+    "If you have any questions please let us know.": "Solltest du weiter fragen haben, melde dich gerne beim Support!",
+    "Regards": "mit freundlichen Grüßen",
+
+    "Getting started!": "Den Anfang machen!"
+
 }