Skip to content

A free open source IT asset/license management system

add Label preview translation, also which label is previewed

Godfrey M1234b6297e2e
diff --git a/resources/lang/en-US/admin/settings/general.php b/resources/lang/en-US/admin/settings/general.php
index 35a2796212..de022e1e94 100644
--- a/resources/lang/en-US/admin/settings/general.php
+++ b/resources/lang/en-US/admin/settings/general.php
@@ -402,6 +402,7 @@ return [
'select_template' => 'Select a Template',
'label2_fields' => 'Field Definitions',
'label2_fields_help' => 'Fields can be added, removed, and reordered in the left column. For each field, multiple options for Label and DataSource can be added, removed, and reordered in the right column. Field changes made here will be reflected immediately in the preview below but must be saved for them to apply to new labels.',
+ "label2_label_preview" => 'Label Preview',
'purge_barcodes' => 'Purge Barcodes',
'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>',
diff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.php
index e3651ad334..25b8d49169 100644
--- a/resources/views/settings/labels.blade.php
+++ b/resources/views/settings/labels.blade.php
@@ -382,7 +382,7 @@
<fieldset name="label-preview">
<x-form.legend>
- Label Preview
+ {!! trans('admin/settings/general.label2_label_preview').': '.$setting->label2_template!!}
</x-form.legend>
<div class="col-md-12" style="margin-bottom: 10px;">
@include('partials.label2-preview')