Skip to content

A free open source IT asset/license management system

Consolidate the translations to accept :item to avoid repeated strings

snipebd9fc06bc956
diff --git a/resources/lang/en-US/admin/accessories/general.php b/resources/lang/en-US/admin/accessories/general.php
index 858df1d8f7..02ab2161d0 100644
--- a/resources/lang/en-US/admin/accessories/general.php
+++ b/resources/lang/en-US/admin/accessories/general.php
@@ -19,5 +19,10 @@ return [
'use_default_eula_disabled' => '<del>Use the primary default EULA instead.</del> No primary default EULA is set. Please add one in Settings.',
'clone' => 'Clone Accessory',
'delete_disabled' => 'This accessory cannot be deleted yet because some items are still checked out.',
+ 'accessory_deleted_warning' => 'This accessory has been deleted. You must restore it before you can assign it.',
+ 'bulk_delete_help' => 'Review the accessories you are about to delete. Accessories with checkouts are unselected and cannot be removed until their checkouts are returned.',
+ 'bulk_delete_warn' => 'You are about to delete :accessory_count accessory.|You are about to delete :accessory_count accessories.',
+ 'bulk_edit_warn' => 'You are editing :accessory_count accessory.|You are editing :accessory_count accessories.',
+ 'bulk_edit_help' => 'Only fields you fill below are written to the selected accessories. Leave a field blank to leave it as-is.',
];
diff --git a/resources/lang/en-US/admin/accessories/message.php b/resources/lang/en-US/admin/accessories/message.php
index aac963bdc7..828d360156 100644
--- a/resources/lang/en-US/admin/accessories/message.php
+++ b/resources/lang/en-US/admin/accessories/message.php
@@ -41,4 +41,29 @@ return [
'user_does_not_exist' => 'That user is invalid. Please try again.',
],
+ 'restore' => [
+ 'error' => 'Accessory was not restored, please try again',
+ 'success' => 'Accessory restored successfully.',
+ ],
+
+ 'bulk' => [
+ 'no_accessories_selected' => 'No accessories were selected.',
+ 'no_action_selected' => 'Please pick an action from the dropdown.',
+ 'no_fields_updated' => 'No fields were changed, so nothing was updated.',
+ 'skipped_unauthorized' => ':count accessory(s) were skipped because you do not have permission to update them.',
+
+ 'update' => [
+ 'success' => ':count accessory was updated.|:count accessories were updated.',
+ 'none_updated' => 'The selected accessory could not be updated. See errors below for details.|None of the selected accessories could be updated. See errors below for details.',
+ ],
+
+ 'restore' => [
+ 'success' => ':count accessory was restored.|:count accessories were restored.',
+ ],
+
+ 'checkin_selected' => [
+ 'no_rows_selected' => 'No checked-out accessories were selected.',
+ 'success' => ':count accessory checkout was returned.|:count accessory checkouts were returned.',
+ ],
+ ],
];
diff --git a/resources/lang/en-US/admin/components/general.php b/resources/lang/en-US/admin/components/general.php
index 82b171c481..ed42f84ef7 100644
--- a/resources/lang/en-US/admin/components/general.php
+++ b/resources/lang/en-US/admin/components/general.php
@@ -16,9 +16,6 @@ return [
'exclude_deleted' => 'Exclude Deleted Components',
'include_deleted' => 'Include Deleted Components',
'only_deleted' => 'Only Deleted Components',
- 'archived_help' => 'Archived components are hidden from the default component list and cannot be requested or checked out.',
- 'archived_cancels_pending_requests' => ':count pending request will be canceled when you archive this component.|:count pending requests will be canceled when you archive this component.',
- 'archived_component' => 'Archived Component',
'bulk_delete_help' => 'Review the components you are about to delete. Components with checkouts are unselected and cannot be removed until their checkouts are returned.',
'bulk_delete_warn' => 'You are about to delete :component_count component.|You are about to delete :component_count components.',
'bulk_edit_warn' => 'You are editing :component_count component.|You are editing :component_count components.',
diff --git a/resources/lang/en-US/admin/components/message.php b/resources/lang/en-US/admin/components/message.php
index 755a4321c6..cff03b2bbd 100644
--- a/resources/lang/en-US/admin/components/message.php
+++ b/resources/lang/en-US/admin/components/message.php
@@ -31,11 +31,8 @@ return [
'success' => 'Component checked out successfully.',
'user_does_not_exist' => 'That user is invalid. Please try again.',
'unavailable' => 'Not enough components remaining: :remaining remaining, :requested requested ',
- 'archived' => 'That component has been archived and cannot be checked out. Un-archive it first on the component edit screen.',
],
- 'archived_blocked_by_checkouts' => 'This component still has active checkouts. Check them back in before archiving.',
-
'bulk' => [
'no_components_selected' => 'No components were selected.',
'no_action_selected' => 'Please pick an action from the dropdown.',
@@ -44,6 +41,7 @@ return [
'update' => [
'success' => ':count component was updated.|:count components were updated.',
+ 'none_updated' => 'The selected component could not be updated. See errors below for details.|None of the selected components could be updated. See errors below for details.',
],
'delete' => [
diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php
index 82210dff93..6dd5b20805 100644
--- a/resources/lang/en-US/general.php
+++ b/resources/lang/en-US/general.php
@@ -33,6 +33,16 @@ return [
'all_assets' => 'All Assets',
'all' => 'All',
'archived' => 'Archived',
+ 'bulk_checkin_warn' => 'You are about to check in :count checkout.|You are about to check in :count checkouts.',
+ 'bulk_checkin_note_help' => 'The note below is attached to every checkin in this batch. Leave blank if you have nothing to add.',
+ 'archived_item_label' => 'Archived :item_type',
+ 'archived_help' => 'Archived :item_type_plural are hidden from the default list and cannot be requested or checked out.',
+ 'archived_cancels_pending_requests' => ':count pending request will be canceled when you archive this :item_type.|:count pending requests will be canceled when you archive this :item_type.',
+ 'item_archived_warning' => 'This :item_type has been archived. Unarchive it before you can check it out again.',
+ 'archived_blocked_by_checkouts' => 'This :item_type still has active checkouts. Check them back in before archiving.',
+ 'cannot_checkout_archived' => 'That :item_type has been archived and cannot be checked out. Unarchive it first on the :item_type edit screen.',
+ 'unarchive' => 'Unarchive',
+ 'unarchive_success' => ':item_type successfully unarchived.',
'asset_models' => 'Asset Models',
'asset_model' => 'Model',
'asset' => 'Asset',