A free open source IT asset/license management system
Use trans_choice for string
snipe2c68ec927a92
diff --git a/resources/lang/en/admin/hardware/form.php b/resources/lang/en/admin/hardware/form.phpindex b2d7bab0fc..22aac61d07 100644--- a/resources/lang/en/admin/hardware/form.php+++ b/resources/lang/en/admin/hardware/form.php@@ -6,7 +6,7 @@ return ['bulk_delete_warn' => 'You are about to delete :asset_count assets.','bulk_update' => 'Bulk Update Assets','bulk_update_help' => 'This form allows you to update multiple assets at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged. ',- 'bulk_update_warn' => 'You are about to edit the properties of :asset_count assets.',+ 'bulk_update_warn' => 'You are about to edit the properties of a single asset.|You are about to edit the properties of :asset_count assets.','checkedout_to' => 'Checked Out To','checkout_date' => 'Checkout Date','checkin_date' => 'Checkin Date',diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.phpindex e6f890a891..2ecf7bee4d 100755--- a/resources/views/hardware/bulk.blade.php+++ b/resources/views/hardware/bulk.blade.php@@ -20,7 +20,7 @@<p>{{ trans('admin/hardware/form.bulk_update_help') }}</p><div class="callout callout-warning">- <i class="fas fa-exclamation-triangle"></i> {{ trans('admin/hardware/form.bulk_update_warn', ['asset_count' => count($assets)]) }}+ <i class="fas fa-exclamation-triangle"></i> {{ trans_choice('admin/hardware/form.bulk_update_warn', count($assets), ['asset_count' => count($assets)]) }}</div><form class="form-horizontal" method="post" action="{{ route('hardware/bulksave') }}" autocomplete="off" role="form">