Skip to content

Commit 55ba627

Browse files
committed
Use trans_choice on alert menu
Signed-off-by: snipe <[email protected]>
1 parent a9eea83 commit 55ba627

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/lang/en-US/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
'purchase_date' => 'Purchase Date',
231231
'qty' => 'QTY',
232232
'quantity' => 'Quantity',
233-
'quantity_minimum' => 'You have :count items below or almost below minimum quantity levels',
233+
'quantity_minimum' => 'You have one item below or almost below minimum quantity levels|You have :count items below or almost below minimum quantity levels',
234234
'quickscan_checkin' => 'Quick Scan Checkin',
235235
'quickscan_checkin_status' => 'Checkin Status',
236236
'ready_to_deploy' => 'Ready to Deploy',

resources/views/layouts/default.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,15 @@
279279
@endif
280280
</a>
281281
<ul class="dropdown-menu">
282-
<li class="header">{{ trans('general.quantity_minimum', array('count' => count($alert_items))) }}</li>
282+
<li class="header">{{ trans_choice('general.quantity_minimum', count($alert_items)) }}</li>
283283
<li>
284284
<!-- inner menu: contains the actual data -->
285285
<ul class="menu">
286286

287287
@for($i = 0; count($alert_items) > $i; $i++)
288288

289289
<li><!-- Task item -->
290-
<a href="{{route($alert_items[$i]['type'].'.show', $alert_items[$i]['id'])}}">
290+
<a href="{{ route($alert_items[$i]['type'].'.show', $alert_items[$i]['id'])}}">
291291
<h2 class="task_menu">{{ $alert_items[$i]['name'] }}
292292
<small class="pull-right">
293293
{{ $alert_items[$i]['remaining'] }} {{ trans('general.remaining') }}

0 commit comments

Comments
 (0)