From 2487a06bfea973dc92b7e3aff2e7a70f48d2cf17 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 12 Jan 2024 17:31:05 -0300 Subject: better wording --- packages/demobank-ui/package.json | 6 ++---- packages/demobank-ui/src/pages/OperationState/views.tsx | 3 ++- packages/demobank-ui/src/pages/SolveChallengePage.tsx | 2 +- packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx | 1 + packages/demobank-ui/src/pages/WithdrawalQRCode.tsx | 2 ++ packages/demobank-ui/src/pages/admin/AccountForm.tsx | 6 +++--- packages/demobank-ui/src/pages/business/CreateCashout.tsx | 6 +++--- packages/demobank-ui/src/pages/business/ShowCashoutDetails.tsx | 2 +- 8 files changed, 15 insertions(+), 13 deletions(-) (limited to 'packages/demobank-ui') diff --git a/packages/demobank-ui/package.json b/packages/demobank-ui/package.json index fa6f5bc7b..22c4dc874 100644 --- a/packages/demobank-ui/package.json +++ b/packages/demobank-ui/package.json @@ -12,10 +12,8 @@ "test": "./test.mjs && mocha --require source-map-support/register 'dist/test/**/*.test.js' 'dist/test/**/test.js'", "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'", "typedoc": "typedoc --out dist/typedoc ./src/", - "i18n:extract": "pogen extract", - "i18n:merge": "pogen merge", - "i18n:emit": "pogen emit", - "i18n": "pnpm i18n:extract && pnpm i18n:merge && pnpm i18n:emit", + "i18n:strings": "pogen extract && pogen merge", + "i18n:translations": "pogen emit", "pretty": "prettier --write src" }, "dependencies": { diff --git a/packages/demobank-ui/src/pages/OperationState/views.tsx b/packages/demobank-ui/src/pages/OperationState/views.tsx index 0ebdeea47..d0016a2f3 100644 --- a/packages/demobank-ui/src/pages/OperationState/views.tsx +++ b/packages/demobank-ui/src/pages/OperationState/views.tsx @@ -93,6 +93,7 @@ export function NeedConfirmationView({ error, onAbort: doAbort, onConfirm: doCon description: resp.detail.hint as TranslatedString, debug: resp.detail, }) + // FIXME: remove exchange word case TalerErrorCode.BANK_CONFIRM_INCOMPLETE: return notify({ type: "error", title: i18n.str`The withdraw operation cannot be confirmed because no exchange and reserve public key selection happened before`, @@ -329,7 +330,7 @@ export function ReadyView({ uri, onClose: doClose }: State.Ready): VNode<{}> {

- If you are using a desktop browser you can open the popup now or click the link if you have the "Inject Taler support" option enabled. + If you are using a web browser on desktop you should access your wallet with the GNU Taler WebExtension now or click the link if your WebExtension have the "Inject Taler support" option enabled.

diff --git a/packages/demobank-ui/src/pages/SolveChallengePage.tsx b/packages/demobank-ui/src/pages/SolveChallengePage.tsx index e55038df5..426866e40 100644 --- a/packages/demobank-ui/src/pages/SolveChallengePage.tsx +++ b/packages/demobank-ui/src/pages/SolveChallengePage.tsx @@ -398,7 +398,7 @@ function ChallengeDetails({ challenge, onStart }: { challenge: ChallengeInProges } {challenge.request.is_public !== undefined &&
-
Is public
+
Is this account public?
{challenge.request.is_public ? "enable" : "disable"}
diff --git a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx index 890478f82..a2ddc725e 100644 --- a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx @@ -93,6 +93,7 @@ export function WithdrawalConfirmationQuestion({ description: resp.detail.hint as TranslatedString, debug: resp.detail, }); + // FIXME: remove exchange word case TalerErrorCode.BANK_CONFIRM_INCOMPLETE: return notify({ type: "error", title: i18n.str`The withdraw operation cannot be confirmed because no exchange and reserve public key selection happened before`, diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx index 97bc9f61f..c81c4ab8a 100644 --- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx @@ -68,10 +68,12 @@ export function WithdrawalQRCode({ const { body: data } = result; if (data.status === "aborted") { + // FIXME: remove exchange word return

{i18n.str`Operation aborted`}

+ The wire transfer to the GNU Taler Exchange bank's account was aborted, your balance was not affected. diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx index 7296e7744..827b2a0f0 100644 --- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx +++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx @@ -408,7 +408,7 @@ export function AccountForm({

- Is an exchange + Is this a Taler Exchange?