commit 6b33ceccd616991bf9e7ac2d22502a53d6d8e6e2
parent 88ebb7648941f82d7b3554684d3dc113ea31be4e
Author: Stefan Kügel <stefan.kuegel@taler.net>
Date: Wed, 15 Oct 2025 23:13:03 +0200
rectify English strings for the Merchant Backend UI (InputPaytoForm)
Diffstat:
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx b/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx
@@ -149,9 +149,9 @@ function validateIBAN_path1(
): TranslatedString | undefined {
// Check total length
if (iban.length < 4)
- return i18n.str`IBAN numbers usually have more that 4 digits`;
+ return i18n.str`IBANs usually have more than 4 digits.`;
if (iban.length > 34)
- return i18n.str`IBAN numbers usually have less that 34 digits`;
+ return i18n.str`IBANs usually have fewer than 34 digits.`;
const A_code = "A".charCodeAt(0);
const Z_code = "Z".charCodeAt(0);
@@ -159,7 +159,7 @@ function validateIBAN_path1(
// check supported country
const code = IBAN.substr(0, 2);
const found = code in COUNTRY_TABLE;
- if (!found) return i18n.str`IBAN country code not found`;
+ if (!found) return i18n.str`The IBAN's country code could not be retrieved.`;
// 2.- Move the four initial characters to the end of the string
const step2 = IBAN.substr(4) + iban.substr(0, 4);
@@ -184,7 +184,7 @@ function validateIBAN_path1(
const checksum = calculate_iban_checksum(step3);
if (checksum !== 1)
- return i18n.str`IBAN number is invalid, checksum is wrong`;
+ return i18n.str`The IBAN is invalid because the checksum is wrong.`;
return undefined;
}
@@ -200,7 +200,7 @@ export function InputPaytoForm<T>({
const { i18n } = useTranslationContext();
const targets = [
- i18n.str`Choose one...`,
+ i18n.str`Select a wire method...`,
"iban",
"bitcoin",
"ethereum",
@@ -309,10 +309,10 @@ export function InputPaytoForm<T>({
<InputSelector<Entity>
name="target"
label={i18n.str`Wire method`}
- tooltip={i18n.str`Method to use for wire transfer`}
+ tooltip={i18n.str`Select the method you want to use to transfer your earnings to your business account.`}
values={targets}
readonly={readonly}
- toStr={(v) => (v === noTargetValue ? i18n.str`Choose one...` : v)}
+ toStr={(v) => (v === noTargetValue ? i18n.str`Select a wire method...` : v)}
/>
{value.target === "ach" && (
@@ -321,13 +321,13 @@ export function InputPaytoForm<T>({
name="path1"
label={i18n.str`Routing`}
readonly={readonly}
- tooltip={i18n.str`Routing number.`}
+ tooltip={i18n.str`Routing number`}
/>
<Input<Entity>
name="path2"
label={i18n.str`Account`}
readonly={readonly}
- tooltip={i18n.str`Account number.`}
+ tooltip={i18n.str`Account number`}
/>
</Fragment>
)}
@@ -337,7 +337,7 @@ export function InputPaytoForm<T>({
name="path1"
label={i18n.str`Code`}
readonly={readonly}
- tooltip={i18n.str`Business Identifier Code.`}
+ tooltip={i18n.str`Business Identifier Code`}
/>
</Fragment>
)}
@@ -346,9 +346,9 @@ export function InputPaytoForm<T>({
<Input<Entity>
name="path1"
label={i18n.str`IBAN`}
- tooltip={i18n.str`International Bank Account Number.`}
+ tooltip={i18n.str`International Bank Account Number`}
readonly={readonly}
- placeholder="DE1231231231"
+ placeholder="e.g. DE12 0000 1111 2222 3333 00"
inputExtra={{ style: { textTransform: "uppercase" } }}
/>
</Fragment>
@@ -359,7 +359,7 @@ export function InputPaytoForm<T>({
name="path1"
readonly={readonly}
label={i18n.str`Account`}
- tooltip={i18n.str`Unified Payment Interface.`}
+ tooltip={i18n.str`Unified Payment Interface`}
/>
</Fragment>
)}
@@ -369,7 +369,7 @@ export function InputPaytoForm<T>({
name="path1"
readonly={readonly}
label={i18n.str`Address`}
- tooltip={i18n.str`Bitcoin protocol.`}
+ tooltip={i18n.str`Bitcoin protocol`}
/>
</Fragment>
)}
@@ -379,7 +379,7 @@ export function InputPaytoForm<T>({
name="path1"
readonly={readonly}
label={i18n.str`Address`}
- tooltip={i18n.str`Ethereum protocol.`}
+ tooltip={i18n.str`Ethereum protocol`}
/>
</Fragment>
)}
@@ -389,7 +389,7 @@ export function InputPaytoForm<T>({
name="path1"
readonly={readonly}
label={i18n.str`Address`}
- tooltip={i18n.str`Interledger protocol.`}
+ tooltip={i18n.str`Interledger protocol`}
/>
</Fragment>
)}
@@ -411,12 +411,12 @@ export function InputPaytoForm<T>({
}
return v;
}}
- tooltip={i18n.str`Bank host.`}
+ tooltip={i18n.str`Bank host`}
help={
<Fragment>
<div>
<i18n.Translate>
- Without scheme and may include subpath:
+ Enter the data without a scheme. A subpath may be included:
</i18n.Translate>
</div>
<div>bank.com/</div>
@@ -428,7 +428,7 @@ export function InputPaytoForm<T>({
name="path2"
readonly={readonly}
label={i18n.str`Account`}
- tooltip={i18n.str`Bank account.`}
+ tooltip={i18n.str`Bank account`}
/>
</Fragment>
)}
@@ -441,10 +441,10 @@ export function InputPaytoForm<T>({
<Input
name="params.receiver-name"
readonly={readonly}
- label={i18n.str`Owner's name`}
+ label={i18n.str`Name of the account holder`}
placeholder="John Doe"
tooltip={i18n.str`Legal name of the person holding the account.`}
- help={i18n.str`It should match the bank account name.`}
+ help={i18n.str`This name should match the name of the bank account holder.`}
/>
</Fragment>
)}