taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit fd391aee1eebff27938234202db6180119ce03c7
parent aeef688db124f42991571cc89832024bc6b72400
Author: Florian Dold <florian@dold.me>
Date:   Tue, 22 Jul 2025 02:37:56 +0200

aml: tweak strings

Diffstat:
Mpackages/aml-backoffice-ui/src/components/MeasuresTable.tsx | 5++---
Mpackages/aml-backoffice-ui/src/pages/AccountDetails.tsx | 3---
Mpackages/aml-backoffice-ui/src/pages/decision/Events.tsx | 9++++-----
Mpackages/aml-backoffice-ui/src/pages/decision/Measures.tsx | 13+++++--------
4 files changed, 11 insertions(+), 19 deletions(-)

diff --git a/packages/aml-backoffice-ui/src/components/MeasuresTable.tsx b/packages/aml-backoffice-ui/src/components/MeasuresTable.tsx @@ -140,8 +140,7 @@ export function CurrentMeasureTable({ </h1> <p class="mt-2 text-sm text-gray-700"> <i18n.Translate> - Will show a label or information to the user until a new - state. + Will show information to the user. </i18n.Translate> </p> </div> @@ -223,7 +222,7 @@ export function CurrentMeasureTable({ <div class="sm:flex sm:items-center"> <div class="sm:flex-auto"> <h1 class="text-base font-semibold text-gray-900"> - <i18n.Translate>Procedures</i18n.Translate> + <i18n.Translate>Instant measures</i18n.Translate> </h1> <p class="mt-2 text-sm text-gray-700"> <i18n.Translate> diff --git a/packages/aml-backoffice-ui/src/pages/AccountDetails.tsx b/packages/aml-backoffice-ui/src/pages/AccountDetails.tsx @@ -43,8 +43,6 @@ import { useCurrentLegitimizations } from "../hooks/legitimizations.js"; import { useServerMeasures } from "../hooks/server-info.js"; import { BANK_RULES, WALLET_RULES } from "./decision/Rules.js"; -const TALER_SCREEN_ID = 116; - export function ShowProperties(props: { properties?: AccountProperties; }): VNode { @@ -65,7 +63,6 @@ export function ShowProperties(props: { </p> ); })} - ; </> ); } diff --git a/packages/aml-backoffice-ui/src/pages/decision/Events.tsx b/packages/aml-backoffice-ui/src/pages/decision/Events.tsx @@ -16,7 +16,7 @@ import { AmlDecision, EventsDerivation_TOPS, - TalerFormAttributes + TalerFormAttributes, } from "@gnu-taler/taler-util"; import { FormDesign, @@ -25,7 +25,7 @@ import { onComponentUnload, SelectUiChoice, useForm, - useTranslationContext + useTranslationContext, } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; import { @@ -123,7 +123,7 @@ const formDesign = ( sections: [ { title: i18n.str`Events`, - description: i18n.str`This events will count when this decision is confirmed.`, + description: i18n.str`The events will be triggered only after the decision has been confirmed.`, fields: [ { type: "selectMultiple", @@ -155,7 +155,7 @@ const formDesign = ( id: "custom", type: "array", label: i18n.str`Custom list`, - help: i18n.str`Events that is not yet supported`, + help: i18n.str`Events without built-in support.`, labelFieldId: "name", fields: [ { @@ -170,7 +170,6 @@ const formDesign = ( ], }); - // function labelForEvent_tops( // event: TOPS_AmlEventsName, // i18n: InternationalizationAPI, diff --git a/packages/aml-backoffice-ui/src/pages/decision/Measures.tsx b/packages/aml-backoffice-ui/src/pages/decision/Measures.tsx @@ -17,7 +17,7 @@ import { assertUnreachable, KycCheckInformation, MeasureInformation, - TalerError + TalerError, } from "@gnu-taler/taler-util"; import { FormDesign, @@ -29,15 +29,12 @@ import { } from "@gnu-taler/web-util/browser"; import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { - CurrentMeasureTable, -} from "../../components/MeasuresTable.js"; +import { CurrentMeasureTable } from "../../components/MeasuresTable.js"; import { MeasureDefinition, NewMeasure } from "../../components/NewMeasure.js"; import { useCurrentDecisionRequest } from "../../hooks/decision-request.js"; import { useServerMeasures } from "../../hooks/server-info.js"; import { computeMeasureInformation } from "../../utils/computeAvailableMesaures.js"; -const TALER_SCREEN_ID = 105; /** * Ask for more information, define new paths to proceed * @param param0 @@ -48,7 +45,7 @@ export function Measures(): VNode { const [addMeasure, setAddMeasure] = useState<{ isNew: boolean; template: Partial<MeasureDefinition>; - }>(); //test; + }>(); const measures = useServerMeasures(); @@ -427,8 +424,8 @@ function formDesign( } }), id: "measures", - label: i18n.str`Active measures`, - help: i18n.str`Measures that the customer will need to satisfy while the rules are active.`, + label: i18n.str`New measures`, + help: i18n.str`Measures that are available/executed directly after the decision is confirmed.`, }, ], };