diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-06 19:14:34 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-06 19:14:34 -0300 |
commit | f99e1522d1114eeda6bd7ff3aea91421699c783c (patch) | |
tree | 3add4da7c1927125d0e41459cbe1abab36cc6355 /packages/merchant-backoffice-ui | |
parent | 3639c6db60e9cf914607422418a9f78bfcf92faa (diff) | |
download | wallet-core-f99e1522d1114eeda6bd7ff3aea91421699c783c.tar.xz |
double quotes don't work with pogen
Diffstat (limited to 'packages/merchant-backoffice-ui')
11 files changed, 147 insertions, 8 deletions
diff --git a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx index e31ff4513..c8f22f583 100644 --- a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx +++ b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx @@ -167,14 +167,14 @@ export function InstanceRoutes({ if (error.type === ErrorType.TIMEOUT) { setGlobalNotification({ message: i18n.str`The request to the backend take too long and was cancelled`, - description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`, + description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`, type: "ERROR", to, }); } else { setGlobalNotification({ message: i18n.str`The backend reported a problem: HTTP status #${error.status}`, - description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`, + description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`, details: error.clientError || error.serverError ? error.error?.detail @@ -586,12 +586,12 @@ function AdminInstanceUpdatePage({ error.type === ErrorType.TIMEOUT ? { message: i18n.str`The request to the backend take too long and was cancelled`, - description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`, + description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`, type: "ERROR" as const, } : { message: i18n.str`The backend reported a problem: HTTP status #${error.status}`, - description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`, + description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`, details: error.clientError || error.serverError ? error.error?.detail diff --git a/packages/merchant-backoffice-ui/src/i18n/de.po b/packages/merchant-backoffice-ui/src/i18n/de.po index ddddbdfab..d0298800e 100644 --- a/packages/merchant-backoffice-ui/src/i18n/de.po +++ b/packages/merchant-backoffice-ui/src/i18n/de.po @@ -219,11 +219,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1868,6 +1878,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2453,6 +2468,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/en.po b/packages/merchant-backoffice-ui/src/i18n/en.po index ddddbdfab..d0298800e 100644 --- a/packages/merchant-backoffice-ui/src/i18n/en.po +++ b/packages/merchant-backoffice-ui/src/i18n/en.po @@ -219,11 +219,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1868,6 +1878,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2453,6 +2468,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/es.po b/packages/merchant-backoffice-ui/src/i18n/es.po index fcea3fcdc..ec7eea12b 100644 --- a/packages/merchant-backoffice-ui/src/i18n/es.po +++ b/packages/merchant-backoffice-ui/src/i18n/es.po @@ -222,11 +222,21 @@ msgstr "Sin instancia default" msgid "All" msgstr "Todo" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, fuzzy, c-format msgid "Failed to delete instance" msgstr "Sin instancia default" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, fuzzy, c-format msgid "Failed to purge instance" @@ -1873,6 +1883,11 @@ msgstr "no se pudo eliminar el producto" msgid "could not update template" msgstr "no se pudo actualizar el producto" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, fuzzy, c-format +msgid "should be one of '%1$s'" +msgstr "deberÃan ser iguales" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2459,6 +2474,11 @@ msgstr "Acceso denegado" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, fuzzy, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/fr.po b/packages/merchant-backoffice-ui/src/i18n/fr.po index ddddbdfab..d0298800e 100644 --- a/packages/merchant-backoffice-ui/src/i18n/fr.po +++ b/packages/merchant-backoffice-ui/src/i18n/fr.po @@ -219,11 +219,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1868,6 +1878,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2453,6 +2468,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/it.po b/packages/merchant-backoffice-ui/src/i18n/it.po index ddddbdfab..d0298800e 100644 --- a/packages/merchant-backoffice-ui/src/i18n/it.po +++ b/packages/merchant-backoffice-ui/src/i18n/it.po @@ -219,11 +219,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1868,6 +1878,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2453,6 +2468,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/sv.po b/packages/merchant-backoffice-ui/src/i18n/sv.po index ddddbdfab..d0298800e 100644 --- a/packages/merchant-backoffice-ui/src/i18n/sv.po +++ b/packages/merchant-backoffice-ui/src/i18n/sv.po @@ -219,11 +219,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" + #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1868,6 +1878,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2453,6 +2468,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot b/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot index 88dc285f6..cdc469328 100644 --- a/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot +++ b/packages/merchant-backoffice-ui/src/i18n/taler-merchant-backoffice.pot @@ -215,12 +215,21 @@ msgstr "" msgid "All" msgstr "" +#: src/paths/admin/list/index.tsx:89 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been deleted" +msgstr "" #: src/paths/admin/list/index.tsx:94 #, c-format msgid "Failed to delete instance" msgstr "" +#: src/paths/admin/list/index.tsx:112 +#, c-format +msgid "Instance '%1$s' (ID: %2$s) has been disabled" +msgstr "" + #: src/paths/admin/list/index.tsx:117 #, c-format msgid "Failed to purge instance" @@ -1857,6 +1866,11 @@ msgstr "" msgid "could not update template" msgstr "" +#: src/paths/instance/webhooks/create/CreatePage.tsx:57 +#, c-format +msgid "should be one of '%1$s'" +msgstr "" + #: src/paths/instance/webhooks/create/CreatePage.tsx:85 #, c-format msgid "Webhook ID to use" @@ -2438,6 +2452,11 @@ msgstr "" msgid "The request to the backend take too long and was cancelled" msgstr "" +#: src/InstanceRoutes.tsx:170 +#, c-format +msgid "Diagnostic from %1$s is '%2$s'" +msgstr "" + #: src/InstanceRoutes.tsx:176 #, c-format msgid "The backend reported a problem: HTTP status #%1$s" diff --git a/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx index 8efb5598d..dd1c1e557 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx @@ -86,7 +86,7 @@ export default function Instances({ await deleteInstance(deleting.id); // pushNotification({ message: 'delete_success', type: 'SUCCESS' }) setNotif({ - message: i18n.str`Instance "${deleting.name}" (ID: ${deleting.id}) has been deleted`, + message: i18n.str`Instance '${deleting.name}' (ID: ${deleting.id}) has been deleted`, type: "SUCCESS", }); } catch (error) { @@ -109,7 +109,7 @@ export default function Instances({ try { await purgeInstance(purging.id); setNotif({ - message: i18n.str`Instance "${purging.name}" (ID: ${purging.id}) has been disabled`, + message: i18n.str`Instance '${purging.name}' (ID: ${purging.id}) has been disabled`, type: "SUCCESS", }); } catch (error) { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx index 1d049149b..8150f3aec 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx @@ -54,7 +54,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode { http_method: !state.http_method ? i18n.str`required` : !validMethod.includes(state.http_method) - ? i18n.str`should be one of "${validMethod.join(", ")}"` + ? i18n.str`should be one of '${validMethod.join(", ")}'` : undefined, url: !state.url ? i18n.str`required` : undefined, }; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/update/UpdatePage.tsx index 4e3674dca..0401453db 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/update/UpdatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/update/UpdatePage.tsx @@ -50,7 +50,7 @@ export function UpdatePage({ webhook, onUpdate, onBack }: Props): VNode { http_method: !state.http_method ? i18n.str`required` : !validMethod.includes(state.http_method) - ? i18n.str`should be one of "${validMethod.join(", ")}"` + ? i18n.str`should be one of '${validMethod.join(", ")}'` : undefined, url: !state.url ? i18n.str`required` : undefined, }; |