1day2die %!s(int64=3) %!d(string=hai) anos
pai
achega
9644fe0fe2

+ 1 - 1
config/app.php

@@ -81,7 +81,7 @@ return [
     |
     |
     */
     */
 
 
-    'locale' => 'en',
+    'locale' => env('LOCALE', 'en'),
 
 
     /*
     /*
     |--------------------------------------------------------------------------
     |--------------------------------------------------------------------------

+ 25 - 0
resources/lang/de.json

@@ -0,0 +1,25 @@
+{
+
+
+    "Activity Logs": "Aktivitäts logs",
+    "No recent activity from cronjobs": "Keine neuen aktivitäten von Cronjobs",
+    "Check the docs for it here": "Zur Dokumentation",
+    "Are cronjobs running?": "Sind die Cronjobs gestartet?",
+    "Causer": "Verursacher",
+    "Description": "Beschreibung",
+    "Created at": "Erstellt am",
+
+    "Edit Configuration": "Einstellungen bearbeiten",
+    "Text Field": "Textfeld",
+    "Cancel": "Abbrechen",
+    "Save": "Speichern",
+    "true": "wahr",
+    "false": "falsch",
+
+    "Configurations": "Einstellungen",
+    "Dashboard": "Dashboard",
+    "Key": "Schlüssel",
+    "Value": "Wert",
+    "Type": "Typ"
+
+}

+ 10 - 10
resources/views/admin/activitylogs/index.blade.php

@@ -6,12 +6,12 @@
         <div class="container-fluid">
         <div class="container-fluid">
             <div class="row mb-2">
             <div class="row mb-2">
                 <div class="col-sm-6">
                 <div class="col-sm-6">
-                    <h1>Activity Logs</h1>
+                    <h1>{{ __('Activity Logs')}}</h1>
                 </div>
                 </div>
                 <div class="col-sm-6">
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
                     <ol class="breadcrumb float-sm-right">
                         <li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
                         <li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
-                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.activitylogs.index')}}">Activity Logs</a>
+                        <li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.activitylogs.index')}}">{{ __('Activity Logs')}}</a>
                         </li>
                         </li>
                     </ol>
                     </ol>
                 </div>
                 </div>
@@ -32,8 +32,8 @@
                         </div>
                         </div>
                     @else
                     @else
                         <div class="callout callout-danger">
                         <div class="callout callout-danger">
-                            <h4>No recent activity from cronjobs</h4>
-                            <p>Are cronjobs running? <a class="text-primary" target="_blank" href="https://github.com/ControlPanel-gg/dashboard/wiki/Installation#crontab-configuration">Check the docs for it here</a></p>
+                            <h4>{{ __('No recent activity from cronjobs')}}</h4>
+                            <p>{{ __('Are cronjobs running?')}} <a class="text-primary" target="_blank" href="https://github.com/ControlPanel-gg/dashboard/wiki/Installation#crontab-configuration">{{ __('Check the docs for it here')}}</a></p>
                         </div>
                         </div>
                     @endif
                     @endif
 
 
@@ -42,7 +42,7 @@
 
 
             <div class="card">
             <div class="card">
                 <div class="card-header">
                 <div class="card-header">
-                    <h5 class="card-title"><i class="fas fa-history mr-2"></i>Activity Logs</h5>
+                    <h5 class="card-title"><i class="fas fa-history mr-2"></i>{{ __('Activity Logs')}}</h5>
                 </div>
                 </div>
                 <div class="card-body table-responsive">
                 <div class="card-body table-responsive">
 
 
@@ -63,16 +63,16 @@
                     <table class="table table-sm table-striped">
                     <table class="table table-sm table-striped">
                         <thead>
                         <thead>
                         <tr>
                         <tr>
-                            <th>Causer</th>
-                            <th>Description</th>
-                            <th>Created At</th>
+                            <th>{{ __('Causer') }}</th>
+                            <th>{{ __('Description') }}</th>
+                            <th>{{ __('Created at') }}</th>
                         </tr>
                         </tr>
                         </thead>
                         </thead>
                         <tbody>
                         <tbody>
                         @foreach($logs as $log)
                         @foreach($logs as $log)
                             <tr>
                             <tr>
-        <td> @if($log->causer) <a href='/admin/users/{{$log->causer_id}}'> {{json_decode($log->causer)->name}} 
-		@else 
+        <td> @if($log->causer) <a href='/admin/users/{{$log->causer_id}}'> {{json_decode($log->causer)->name}}
+		@else
 			System
 			System
 		@endif</td>
 		@endif</td>
                                 <td>
                                 <td>

+ 4 - 4
resources/views/admin/configurations/editModel.blade.php

@@ -8,14 +8,14 @@
                     @method('PATCH')
                     @method('PATCH')
                 <!-- Modal Header -->
                 <!-- Modal Header -->
                 <div class="modal-header">
                 <div class="modal-header">
-                    <h4 class="modal-title">Edit Configuration</h4>
+                    <h4 class="modal-title">{{__('Edit Configuration')}}</h4>
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
                 </div>
                 </div>
 
 
                 <!-- Modal body -->
                 <!-- Modal body -->
                 <div class="modal-body">
                 <div class="modal-body">
                     <div class="form-group">
                     <div class="form-group">
-                        <label id="keyLabel" for="value">Text Field</label>
+                        <label id="keyLabel" for="value">{{__('Text Field')}}</label>
                         <div class="input-group">
                         <div class="input-group">
                             <div class="input-group-prepend">
                             <div class="input-group-prepend">
                                 <div class="input-group-text">
                                 <div class="input-group-text">
@@ -32,8 +32,8 @@
 
 
                 <!-- Modal footer -->
                 <!-- Modal footer -->
                 <div class="modal-footer">
                 <div class="modal-footer">
-                    <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
-                    <button type="submit" class="btn btn-primary">Save</button>
+                    <button type="button" class="btn btn-danger" data-dismiss="modal">{{__('Cancel')}}</button>
+                    <button type="submit" class="btn btn-primary">{{__('Save')}}'</button>
                 </div>
                 </div>
             </form>
             </form>
         </div>
         </div>

+ 9 - 9
resources/views/admin/configurations/index.blade.php

@@ -6,13 +6,13 @@
         <div class="container-fluid">
         <div class="container-fluid">
             <div class="row mb-2">
             <div class="row mb-2">
                 <div class="col-sm-6">
                 <div class="col-sm-6">
-                    <h1>Configurations</h1>
+                    <h1>{{__('Configurations')}}</h1>
                 </div>
                 </div>
                 <div class="col-sm-6">
                 <div class="col-sm-6">
                     <ol class="breadcrumb float-sm-right">
                     <ol class="breadcrumb float-sm-right">
-                        <li class="breadcrumb-item"><a href="{{route('home')}}">Dashboard</a></li>
+                        <li class="breadcrumb-item"><a href="{{route('home')}}"{{__('Dashboard')}}</a></li>
                         <li class="breadcrumb-item"><a class="text-muted"
                         <li class="breadcrumb-item"><a class="text-muted"
-                                                       href="{{route('admin.configurations.index')}}">Configurations</a></li>
+                                                       href="{{route('admin.configurations.index')}}">{{__('Configurations')}}</a></li>
                     </ol>
                     </ol>
                 </div>
                 </div>
             </div>
             </div>
@@ -28,7 +28,7 @@
 
 
                 <div class="card-header">
                 <div class="card-header">
                     <div class="d-flex justify-content-between">
                     <div class="d-flex justify-content-between">
-                        <h5 class="card-title"><i class="fas fa-cog mr-2"></i>Configurations</h5>
+                        <h5 class="card-title"><i class="fas fa-cog mr-2"></i>{{__('Configurations')}}</h5>
                     </div>
                     </div>
                 </div>
                 </div>
 
 
@@ -37,11 +37,11 @@
                     <table id="datatable" class="table table-striped">
                     <table id="datatable" class="table table-striped">
                         <thead>
                         <thead>
                         <tr>
                         <tr>
-                            <th>Key</th>
-                            <th>Value</th>
-                            <th>Type</th>
-                            <th width="600">Description</th>
-                            <th>Created at</th>
+                            <th>{{__('Key')}}</th>
+                            <th>{{__('Value')}}</th>
+                            <th>{{__('Type')}}</th>
+                            <th width="600">{{__('Description')}}</th>
+                            <th>{{__('Created at')}}</th>
                             <th></th>
                             <th></th>
                         </tr>
                         </tr>
                         </thead>
                         </thead>