Skip to content

Commit

Permalink
More internationalization per #151
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jun 9, 2014
1 parent dc25658 commit 9401667
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 31 deletions.
10 changes: 10 additions & 0 deletions app/lang/en/admin/categories/general.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return array(
'update_category' => 'Update Category',
'asset_categories' => 'Asset Categories',
'about_asset_categories' => 'About Asset Categories',
'category_name' => 'Category Name',
'about_categories' => 'Asset categories help you organize your assets. Some example categories might be &quot;Desktops&quot;, &quot;Laptops&quot;, &quot;Mobile Phones&quot;, &quot;Tablets&quot;, and so on, but you can use asset categories any way that makes sense for you. ',

);
12 changes: 5 additions & 7 deletions app/views/backend/categories/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<h3>Asset Categories</h3>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>@lang('admin/categories/general.asset_categories')</h3>
</div>
</div>

Expand All @@ -31,7 +31,7 @@

<!-- Name -->
<div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-2 control-label">Category Name</label>
<label for="name" class="col-md-2 control-label">@lang('admin/categories/general.category_name')</label>
<div class="col-md-7">
<input class="form-control" type="text" name="name" id="name" value="{{ Input::old('name', $category->name) }}" />
{{ $errors->first('name', '<span class="alert-msg"><i class="icon-remove-sign"></i> :message</span>') }}
Expand All @@ -53,10 +53,8 @@
<!-- side address column -->
<div class="col-md-3 col-xs-12 address pull-right">
<br /><br />
<h6>About Asset Categories</h6>
<p>Asset categories help you organize your assets. Some
example categories might be &quot;Desktops&quot;, &quot;Laptops&quot;, &quot;Mobile Phones&quot;, &quot;Tablets&quot;,
and so on, but you can use asset categories any way that makes sense for you. </p>
<h6>@lang('admin/categories/general.about_asset_categories')</h6>
<p>@lang('admin/categories/general.about_categories') </p>

</div>
</div>
Expand Down
11 changes: 4 additions & 7 deletions app/views/backend/categories/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/category') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<h3>Asset Categories</h3>
<a href="{{ route('create/category') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
<h3>@lang('admin/categories/general.asset_categories')</h3>
</div>
</div>

Expand All @@ -35,7 +35,6 @@
<a href="{{ route('update/category', $category->id) }}" class="btn btn-warning"><i class="icon-pencil icon-white"></i></a>
<a data-html="false" class="btn delete-asset btn-danger" data-toggle="modal" href="{{ route('delete/category', $category->id) }}" data-content="Are you sure you wish to delete this category?" data-title="Delete {{ htmlspecialchars($category->name) }}?" onClick="return false;"><i class="icon-trash icon-white"></i></a>


</td>
</tr>
@endforeach
Expand All @@ -49,10 +48,8 @@
<!-- side address column -->
<div class="col-md-3 col-xs-12 address pull-right">
<br /><br />
<h6>About Asset Categories</h6>
<p>Asset categories help you organize your assets. Some
example categories might be &quot;Desktops&quot;, &quot;Laptops&quot;, &quot;Mobile Phones&quot;, &quot;Tablets&quot;,
and so on, but you can use asset categories any way that makes sense for you. </p>
<h6>@lang('admin/categories/general.about_asset_categories')</h6>
<p>@lang('admin/categories/general.about_categories') </p>

</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/depreciations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>
@if ($depreciation->id)
Update Depreciation
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/groups/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>@lang('admin/groups/titles.edit_group')</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/hardware/checkin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3> Checkin Asset </h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/hardware/checkout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>
@if ($asset->id)
Checkout Asset to User
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/hardware/clone.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="page-header">

<div class="pull-right">
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
</div>

<h3>Clone Asset</h3>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/locations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>
@if ($location->id)
Update Location
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/locations/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/location') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<a href="{{ route('create/location') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
<h3>Locations</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/manufacturers/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-plus-sign icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.back')</a>
<h3>
@if ($manufacturer->id)
Update Manufacturer
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/manufacturers/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/manufacturer') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<a href="{{ route('create/manufacturer') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
<h3>Asset Manufacturers</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/models/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@section('content')
<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>
@if ($model->id)
Update Model
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/models/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/model') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<a href="{{ route('create/model') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
<h3>Asset Models</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/settings/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- header -->

<div class="pull-right">
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
</div>

<h3 class="name">Update Settings</h3>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/statuslabels/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right right"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right right"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
<h3>Status Labels</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/statuslabels/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/statuslabel') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> Create New</a>
<a href="{{ route('create/statuslabel') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
<h3>Status Labels</h3>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/users/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="page-header">

<div class="pull-right">
<a href="{{ route('users') }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ route('users') }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
</div>

<h3>
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/users/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="page-header">

<div class="pull-right">
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> Back</a>
<a href="{{ URL::previous() }}" class="btn-flat gray"><i class="icon-circle-arrow-left icon-white"></i> @lang('general.back')</a>
</div>
<h3>
Update User {{ $user->fullName() }}
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/users/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="row header">
<div class="col-md-12">
<a href="{{ route('create/user') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> New User</a>
<a href="{{ route('create/user') }}" class="btn btn-success pull-right"><i class="icon-plus-sign icon-white"></i> @lang('general.create')</a>
@if (Input::get('onlyTrashed'))
<a class="btn btn-default pull-right" href="{{ URL::to('admin/users') }}">Show Current Users</a>
@else
Expand Down

0 comments on commit 9401667

Please sign in to comment.