Skip to content

A free open source IT asset/license management system

Use trans_choice on alert menu

snipe55ba6279a4f8
diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php
index c2ca8bf4c7..a2a075eed0 100644
--- a/resources/lang/en-US/general.php
+++ b/resources/lang/en-US/general.php
@@ -230,7 +230,7 @@ return [
'purchase_date' => 'Purchase Date',
'qty' => 'QTY',
'quantity' => 'Quantity',
- 'quantity_minimum' => 'You have :count items below or almost below minimum quantity levels',
+ 'quantity_minimum' => 'You have one item below or almost below minimum quantity levels|You have :count items below or almost below minimum quantity levels',
'quickscan_checkin' => 'Quick Scan Checkin',
'quickscan_checkin_status' => 'Checkin Status',
'ready_to_deploy' => 'Ready to Deploy',
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 81440136f3..1bf7db6f65 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -279,7 +279,7 @@ dir="{{ Helper::determineLanguageDirection() }}">
@endif
</a>
<ul class="dropdown-menu">
- <li class="header">{{ trans('general.quantity_minimum', array('count' => count($alert_items))) }}</li>
+ <li class="header">{{ trans_choice('general.quantity_minimum', count($alert_items)) }}</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
@@ -287,7 +287,7 @@ dir="{{ Helper::determineLanguageDirection() }}">
@for($i = 0; count($alert_items) > $i; $i++)
<li><!-- Task item -->
- <a href="{{route($alert_items[$i]['type'].'.show', $alert_items[$i]['id'])}}">
+ <a href="{{ route($alert_items[$i]['type'].'.show', $alert_items[$i]['id'])}}">
<h2 class="task_menu">{{ $alert_items[$i]['name'] }}
<small class="pull-right">
{{ $alert_items[$i]['remaining'] }} {{ trans('general.remaining') }}