From 4aa2d714328447787455abcd5887ca99bcbf1152 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 30 Nov 2021 12:15:16 +0100 Subject: [PATCH] Improved: Rename invoiceApplications menu-item label to Payments (OFBIZ-12405) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Application(s) is generic (also used within contexts elsewhere) in OFBiz. Users have a better perception of context when looking at a menu-item Payments in the screen of an invoice, than seeing Applications. The additional benefit for developers is that with the implemented change the tech come closer to the language of the user jleroux: after a discussion with Pierre in the Jira, being more in favour of using "Payments applications" (for instance the related screen is named EditPaymentApplications), I had a look at https://www.linguee.fr/francais-anglais/search?query=%22Payments%20applications%22 which was not much conclusive. In a 1st attempt, using Google translate, I tried to translate few languages based on a French translation: طلبات المدفوعات Zahlungsaufzeichnungen Payments application Registros de pago Enregistrement des paiements अनुप्रयोग Registri di pagamento I finally think that Pierre's is right and we could simply use Payments there rather than Applications and even "Payments applications" (could be debated...) So I just changed the French and English labels and the labels names of AccountingApplicationSuccess to AccountingPaymentApplicationSuccess and AccountingApplications to AccountingPaymentsApplications I let the users of other languages to decide what to put there or discuss if they see an interest. Thanks: Pierre for report and suggestion --- applications/accounting/config/AccountingUiLabels.xml | 10 +++++----- .../ofbiz/accounting/invoice/InvoiceServices.java | 2 +- applications/accounting/widget/AccountingMenus.xml | 2 +- applications/accounting/widget/PaymentScreens.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/applications/accounting/config/AccountingUiLabels.xml b/applications/accounting/config/AccountingUiLabels.xml index 4d348516f6..b368a40c14 100644 --- a/applications/accounting/config/AccountingUiLabels.xml +++ b/applications/accounting/config/AccountingUiLabels.xml @@ -1173,12 +1173,12 @@ 应付支付组 應付支付群組 - + تطبيق ${amountApplied?currency$({isoCode})} من الدفعة [${paymentId}] إلى ${toMessage} ${amountApplied?currency(${isoCode})} von Zahlung [${paymentId}] to ${toMessage} zugewiesen Applying ${amountApplied?currency(${isoCode})} from payment [${paymentId}] to ${toMessage} Aplicando ${amountApplied?currency(${isoCode})} de pago [${paymentId}] a ${toMessage} - Enregistrer ${amountApplied?currency(${isoCode})} du paiement [${paymentId}] à ${toMessage} + Enregistrement de ${amountApplied?currency(${isoCode})} du paiement [${paymentId}] à ${toMessage} ${toMessage} के लिए भुगतान से [${paymentId}], ${amountApplied?currency(${isoCode})} को लगाएं Applicazione ${amountApplied?currency(${isoCode})} dal pagamento [${paymentId}] a ${toMessage} ${amountApplied?currency(${isoCode})} を、支払 [${paymentId}] から ${toMessage} に消込中 @@ -1264,12 +1264,12 @@ 到税务机关辖区[${taxAuthGeoId}] 到稅務機關轄區[${taxAuthGeoId}] - + تطبيقات Zuweisungen - Applications + Payments Aplicaciones - Enregistrements + Enregistrement des paiements अनुप्रयोग Pagamenti Applicati 適用 diff --git a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java index 7ee585a1ca..9a1f5a66d5 100644 --- a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java +++ b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java @@ -3310,7 +3310,7 @@ public class InvoiceServices { errorMessageList.add(UtilProperties.getMessage(RESOURCE, "AccountingNoAmount", locale)); } else { successMessage = UtilProperties.getMessage(RESOURCE, - "AccountingApplicationSuccess", + "AccountingPaymentApplicationSuccess", UtilMisc.toMap("amountApplied", amountApplied, "paymentId", paymentId, "isoCode", currencyUomId, diff --git a/applications/accounting/widget/AccountingMenus.xml b/applications/accounting/widget/AccountingMenus.xml index 1f749422b7..7dd2e98f2b 100644 --- a/applications/accounting/widget/AccountingMenus.xml +++ b/applications/accounting/widget/AccountingMenus.xml @@ -181,7 +181,7 @@ under the License. - + diff --git a/applications/accounting/widget/PaymentScreens.xml b/applications/accounting/widget/PaymentScreens.xml index 043b285b01..a492c18caa 100644 --- a/applications/accounting/widget/PaymentScreens.xml +++ b/applications/accounting/widget/PaymentScreens.xml @@ -226,7 +226,7 @@ under the License. - + @@ -236,7 +236,7 @@ under the License. - +