Translation fixes

This commit is contained in:
Nabeel Shahzad
2018-07-15 15:06:25 -05:00
parent 87206ed2b4
commit 68b00f776a
4 changed files with 9 additions and 8 deletions

View File

@@ -17,10 +17,10 @@ class UserState extends Enum
public const SUSPENDED = 4;
protected static $labels = [
UserState::PENDING => 'users.state.pending',
UserState::ACTIVE => 'users.state.active',
UserState::REJECTED => 'users.state.rejected',
UserState::ON_LEAVE => 'users.state.on_leave',
UserState::SUSPENDED => 'users.state.suspended',
UserState::PENDING => 'user.state.pending',
UserState::ACTIVE => 'user.state.active',
UserState::REJECTED => 'user.state.rejected',
UserState::ON_LEAVE => 'user.state.on_leave',
UserState::SUSPENDED => 'user.state.suspended',
];
}

View File

@@ -88,6 +88,7 @@ class Database
try {
DB::table($table)->insert($row);
} catch (QueryException $e) {
Log::error($e);
throw $e;
}

View File

@@ -32,9 +32,9 @@
<td>{{ $flight->notes }}</td>
<td style="text-align: center;">
@if($flight->active == 1)
<span class="label label-success">Active</span>
<span class="label label-success">@lang('common.active')</span>
@else
<span class="label label-default">Inactive</span>
<span class="label label-default">@lang('common.inactive')</span>
@endif
</td>
<td style="text-align: right;">

View File

@@ -3,7 +3,7 @@
@section('title', 'Users')
@section('actions')
<li><a href="{{ route('admin.users.index') }}?search=state:0">
<i class="ti-user"></i>{{ UserState::label(UserState::PENDING) }}</a>
<i class="ti-user"></i>@lang(UserState::label(UserState::PENDING))</a>
</li>
@endsection