Translated Profile Blade

This commit is contained in:
Frank 2023-06-09 11:16:10 +02:00
parent 92f0f6c72c
commit 193fe84dcc
2 changed files with 30 additions and 15 deletions

View File

@ -253,6 +253,21 @@ return [
'Show share button' => 'Show share button+',
'disablesharebutton' => 'This setting allows you to hide the share button on your page.+',
########Profile Blade########
'Account Settings' => 'Account Settings+',
'Change email' => 'Change email+',
'Change password' => 'Change password+',
'Export user data' => 'Export user data+',
'Export your user data' => 'Export your user data to transfer to a different instance.+',
'Export all data' => 'Export all data+',
'Export links only' => 'Export links only+',
'Import user data' => 'Import user data+',
'Import your user data' => 'Import your user data from another instance.+',
'Import' => 'Import+',
'Delete your account' => 'Delete your account+',
'You are about to delete' => 'You are about to delete your account!+',
'You are about to delete This action cannot be undone' => 'You are about to delete your account! This action cannot be undone.+',
'Config' => 'Config+',
'Advanced Config' => 'Advanced Config+',

View File

@ -25,7 +25,7 @@
@if($_SERVER['QUERY_STRING'] === '')
<section class="text-gray-400">
<h3 class="mb-4 card-header"><i class="bi bi-person"> Account Settings</i></h3>
<h3 class="mb-4 card-header"><i class="bi bi-person">{{__('messages.Account Settings')}}</i></h3>
<div class="card-body p-0 p-md-3">
@foreach($profile as $profile)
@ -37,17 +37,17 @@
<h4>Email</h4>
<input type="email" class="form-control" name="email" value="{{ $profile->email }}" required>
</div>
<button type="Change " class="mt-3 ml-3 btn btn-primary">Change email</button>
<button type="Change " class="mt-3 ml-3 btn btn-primary">{{__('messages.Change email')}}</button>
</form>
@endif
<br><br><form action="{{ route('editProfile') }}" method="post">
@csrf
<div class="form-group col-lg-8">
<h4>Password</h4>
<h4>{{__('messages.Password')}}</h4>
<input type="password" name="password" class="form-control" placeholder="At least 8 characters" required>
</div>
<button type="Change " class="mt-3 ml-3 btn btn-primary">Change password</button>
<button type="Change " class="mt-3 ml-3 btn btn-primary">{{__('messages.Change password')}}</button>
</form>
@csrf
@ -58,18 +58,18 @@
@if(env('ALLOW_USER_EXPORT') != false)
<div class="mt-3"><br><br><br>
<h4>Export user data</h4>
<p>Export your user data to transfer to a different instance.</p>
<h4>{{__('messages.Export user data')}}</h4>
<p>{{__('messages.Export your user data')}}</p>
<div class="row">
<div class="col-lg-8">
<button class="btn btn-outline-secondary">
<a href="{{ route('exportAll') }}">
<i class="bi bi-layer-backward"></i> Export all data
<i class="bi bi-layer-backward"></i>{{__('messages.Export all data')}}
</a>
</button>
<button class="btn btn-outline-secondary">
<a href="{{ route('exportLinks') }}">
<i class="bi bi-layer-backward"></i> Export links only
<i class="bi bi-layer-backward"></i>{{__('messages.Export links only')}}
</a>
</button>
</div>
@ -81,12 +81,12 @@
<form action="{{ route('importData') }}" enctype="multipart/form-data" method="post">
@csrf
<div class="form-group col-lg-8"><br><br><br>
<h4>Import user data</h4>
<label>Import your user data from another instance.</label>
<h4>{{__('messages.Import user data')}}</h4>
<label>{{__('messages.Import your user data from another instance.')}}</label>
<input type="file" accept="application/JSON" class="form-control" id="customFile" name="import">
</div>
<button type="submit" class="mt-3 ml-3 btn btn-primary" onclick="return confirm('Are you sure you want to import this file? This action will replace all your current data, including links!')">Import</button>
<button type="submit" class="mt-3 ml-3 btn btn-primary" onclick="return confirm('Are you sure you want to import this file? This action will replace all your current data, including links!')">{{__('messages.Import')}}</button>
</form>
@endif
@ -94,7 +94,7 @@
<br><button class="btn btn-danger"><a
href="{{ url('/studio/profile/?delete') }}" style="color:#FFFFFF;"><i class="bi bi-exclamation-octagon-fill"></i>
Delete your account</a></button>
{{__('messages.Delete your account')}}</a></button>
</div>
</section>
@endforeach
@ -103,11 +103,11 @@
@if($_SERVER['QUERY_STRING'] === 'delete')
<div class="d-flex justify-content-center align-items-center" style="height:100vh;">
<div class="text-center">
<h2 class="text-decoration-underline">You are about to delete your account!</h2>
<p>You are about to delete your account! This action cannot be undone.</p>
<h2 class="text-decoration-underline">{{__('messages.You are about to delete')}}</h2>
<p>{{__('messages.You are about to delete This action cannot be undone')}}</p>
<div>
<button class="redButton btn btn-danger" style="filter: grayscale(100%);" disabled onclick="window.location.href = '{{ url('/studio/delete-user/') . "/" . Auth::id() }}';"><i class="bi bi-exclamation-diamond-fill"></i></button>
<button type="submit" class="btn btn-primary"><a style="color:#fff;" href="{{ url('/studio/profile') }}">Cancel</a></button>
<button type="submit" class="btn btn-primary"><a style="color:#fff;" href="{{ url('/studio/profile') }}">{{__('messages.Cancel')}}</a></button>
</div>
</div>
</div>