A free open source IT asset/license management system
Add localization strings
Cram42d37605ff1882
diff --git a/resources/lang/en/admin/labels/message.php b/resources/lang/en/admin/labels/message.phpnew file mode 100644index 0000000000..96785f0754--- /dev/null+++ b/resources/lang/en/admin/labels/message.php@@ -0,0 +1,11 @@+<?php++return [++ 'invalid_return_count' => 'Invalid count returned from :name. Expected :expected, got :actual.',+ 'invalid_return_type' => 'Invalid type returned from :name. Expected :expected, got :actual.',+ 'invalid_return_value' => 'Invalid value returned from :name. Expected :expected, got :actual.',++ 'does_not_exist' => 'Label does not exist',++];diff --git a/resources/lang/en/admin/labels/table.php b/resources/lang/en/admin/labels/table.phpnew file mode 100644index 0000000000..bc0ab7a977--- /dev/null+++ b/resources/lang/en/admin/labels/table.php@@ -0,0 +1,12 @@+<?php++return [++ 'labels_per_page' => 'Labels',+ 'support_fields' => 'Fields',+ 'support_1d_barcode' => '1D',+ 'support_2d_barcode' => '2D',+ 'support_logo' => 'Logo',+ 'support_title' => 'Title',++];\ No newline at end of filediff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.phpindex f5542d505b..e969dd93c5 100644--- a/resources/lang/en/admin/settings/general.php+++ b/resources/lang/en/admin/settings/general.php@@ -320,4 +320,31 @@ return ['setup_migration_create_user' => 'Next: Create User','ldap_settings_link' => 'LDAP Settings Page','slack_test' => 'Test <i class="fab fa-slack"></i> Integration',++ 'label2_enable' => 'New Label Engine',+ 'label2_enable_help' => 'Switch to the new label engine. <b>Note: You will need to save this setting before setting others.</b>',+ 'label2_template' => 'Template',+ 'label2_template_help' => 'Select which template to use for label generation',+ 'label2_title' => 'Title',+ 'label2_title_help' => 'The title to show on labels that support it',+ 'label2_title_help_phold' => 'The placeholder <code>:company</code> will be replaced with the asset's company name',+ 'label2_asset_logo' => 'Use Asset Logo',+ 'label2_asset_logo_help' => 'Use the logo of the asset's assigned company, rather than the value at <code>:setting_name</code>',+ 'label2_1d_type' => '1D Barcode Type',+ 'label2_1d_type_help' => 'Format for 1D barcodes',+ 'label2_2d_type' => '2D Barcode Type',+ 'label2_2d_type_help' => 'Format for 2D barcodes',+ 'label2_2d_target' => '2D Barcode Target',+ 'label2_2d_target_help' => 'The URL the 2D barcode points to when scanned',+ 'label2_fields' => 'Fields Definition',+ 'label2_fields_help' => 'Fields to show on the label in the format <code>Label=asset_field</code>',+ 'label2_fields_help_semi' => 'Use <code>;</code> to separate fields',+ 'label2_fields_help_pipe' => 'Use <code>|</code> to allow multiple options in each field. For example <code>Name=name|Nickname=_snipeit_my_custom_field_2</code> will use <code>name</code> if a value is set, otherwise it will use <code>_snipeit_my_custom_field_2</code>. This is useful to ensure field order',+ 'label2_fields_help_once' => 'Each field will only be selected once per label',++ 'help_asterisk_bold' => 'Text entered as <code>**text**</code> will be displayed as bold',+ 'help_blank_to_use' => 'Leave blank to use the value from <code>:setting_name</code>',+ 'help_default_will_use' => '<code>:default</code> will use the value from <code>:setting_name</code>',+ 'default' => 'Default',+ 'none' => 'None',];diff --git a/routes/web/hardware.php b/routes/web/hardware.phpindex 09811d17d7..9f28434107 100644--- a/routes/web/hardware.php+++ b/routes/web/hardware.php@@ -181,4 +181,8 @@ Route::resource('hardware','middleware' => ['auth'],'parameters' => ['asset' => 'asset_id'],-]);\ No newline at end of file+]);++Route::get('ht/{any?}',+ [AssetsController::class, 'getAssetByTag']+)->where('any', '.*')->name('ht/assetTag');\ No newline at end of file