Improved: Rename invoiceApplications menu-item label to Payments (OFBIZ-12405)

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:
        <value xml:lang="ar">طلبات المدفوعات </value>
        <value xml:lang="de">Zahlungsaufzeichnungen</value>
        <value xml:lang="en">Payments application</value>
        <value xml:lang="es">Registros de pago</value>
        <value xml:lang="fr">Enregistrement des paiements</value>
        <value xml:lang="hi-IN">अनुप्रयोग</value>
        <value xml:lang="it">Registri di pagamento</value>

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
This commit is contained in:
Jacques Le Roux
2021-11-30 12:16:23 +01:00
parent 4f55f51ea4
commit 4aa2d71432
4 changed files with 9 additions and 9 deletions
@@ -1173,12 +1173,12 @@
<value xml:lang="zh">应付支付组</value>
<value xml:lang="zh-TW">應付支付群組</value>
</property>
<property key="AccountingApplicationSuccess">
<property key="AccountingPaymentApplicationSuccess">
<value xml:lang="ar">تطبيق ${amountApplied?currency$({isoCode})} من الدفعة [${paymentId}] إلى ${toMessage}</value>
<value xml:lang="de">${amountApplied?currency(${isoCode})} von Zahlung [${paymentId}] to ${toMessage} zugewiesen</value>
<value xml:lang="en">Applying ${amountApplied?currency(${isoCode})} from payment [${paymentId}] to ${toMessage}</value>
<value xml:lang="es">Aplicando ${amountApplied?currency(${isoCode})} de pago [${paymentId}] a ${toMessage}</value>
<value xml:lang="fr">Enregistrer ${amountApplied?currency(${isoCode})} du paiement [${paymentId}] à ${toMessage}</value>
<value xml:lang="fr">Enregistrement de ${amountApplied?currency(${isoCode})} du paiement [${paymentId}] à ${toMessage}</value>
<value xml:lang="hi-IN">${toMessage} के लिए भुगतान से [${paymentId}], ${amountApplied?currency(${isoCode})} को लगाएं</value>
<value xml:lang="it">Applicazione ${amountApplied?currency(${isoCode})} dal pagamento [${paymentId}] a ${toMessage}</value>
<value xml:lang="ja">${amountApplied?currency(${isoCode})} を、支払 [${paymentId}] から ${toMessage} に消込中</value>
@@ -1264,12 +1264,12 @@
<value xml:lang="zh">到税务机关辖区[${taxAuthGeoId}]</value>
<value xml:lang="zh-TW">到稅務機關轄區[${taxAuthGeoId}]</value>
</property>
<property key="AccountingApplications">
<property key="AccountingPaymentsApplications">
<value xml:lang="ar">تطبيقات</value>
<value xml:lang="de">Zuweisungen</value>
<value xml:lang="en">Applications</value>
<value xml:lang="en">Payments</value>
<value xml:lang="es">Aplicaciones</value>
<value xml:lang="fr">Enregistrements</value>
<value xml:lang="fr">Enregistrement des paiements</value>
<value xml:lang="hi-IN">अनुप्रयोग</value>
<value xml:lang="it">Pagamenti Applicati</value>
<value xml:lang="ja">適用</value>
@@ -3310,7 +3310,7 @@ public class InvoiceServices {
errorMessageList.add(UtilProperties.getMessage(RESOURCE, "AccountingNoAmount", locale));
} else {
successMessage = UtilProperties.getMessage(RESOURCE,
"AccountingApplicationSuccess",
"AccountingPaymentApplicationSuccess",
UtilMisc.<String, Object>toMap("amountApplied", amountApplied,
"paymentId", paymentId,
"isoCode", currencyUomId,
@@ -181,7 +181,7 @@ under the License.
<parameter param-name="invoiceId" from-field="invoice.invoiceId"/>
</link>
</menu-item>
<menu-item name="editInvoiceApplications" title="${uiLabelMap.AccountingApplications}">
<menu-item name="editInvoiceApplications" title="${uiLabelMap.AccountingPaymentsApplications}">
<condition>
<and>
<not><if-empty field="invoice.invoiceId"/></not>
@@ -226,7 +226,7 @@ under the License.
<if-empty field="paymentApplications"/>
</condition>
<widgets>
<container><label style="h1" text="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingApplications}"/></container>
<container><label style="h1" text="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingPaymentsApplications}"/></container>
<container><label style="h1" text="${uiLabelMap.CommonAmount} ${uiLabelMap.CommonTotal} ${payment.amount?currency(${payment.currencyUomId})} ${uiLabelMap.AccountingAmountNotApplied} ${notAppliedAmount?currency(${payment.currencyUomId})}"/></container>
<container><label style="h3" text="${uiLabelMap.AccountingNoPaymentsApplicationsfound}"></label></container>
</widgets>
@@ -236,7 +236,7 @@ under the License.
<not><if-empty field="paymentApplicationsInv"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingApplications}">
<screenlet title="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingPaymentsApplications}">
<include-grid name="EditPaymentApplicationsInv" location="component://accounting/widget/PaymentForms.xml"/>
</screenlet>
</widgets>