Skip to content

Commit c50b147

Browse files
authored
Merge pull request #16403 from snipe/#16402_each_localization
Fixed #16402 - localize "each" string in components tab on asset view
2 parents 83855d4 + 369a68f commit c50b147

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

resources/lang/en-US/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,5 +599,6 @@
599599
'generic_model_not_found' => 'That :model was not found or you do not have permission to access it',
600600
'deleted_models' => 'Deleted Asset Models',
601601
'deleted_users' => 'Deleted Users',
602+
'cost_each' => ':amount each',
602603

603604
];

resources/views/hardware/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ class="form-inline"
12111211
<a href="{{ route('components.show', $component->id) }}">{{ $component->name }}</a>
12121212
</td>
12131213
<td>{{ $component->pivot->assigned_qty }}</td>
1214-
<td>{{ Helper::formatCurrencyOutput($component->purchase_cost) }} each</td>
1214+
<td>{{ trans('general.cost_each', ['amount' => Helper::formatCurrencyOutput($component->purchase_cost)]) }} </td>
12151215
<td>{{ $component->serial }}</td>
12161216
<td>
12171217
<a href="{{ route('components.checkin.show', $component->pivot->id) }}" class="btn btn-sm bg-purple hidden-print" data-tooltip="true">{{ trans('general.checkin') }}</a>

0 commit comments

Comments
 (0)