diff --git a/resources/lang/en/profile.php b/resources/lang/en/profile.php new file mode 100644 index 00000000..f2449bab --- /dev/null +++ b/resources/lang/en/profile.php @@ -0,0 +1,19 @@ + 'This avatar will be resized to :width x :height pixels', + 'flighthours' => 'Flight Hours', + 'newapikey' => 'New API Key', + 'yourprofile' => 'Your Profile', + 'apikey' => 'API Key', + 'dontshare' => 'don\'t share this!', + 'changepassword' => 'Change Password', + 'newpassword' => 'New Password', + 'avatar' => 'Avatar', + 'updateprofile' => 'Update Profile', + 'editprofile' => 'Edit Profile', + 'edityourprofile' => 'Edit Your Profile', +]; diff --git a/resources/lang/it/profile.php b/resources/lang/it/profile.php new file mode 100644 index 00000000..0dbe0def --- /dev/null +++ b/resources/lang/it/profile.php @@ -0,0 +1,19 @@ + 'Questo avatar sarĂ  ridimensionato a :width x :height pixels', + 'flighthours' => 'Ore di Volo', + 'newapikey' => 'Nuova Chiave API', + 'yourprofile' => 'Il Tuo Profilo', + 'apikey' => 'Chiave API', + 'dontshare' => 'non condividerla!', + 'changepassword' => 'Cambia Password', + 'newpassword' => 'Nuova Password', + 'avatar' => 'Avatar', + 'updateprofile' => 'Aggiorna Profilo', + 'editprofile' => 'Modifica Profilo', + 'edityourprofile' => 'Modifica Il Tuo Profilo', +]; diff --git a/resources/views/layouts/default/profile/edit.blade.php b/resources/views/layouts/default/profile/edit.blade.php index 378e7509..e60e8895 100644 --- a/resources/views/layouts/default/profile/edit.blade.php +++ b/resources/views/layouts/default/profile/edit.blade.php @@ -1,10 +1,10 @@ @extends('app') -@section('title', trans('frontend.profile.editprofile')) +@section('title', __('profile.editprofile')) @section('content')
-

@lang('frontend.profile.edityourprofile')

+

@lang('profile.edityourprofile')

@include('flash::message') {{ Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'files' => true, 'method' => 'patch']) }} @include("profile.fields") diff --git a/resources/views/layouts/default/profile/fields.blade.php b/resources/views/layouts/default/profile/fields.blade.php index de73c49d..00ba033a 100644 --- a/resources/views/layouts/default/profile/fields.blade.php +++ b/resources/views/layouts/default/profile/fields.blade.php @@ -74,9 +74,9 @@ - @lang('frontend.profile.changepassword') + @lang('profile.changepassword') -

@lang('frontend.profile.newpassword'):

+

@lang('profile.newpassword'):

{{ Form::password('password', ['class' => 'form-control']) }}
@@ -93,12 +93,12 @@ @endif - @lang('frontend.profile.avatar') + @lang('profile.avatar')
{{ Form::file('avatar', null) }}
-

@lang('frontend.profile.avatarresize', ['width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')])

+

@lang('profile.avatarresize', ['width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')])

@if ($errors->has('avatar'))

{{ $errors->first('avatar') }}

@endif @@ -107,7 +107,7 @@
- {{ Form::submit(trans('frontend.profile.updateprofile'), ['class' => 'btn btn-primary']) }} + {{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
diff --git a/resources/views/layouts/default/profile/index.blade.php b/resources/views/layouts/default/profile/index.blade.php index a20296f6..5a117591 100644 --- a/resources/views/layouts/default/profile/index.blade.php +++ b/resources/views/layouts/default/profile/index.blade.php @@ -28,7 +28,7 @@

{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}

-

@lang('frontend.profile.flighthours')

+

@lang('profile.flighthours')

@if($user->home_airport) @@ -58,20 +58,20 @@
@lang('frontend.profile.newapikey') + onclick="return confirm({{ __('Are you sure? This will reset your API key.') }})">@lang('profile.newapikey')   @lang('common.edit')
-

@lang('frontend.profile.yourprofile')

+

@lang('profile.yourprofile')

- +
@lang('common.email') {{ $user->email }}
@lang('frontend.profile.apikey')  (@lang('frontend.profile.dontshare'))@lang('profile.apikey')  (@lang('profile.dontshare')) {{ $user->api_key }}