From ddc95762eb6e4e7609dcacb12d3490064c7e0ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F=20=28envoyr=29?= Date: Sun, 25 Dec 2022 20:54:35 +0100 Subject: [PATCH] fix of name translation due to incorrect display in lists and forms --- lib/formfields/admin/customer/formfield.customer_add.php | 2 +- lib/formfields/admin/customer/formfield.customer_edit.php | 2 +- lng/de.lng.php | 1 + lng/en.lng.php | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index 51e2aa13..83c50b82 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -111,7 +111,7 @@ return [ 'mandatory_ex' => ['company'] ], 'name' => [ - 'label' => lng('customer.name'), + 'label' => lng('customer.lastname'), 'desc' => lng('customer.nameorcompany_desc'), 'type' => 'text', 'mandatory_ex' => ['company'] diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php index 4b8c7712..65a33fa7 100644 --- a/lib/formfields/admin/customer/formfield.customer_edit.php +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -111,7 +111,7 @@ return [ 'value' => $result['firstname'] ], 'name' => [ - 'label' => lng('customer.name'), + 'label' => lng('customer.lastname'), 'desc' => lng('customer.nameorcompany_desc'), 'type' => 'text', 'mandatory_ex' => ['company'], diff --git a/lng/de.lng.php b/lng/de.lng.php index 7026c746..fd82d6c6 100644 --- a/lng/de.lng.php +++ b/lng/de.lng.php @@ -545,6 +545,7 @@ return [ 'documentroot' => 'Heimatverzeichnis', 'name' => 'Name', 'firstname' => 'Vorname', + 'lastname' => 'Nachname', 'company' => 'Firma', 'nameorcompany_desc' => 'Entweder Vorname/Name oder Firma ist erforderlich', 'street' => 'Straße', diff --git a/lng/en.lng.php b/lng/en.lng.php index 9469eded..5ed4cd4c 100644 --- a/lng/en.lng.php +++ b/lng/en.lng.php @@ -586,8 +586,9 @@ return [ ], 'customer' => [ 'documentroot' => 'Home directory', - 'name' => 'Last name', + 'name' => 'Name', 'firstname' => 'First name', + 'lastname' => 'Last name', 'company' => 'Company', 'nameorcompany_desc' => 'Either firstname/lastname or company is required', 'street' => 'Street',