From 4af2a8eb3531f1bf8d87d9db83635c266f2c2c98 Mon Sep 17 00:00:00 2001 From: Karol Date: Sat, 11 Mar 2017 01:58:29 +0100 Subject: [PATCH] Update user(view) for support multilanguage (#3383) Update user(view) for support multilanguage. Added lang var. and strings --- resources/lang/en/admin/users/general.php | 1 + resources/lang/en/admin/users/table.php | 3 +- resources/lang/en/button.php | 3 +- resources/lang/en/general.php | 2 ++ resources/views/users/view.blade.php | 40 +++++++++++------------ 5 files changed, 26 insertions(+), 23 deletions(-) diff --git a/resources/lang/en/admin/users/general.php b/resources/lang/en/admin/users/general.php index 92ee04b491..dc18388618 100644 --- a/resources/lang/en/admin/users/general.php +++ b/resources/lang/en/admin/users/general.php @@ -10,6 +10,7 @@ return array( 'edit' => 'Edit User', 'filetype_info' => 'Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, and rar.', 'history_user' => 'History for :name', + 'info' => 'Info', 'last_login' => 'Last Login', 'ldap_config_text' => 'LDAP configuration settings can be found Admin > Settings. The (optional) selected location will be set for all imported users.', 'software_user' => 'Software Checked out to :name', diff --git a/resources/lang/en/admin/users/table.php b/resources/lang/en/admin/users/table.php index 8c9b40a454..56a5354d69 100644 --- a/resources/lang/en/admin/users/table.php +++ b/resources/lang/en/admin/users/table.php @@ -1,7 +1,6 @@ 'Active', 'allow' => 'Allow', 'checkedout' => 'Assets', @@ -28,8 +27,10 @@ return array( 'show_current' => 'Show Current Users', 'show_deleted' => 'Show Deleted Users', 'title' => 'Title', + 'to_restore_them' => 'to restore them.', 'updateuser' => 'Update User', 'username' => 'Username', + 'user_deleted_text' => 'This user has been marked as deleted.', 'username_note' => '(This is used for Active Directory binding only, not for login.)', 'cloneuser' => 'Clone User', 'viewusers' => 'View Users', diff --git a/resources/lang/en/button.php b/resources/lang/en/button.php index 14aedbf0fe..6964689762 100644 --- a/resources/lang/en/button.php +++ b/resources/lang/en/button.php @@ -1,7 +1,6 @@ 'Actions', 'add' => 'Add New', 'cancel' => 'Cancel', @@ -12,5 +11,5 @@ return array( 'request' => 'Request', 'submit' => 'Submit', 'upload' => 'Upload', - + 'select_file' => 'Select File...', ); diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index a972ceb2eb..a3422a7f91 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -33,10 +33,12 @@ 'checkin_from' => 'Checkin from', 'checkout' => 'Checkout', 'city' => 'City', + 'click_here' => 'Click here', 'companies' => 'Companies', 'company' => 'Company', 'component' => 'Component', 'components' => 'Components', + 'complete' => 'Complete', 'consumable' => 'Consumable', 'consumables' => 'Consumables', 'country' => 'Country', diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index 5e7558654e..8ed1fa9070 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -19,7 +19,7 @@ - + @@ -97,9 +97,9 @@
- This user has been marked as deleted. + {{ trans('general.user_deleted_text') }} @can('update', $user) - Click here to restore them. + {{ trans('general.click_here') }} {{ trans('general.to_restore_them') }} @endcan
@@ -117,13 +117,13 @@ @if (!is_null($user->company)) - + @endif - + @@ -136,42 +136,42 @@ @if ($user->jobtitle) - + @endif @if ($user->employee_num) - + @endif @if ($user->manager) - + @endif @if ($user->email) - + @endif @if ($user->phone) - + @endif @if ($user->userloc) - + @endif @@ -251,7 +251,7 @@ @@ -282,7 +282,7 @@ @@ -297,8 +297,8 @@
Company{{ trans('general.company') }} {{ $user->company->name }}
Name{{ trans('admin/users/table.name') }} {{ $user->present()->fullName() }}
Title{{ trans('admin/users/table.job') }} {{ $user->jobtitle }}
Employee No.{{ trans('admin/users/table.employee_num') }} {{ $user->employee_num }}
Manager{{ trans('admin/users/table.manager') }} {{$user->manager->present()->nameUrl() }}
Email{{ trans('admin/users/table.email') }} {{ $user->email }}
Phone{{ trans('admin/users/table.phone') }} {{ $user->phone }}
Location{{ trans('admin/users/table.location') }} {{ $user->userloc->name }}
{!! $asset->present()->nameUrl() !!} @can('checkin', $asset) - Checkin + {{ trans('general.checkin') }} @endcan
@can('update', $license) - Checkin + {{ trans('general.checkin') }} @endcan
- - + + @@ -307,7 +307,7 @@ @@ -348,7 +348,7 @@ @can('update', $user) - Select File... + {{ trans('button.select_file') }} @@ -362,7 +362,7 @@
- 0% Complete + 0% {{ trans('general.complete') }}
@@ -399,7 +399,7 @@ - +
NameActions{{ trans('general.name') }}{{ trans('general.action') }}
{!!$accessory->present()->nameUrl()!!} @can('checkin', $accessory) - Checkin + {{ trans('general.checkin') }} @endcan
@if ($file->filename) - Download + {{ trans('general.download') }} @endif @@ -422,7 +422,7 @@
Date{{ trans('general.date') }} {{ trans('table.action') }} {{ trans('general.asset') }} {{ trans('table.by') }}