added ja lang and implemented transalation switch

This commit is contained in:
Sebastian 2022-02-24 12:41:47 -03:00
parent 6bd6ace593
commit 68b8873442
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
20 changed files with 3060 additions and 519 deletions

View File

@ -34,7 +34,9 @@ export function po2ts(): void {
console.log(files); console.log(files);
const chunks: string[] = []; const chunks: string[] = [
"export const strings: any = {};\n\n"
];
for (const filename of files) { for (const filename of files) {
const m = filename.match(/([a-zA-Z0-9-_]+).po/); const m = filename.match(/([a-zA-Z0-9-_]+).po/);

View File

@ -70,11 +70,14 @@ export function translate(
/** /**
* Internationalize a string template without serializing * Internationalize a string template without serializing
*/ */
export function Translate({ children, ...rest }: { children: any }): any { export function Translate({ children, debug, }: { children: any, debug?: boolean }): any {
const c = [].concat(children); const c = [].concat(children);
const s = stringifyArray(c); const s = stringifyArray(c);
if (!s) return []; if (!s) return [];
const translation: string = jed.ngettext(s, s, 1); const translation: string = jed.ngettext(s, s, 1);
if (debug) {
console.log("looking for ", s, "got", translation)
}
return replacePlaceholderWithValues(translation, c); return replacePlaceholderWithValues(translation, c);
} }

View File

@ -32,7 +32,9 @@ export const globalTypes = {
icon: 'globe', icon: 'globe',
items: [ items: [
{ value: 'en', right: '🇺🇸', title: 'English' }, { value: 'en', right: '🇺🇸', title: 'English' },
{ value: 'de', right: '🇪🇸', title: 'German' }, { value: 'ja', right: '🇯🇵', title: 'Japanese' },
{ value: 'es', right: '🇪🇸', title: 'Spanish' },
{ value: 'de', right: '🇩🇪', title: 'German' },
], ],
}, },
}, },

View File

@ -17,7 +17,8 @@
"pretty": "prettier --write src", "pretty": "prettier --write src",
"watch": "tsc --watch & rollup -w -c", "watch": "tsc --watch & rollup -w -c",
"i18n:extract": "pogen extract", "i18n:extract": "pogen extract",
"i18n:merge": "pogen merge" "i18n:merge": "pogen merge",
"i18n:emit": "pogen emit"
}, },
"dependencies": { "dependencies": {
"@gnu-taler/taler-util": "workspace:*", "@gnu-taler/taler-util": "workspace:*",

View File

@ -29,10 +29,24 @@ import { setupI18n } from "@gnu-taler/taler-util";
interface Type { interface Type {
lang: string; lang: string;
supportedLang: { [id in keyof typeof supportedLang]: string }
changeLanguage: (l: string) => void; changeLanguage: (l: string) => void;
} }
const supportedLang = {
es: "Español [es]",
ja: "日本語 [ja]",
en: "English [en]",
fr: "Français [fr]",
de: "Deutsch [de]",
sv: "Svenska [sv]",
it: "Italiano [it]",
};
const initial = { const initial = {
lang: "en", lang: "en",
supportedLang,
changeLanguage: () => { changeLanguage: () => {
// do not change anything // do not change anything
}, },
@ -52,7 +66,11 @@ export const TranslationProvider = ({
children, children,
forceLang, forceLang,
}: Props): VNode => { }: Props): VNode => {
const [lang, changeLanguage] = useLang(initial); const [lang, changeLanguage2] = useLang(initial);
function changeLanguage(s: string) {
console.log("trying to change lang to ", s, "current lang", lang)
changeLanguage2(s)
}
useEffect(() => { useEffect(() => {
if (forceLang) { if (forceLang) {
changeLanguage(forceLang); changeLanguage(forceLang);
@ -66,7 +84,7 @@ export const TranslationProvider = ({
} else { } else {
setupI18n(lang, strings); setupI18n(lang, strings);
} }
return h(Context.Provider, { value: { lang, changeLanguage }, children }); return h(Context.Provider, { value: { lang, changeLanguage, supportedLang }, children });
}; };
export const useTranslationContext = (): Type => useContext(Context); export const useTranslationContext = (): Type => useContext(Context);

View File

@ -110,7 +110,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "" msgstr ""
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -251,6 +251,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -598,7 +603,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -776,64 +781,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -1005,6 +1020,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1217,6 +1237,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1262,7 +1287,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -31,7 +31,7 @@ msgstr ""
#: src/NavigationBar.tsx:70 #: src/NavigationBar.tsx:70
#, c-format #, c-format
msgid "Balance" msgid "Balance"
msgstr "Credit" msgstr "Balance"
#: src/NavigationBar.tsx:73 #: src/NavigationBar.tsx:73
#, c-format #, c-format
@ -110,7 +110,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "" msgstr ""
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -251,6 +251,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -598,7 +603,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -654,7 +659,7 @@ msgstr ""
#: src/wallet/DepositPage.tsx:138 #: src/wallet/DepositPage.tsx:138
#, fuzzy, c-format #, fuzzy, c-format
msgid "no balance" msgid "no balance"
msgstr "Credit" msgstr "no balance"
#: src/wallet/DepositPage.tsx:146 #: src/wallet/DepositPage.tsx:146
#, c-format #, c-format
@ -776,64 +781,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -1005,6 +1020,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1217,6 +1237,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1262,7 +1287,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -19,9 +19,9 @@ msgstr ""
"POT-Creation-Date: 2016-11-23 00:00+0100\n" "POT-Creation-Date: 2016-11-23 00:00+0100\n"
"PO-Revision-Date: 2022-02-18 19:33+0000\n" "PO-Revision-Date: 2022-02-18 19:33+0000\n"
"Last-Translator: Stefan <eintritt@hotmail.com>\n" "Last-Translator: Stefan <eintritt@hotmail.com>\n"
"Language-Team: Italian <http://weblate.taler.net/projects/gnu-taler/" "Language-Team: Spanish <http://weblate.taler.net/projects/gnu-taler/"
"webextensions/it/>\n" "webextensions/es/>\n"
"Language: it\n" "Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
@ -93,8 +93,9 @@ msgstr "No tienes balance para mostrar."
msgid "" msgid ""
"To withdraw money you can start from your bank site or click the \"withdraw" "To withdraw money you can start from your bank site or click the \"withdraw"
"\" button to use a known exchange." "\" button to use a known exchange."
msgstr "Para retirar dinero puedes empezar desde el sitio de tu banco o cliquear" msgstr ""
" en el botón \"extraer\" para usar un exchange conocido" "Para retirar dinero puedes empezar desde el sitio de tu banco o cliquear en "
"el botón \"extraer\" para usar un exchange conocido"
#: src/popup/NoBalanceHelp.tsx:23 #: src/popup/NoBalanceHelp.tsx:23
#, c-format #, c-format
@ -111,7 +112,7 @@ msgstr "No se pudo cargar la página"
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "Depositar %1$s" msgstr "Depositar %1$s"
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "Ingresar URI" msgstr "Ingresar URI"
@ -131,7 +132,8 @@ msgstr "Problemas detectados:"
msgid "" msgid ""
"Please check in your %1$s settings that you have IndexedDB enabled (check " "Please check in your %1$s settings that you have IndexedDB enabled (check "
"the preference name %2$s)." "the preference name %2$s)."
msgstr "Por favor revisa en tu configuración %1$s que tienes IndexedDB habilitado" msgstr ""
"Por favor revisa en tu configuración %1$s que tienes IndexedDB habilitado "
"(el nombre de la preferencia %2$s)." "(el nombre de la preferencia %2$s)."
#: src/components/Diagnostics.tsx:69 #: src/components/Diagnostics.tsx:69
@ -139,8 +141,10 @@ msgstr "Por favor revisa en tu configuración %1$s que tienes IndexedDB habilita
msgid "" msgid ""
"Your wallet database is outdated. Currently automatic migration is not " "Your wallet database is outdated. Currently automatic migration is not "
"supported. Please go %1$s to reset the wallet database." "supported. Please go %1$s to reset the wallet database."
msgstr "La base de datos de la billetera expiró. Por ahora la migración automática " msgstr ""
"no está soportada. Por favor dirijasé a %1$s para reiniciar la base de datos de la billetera" "La base de datos de la billetera expiró. Por ahora la migración automática "
"no está soportada. Por favor dirijasé a %1$s para reiniciar la base de datos "
"de la billetera"
#: src/components/Diagnostics.tsx:85 #: src/components/Diagnostics.tsx:85
#, c-format #, c-format
@ -227,8 +231,9 @@ msgstr "cliquear para mostrar"
msgid "" msgid ""
"Do you want to IRREVOCABLY DESTROY everything inside your wallet and LOSE " "Do you want to IRREVOCABLY DESTROY everything inside your wallet and LOSE "
"ALL YOUR COINS?" "ALL YOUR COINS?"
msgstr "Quieres DESTRUIR IRREVOCABLEMENTE todo dentro de tu billetera y PERDER" msgstr ""
" TODAS TUS MONEDAS?" "Quieres DESTRUIR IRREVOCABLEMENTE todo dentro de tu billetera y PERDER TODAS "
"TUS MONEDAS?"
#: src/popup/TalerActionFound.tsx:56 #: src/popup/TalerActionFound.tsx:56
#, c-format #, c-format
@ -255,6 +260,11 @@ msgstr "Esta página tiene una acción de propina."
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "Esta página tiene una acción de notificación de reserva." msgstr "Esta página tiene una acción de notificación de reserva."
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr "Notificar"
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -398,7 +408,8 @@ msgstr "Ingresar la URL de un exchange que tu confíes."
#: src/wallet/ExchangeSetUrl.tsx:112 #: src/wallet/ExchangeSetUrl.tsx:112
#, c-format #, c-format
msgid "An exchange has been found! Review the information and click next" msgid "An exchange has been found! Review the information and click next"
msgstr "Un exchange ha sido encontrado! Revisa la información y cliquea en siguente" msgstr ""
"Un exchange ha sido encontrado! Revisa la información y cliquea en siguente"
#: src/wallet/ExchangeSetUrl.tsx:119 #: src/wallet/ExchangeSetUrl.tsx:119
#, c-format #, c-format
@ -540,7 +551,9 @@ msgstr "Extender"
msgid "" msgid ""
"terms has changed, extending the service will imply accepting the new terms " "terms has changed, extending the service will imply accepting the new terms "
"of service" "of service"
msgstr "los terminos han cambiado, extender el servicio implicará aceptar los nuevos terminos de servicio" msgstr ""
"los terminos han cambiado, extender el servicio implicará aceptar los nuevos "
"terminos de servicio"
#: src/wallet/ProviderDetailPage.tsx:177 #: src/wallet/ProviderDetailPage.tsx:177
#, c-format #, c-format
@ -602,7 +615,7 @@ msgstr "servicio pagado"
msgid "Backup valid until" msgid "Backup valid until"
msgstr "Backup valido hasta" msgstr "Backup valido hasta"
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "Este popup se cerrará y estás siendo redirijido a %1$s" msgstr "Este popup se cerrará y estás siendo redirijido a %1$s"
@ -623,9 +636,10 @@ msgid ""
"Choose a exchange from where the coins will be withdrawn. The exchange will " "Choose a exchange from where the coins will be withdrawn. The exchange will "
"send the coins to this wallet after receiving a wire transfer with the " "send the coins to this wallet after receiving a wire transfer with the "
"correct subject." "correct subject."
msgstr "Elija un exchange desde donde las monedas serán extraídas. El exchange " msgstr ""
"enviará las monedas a esta billetera después de recibir una transferencia con " "Elija un exchange desde donde las monedas serán extraídas. El exchange "
"el asunto correcto." "enviará las monedas a esta billetera después de recibir una transferencia "
"con el asunto correcto."
#: src/wallet/CreateManualWithdraw.tsx:114 #: src/wallet/CreateManualWithdraw.tsx:114
#, c-format #, c-format
@ -761,87 +775,103 @@ msgstr "El exchange está listo para la extracción"
#, c-format #, c-format
msgid "" msgid ""
"To complete the process you need to wire %1$s to the exchange bank account" "To complete the process you need to wire %1$s to the exchange bank account"
msgstr "Para completar el proceso necesitas enviar %1$s a la cuenta bancaria del exchange" msgstr ""
"Para completar el proceso necesitas enviar %1$s a la cuenta bancaria del "
"exchange"
#: src/wallet/ReserveCreated.tsx:53 #: src/wallet/ReserveCreated.tsx:53
#, c-format #, c-format
msgid "" msgid ""
"Make sure to use the correct subject, otherwise the money will not arrive in " "Make sure to use the correct subject, otherwise the money will not arrive in "
"this wallet." "this wallet."
msgstr "Asegurate de usar el asunto correcto, de otra manera el dinero no llegará a esta billetera" msgstr ""
"Asegurate de usar el asunto correcto, de otra manera el dinero no llegará a "
"esta billetera"
#: src/wallet/ReserveCreated.tsx:62 #: src/wallet/ReserveCreated.tsx:62
#, c-format #, c-format
msgid "" msgid ""
"Alternative, you can also scan this QR code or open %1$s if you have a " "Alternative, you can also scan this QR code or open %1$s if you have a "
"banking app installed that supports RFC 8905" "banking app installed that supports RFC 8905"
msgstr "Alternativamente, también puedes escanear el código QR o abrir %1$s si tienes" msgstr ""
" una aplicación bancaria instalada que soporta RFC 8905" "Alternativamente, también puedes escanear el código QR o abrir %1$s si "
"tienes una aplicación bancaria instalada que soporta RFC 8905"
#: src/wallet/ReserveCreated.tsx:73 #: src/wallet/ReserveCreated.tsx:73
#, c-format #, c-format
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "Cancelar extracción" msgstr "Cancelar extracción"
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "Permisos" msgstr "Pantalla"
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr "Lenguage actual"
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr "Navegador"
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "Abrir automáticamente la billetera basado en el contenido de la página" msgstr "Abrir automáticamente la billetera basado en el contenido de la página"
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "Habilitar esta opción debajo hará el uso de la billetera mas rápido, pero " msgstr ""
"Habilitar esta opción debajo hará el uso de la billetera mas rápido, pero "
"requiere mas permisos de tu navegador" "requiere mas permisos de tu navegador"
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "Exchange conocidos" msgstr "Confianza"
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "No hay exchanges todavía" msgstr "No hay exchanges todavía"
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "Terminos de servicio" msgstr "Terminos de servicio"
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "ok" msgstr "ok"
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "modificado" msgstr "modificado"
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "no aceptado" msgstr "no aceptado"
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "Agregar un exchange" msgstr "Agregar un exchange"
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "Modo desarrollador" msgstr "Modo desarrollador"
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "(Mas información y opciones útiles para depuración)" msgstr "(Mas información y opciones útiles para depuración)"
@ -881,8 +911,9 @@ msgstr "Cuidado!"
msgid "" msgid ""
"If you have already wired money to the exchange you will loose the chance to " "If you have already wired money to the exchange you will loose the chance to "
"get the coins form it." "get the coins form it."
msgstr "Si ya has transferido dinero al exchange perderas la oportunidad de " msgstr ""
"recivir las monedas" "Si ya has transferido dinero al exchange perderas la oportunidad de recivir "
"las monedas"
#: src/wallet/Transaction.tsx:211 #: src/wallet/Transaction.tsx:211
#, c-format #, c-format
@ -962,17 +993,17 @@ msgstr "Monto a depositar"
#: src/wallet/Transaction.tsx:447 #: src/wallet/Transaction.tsx:447
#, c-format #, c-format
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr "Actualizar"
#: src/wallet/Transaction.tsx:453 #: src/wallet/Transaction.tsx:453
#, c-format #, c-format
msgid "Total refresh" msgid "Total refresh"
msgstr "" msgstr "Actualización total"
#: src/wallet/Transaction.tsx:459 #: src/wallet/Transaction.tsx:459
#, c-format #, c-format
msgid "Refresh amount" msgid "Refresh amount"
msgstr "" msgstr "Monto de actualización"
#: src/wallet/Transaction.tsx:481 #: src/wallet/Transaction.tsx:481
#, c-format #, c-format
@ -1014,12 +1045,18 @@ msgstr "Extensión del navegador instalada!"
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "Gracias por haber instalado la billetera." msgstr "Gracias por haber instalado la billetera."
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr "Permisos"
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
"(Enabling this option below will make using the wallet faster, but requires " "(Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser.)" "more permissions from your browser.)"
msgstr "(Habilitar esta opción debajo hará el uso de la billetera mas rápido, pero " msgstr ""
"(Habilitar esta opción debajo hará el uso de la billetera mas rápido, pero "
"requiere mas permisos de tu navegador)" "requiere mas permisos de tu navegador)"
#: src/wallet/Welcome.tsx:85 #: src/wallet/Welcome.tsx:85
@ -1045,7 +1082,8 @@ msgstr "No se pudo cargar el estado del pago"
#: src/cta/Pay.tsx:189 #: src/cta/Pay.tsx:189
#, c-format #, c-format
msgid "Could not load contract terms from merchant or wallet backend." msgid "Could not load contract terms from merchant or wallet backend."
msgstr "No se pudo cargar los terminos de contrato del comerciante o de la billetera." msgstr ""
"No se pudo cargar los terminos de contrato del comerciante o de la billetera."
#: src/cta/Pay.tsx:216 #: src/cta/Pay.tsx:216
#, c-format #, c-format
@ -1185,12 +1223,15 @@ msgstr "Actualizando el estado de reembolso"
#: src/cta/Tip.tsx:49 #: src/cta/Tip.tsx:49
#, c-format #, c-format
msgid "Tip from %1$s accepted. Check your transactions list for more details." msgid "Tip from %1$s accepted. Check your transactions list for more details."
msgstr "Propina de %1$s aceptada. Revisa tu lista de transacciones para mas detalle." msgstr ""
"Propina de %1$s aceptada. Revisa tu lista de transacciones para mas detalle."
#: src/cta/Tip.tsx:57 #: src/cta/Tip.tsx:57
#, c-format #, c-format
msgid "The merchant %1$s is offering you a tip of %2$s via the exchange %3$s" msgid "The merchant %1$s is offering you a tip of %2$s via the exchange %3$s"
msgstr "El comerciante %1$s está ofreciendo una propina de %2$s usando el exchange %3$s" msgstr ""
"El comerciante %1$s está ofreciendo una propina de %2$s usando el exchange "
"%3$s"
#: src/cta/Tip.tsx:67 #: src/cta/Tip.tsx:67
#, c-format #, c-format
@ -1227,6 +1268,11 @@ msgstr "No se pudo completar la operación de extracción"
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "Total a extraer" msgstr "Total a extraer"
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr "Exchange conocidos"
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1272,7 +1318,7 @@ msgstr "No se pudo obtener la información desde la URI"
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "No se pudo cargar la lista de exchange conocidos" msgstr "No se pudo cargar la lista de exchange conocidos"
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "Todo completo, su transacción está en progreso" msgstr "Todo completo, su transacción está en progreso"
@ -1317,14 +1363,16 @@ msgstr "Reinicio Manual Necesario"
msgid "" msgid ""
"The wallet&apos;s database in your browser is incompatible with the " "The wallet&apos;s database in your browser is incompatible with the "
"currently installed wallet. Please reset manually." "currently installed wallet. Please reset manually."
msgstr "La base de datos de billetera en tu navegador es incompatible con la " msgstr ""
"La base de datos de billetera en tu navegador es incompatible con la "
"billetera instalada actualmente. Por favor reinicie manualmente" "billetera instalada actualmente. Por favor reinicie manualmente"
#: src/cta/reset-required.tsx:63 #: src/cta/reset-required.tsx:63
#, c-format #, c-format
msgid "" msgid ""
"Once the database format has stabilized, we will provide automatic upgrades." "Once the database format has stabilized, we will provide automatic upgrades."
msgstr "Una vez que el formato de la base de datos esté estabilizzado, proveeremos " msgstr ""
"Una vez que el formato de la base de datos esté estabilizzado, proveeremos "
"de actualizaciones automáticas" "de actualizaciones automáticas"
#: src/cta/reset-required.tsx:77 #: src/cta/reset-required.tsx:77

View File

@ -110,7 +110,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "" msgstr ""
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -251,6 +251,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -598,7 +603,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -776,64 +781,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -1005,6 +1020,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1217,6 +1237,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1262,7 +1287,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -110,7 +110,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "" msgstr ""
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -251,6 +251,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -598,7 +603,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -776,64 +781,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -1005,6 +1020,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1217,6 +1237,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1262,7 +1287,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -112,7 +112,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "Depostitions avgift" msgstr "Depostitions avgift"
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -253,6 +253,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -600,7 +605,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -778,64 +783,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, fuzzy, c-format #, fuzzy, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "Accepterade tjänsteleverantörer:" msgstr "Accepterade tjänsteleverantörer:"
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -1007,6 +1022,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1219,6 +1239,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1264,7 +1289,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -99,7 +99,7 @@ msgstr ""
msgid "Deposit %1$s" msgid "Deposit %1$s"
msgstr "" msgstr ""
#: src/popup/BalancePage.tsx:118 #: src/popup/BalancePage.tsx:120
#, c-format #, c-format
msgid "Enter URI" msgid "Enter URI"
msgstr "" msgstr ""
@ -240,6 +240,11 @@ msgstr ""
msgid "This page has a notify reserve action." msgid "This page has a notify reserve action."
msgstr "" msgstr ""
#: src/popup/TalerActionFound.tsx:114
#, c-format
msgid "Notify"
msgstr ""
#: src/popup/TalerActionFound.tsx:121 #: src/popup/TalerActionFound.tsx:121
#, c-format #, c-format
msgid "This page has a refund action." msgid "This page has a refund action."
@ -587,7 +592,7 @@ msgstr ""
msgid "Backup valid until" msgid "Backup valid until"
msgstr "" msgstr ""
#: src/popupEntryPoint.tsx:184 #: src/popupEntryPoint.tsx:187
#, c-format #, c-format
msgid "this popup is being closed and you are being redirected to %1$s" msgid "this popup is being closed and you are being redirected to %1$s"
msgstr "" msgstr ""
@ -764,64 +769,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires more " "Enabling this option below will make using the wallet faster, but requires more "
"permissions from your browser." "permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -993,6 +1008,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -1205,6 +1225,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -1250,7 +1275,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -123,64 +123,74 @@ msgstr ""
msgid "Cancel withdrawal" msgid "Cancel withdrawal"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:84 #: src/wallet/Settings.tsx:89
#, c-format #, c-format
msgid "Permissions" msgid "Display"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:87 #: src/wallet/Settings.tsx:93
#, c-format
msgid "Current Language"
msgstr ""
#: src/wallet/Settings.tsx:102
#, c-format
msgid "Navigator"
msgstr ""
#: src/wallet/Settings.tsx:105
#, c-format #, c-format
msgid "Automatically open wallet based on page content" msgid "Automatically open wallet based on page content"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:93 #: src/wallet/Settings.tsx:111
#, c-format #, c-format
msgid "" msgid ""
"Enabling this option below will make using the wallet faster, but requires " "Enabling this option below will make using the wallet faster, but requires "
"more permissions from your browser." "more permissions from your browser."
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:104 #: src/wallet/Settings.tsx:122
#, c-format #, c-format
msgid "Known exchanges" msgid "Trust"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:108 #: src/wallet/Settings.tsx:126
#, c-format #, c-format
msgid "No exchange yet" msgid "No exchange yet"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:122 #: src/wallet/Settings.tsx:140
#, c-format #, c-format
msgid "Term of Service" msgid "Term of Service"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:138 #: src/wallet/Settings.tsx:156
#, c-format #, c-format
msgid "ok" msgid "ok"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:144 #: src/wallet/Settings.tsx:162
#, c-format #, c-format
msgid "changed" msgid "changed"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:151 #: src/wallet/Settings.tsx:169
#, c-format #, c-format
msgid "not accepted" msgid "not accepted"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:175 #: src/wallet/Settings.tsx:193
#, c-format #, c-format
msgid "Add an exchange" msgid "Add an exchange"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:181 #: src/wallet/Settings.tsx:199
#, c-format #, c-format
msgid "Developer mode" msgid "Developer mode"
msgstr "" msgstr ""
#: src/wallet/Settings.tsx:183 #: src/wallet/Settings.tsx:201
#, c-format #, c-format
msgid "(More options and information useful for debugging)" msgid "(More options and information useful for debugging)"
msgstr "" msgstr ""
@ -352,6 +362,11 @@ msgstr ""
msgid "Thank you for installing the wallet." msgid "Thank you for installing the wallet."
msgstr "" msgstr ""
#: src/wallet/Welcome.tsx:66
#, c-format
msgid "Permissions"
msgstr ""
#: src/wallet/Welcome.tsx:75 #: src/wallet/Welcome.tsx:75
#, c-format #, c-format
msgid "" msgid ""
@ -564,6 +579,11 @@ msgstr ""
msgid "Total to withdraw" msgid "Total to withdraw"
msgstr "" msgstr ""
#: src/cta/Withdraw.tsx:171
#, c-format
msgid "Known exchanges"
msgstr ""
#: src/cta/Withdraw.tsx:187 #: src/cta/Withdraw.tsx:187
#, c-format #, c-format
msgid "Cancel exchange selection" msgid "Cancel exchange selection"
@ -609,7 +629,7 @@ msgstr ""
msgid "Could not load the list of known exchanges" msgid "Could not load the list of known exchanges"
msgstr "" msgstr ""
#: src/walletEntryPoint.tsx:171 #: src/walletEntryPoint.tsx:172
#, c-format #, c-format
msgid "All done, your transaction is in progress" msgid "All done, your transaction is in progress"
msgstr "" msgstr ""

View File

@ -108,7 +108,9 @@ export function BalanceView({
</ButtonPrimary> </ButtonPrimary>
{currencyWithNonZeroAmount.length > 0 && ( {currencyWithNonZeroAmount.length > 0 && (
<MultiActionButton <MultiActionButton
label={(s) => <i18n.Translate>Deposit {s}</i18n.Translate>} label={(s) => (
<i18n.Translate debug>Deposit {<span>{s}</span>}</i18n.Translate>
)}
actions={currencyWithNonZeroAmount} actions={currencyWithNonZeroAmount}
onClick={(c) => goToWalletDeposit(c)} onClick={(c) => goToWalletDeposit(c)}
/> />

View File

@ -111,7 +111,7 @@ export function TalerActionFound({ url, onDismiss }: Props) {
navigateTo(actionForTalerUri(uriType, url)); navigateTo(actionForTalerUri(uriType, url));
}} }}
> >
Notify <i18n.Translate>Notify</i18n.Translate>
</ButtonSuccess> </ButtonSuccess>
</div> </div>
)} )}

View File

@ -29,6 +29,7 @@ import { useEffect } from "preact/hooks";
import { PopupBox } from "./components/styled"; import { PopupBox } from "./components/styled";
import { DevContextProvider } from "./context/devContext"; import { DevContextProvider } from "./context/devContext";
import { IoCProviderForRuntime } from "./context/iocContext"; import { IoCProviderForRuntime } from "./context/iocContext";
import { TranslationProvider } from "./context/translation";
import { useTalerActionURL } from "./hooks/useTalerActionURL"; import { useTalerActionURL } from "./hooks/useTalerActionURL";
import { strings } from "./i18n/strings"; import { strings } from "./i18n/strings";
import { Pages, PopupNavBar } from "./NavigationBar"; import { Pages, PopupNavBar } from "./NavigationBar";
@ -77,7 +78,7 @@ function CheckTalerActionComponent(): VNode {
function Application(): VNode { function Application(): VNode {
const hash_history = createHashHistory(); const hash_history = createHashHistory();
return ( return (
// <div> <TranslationProvider>
<DevContextProvider> <DevContextProvider>
{({ devMode }: { devMode: boolean }) => ( {({ devMode }: { devMode: boolean }) => (
<IoCProviderForRuntime> <IoCProviderForRuntime>
@ -91,7 +92,9 @@ function Application(): VNode {
path={Pages.balance} path={Pages.balance}
component={BalancePage} component={BalancePage}
goToWalletManualWithdraw={() => goToWalletManualWithdraw={() =>
route(Pages.balance_manual_withdraw.replace(":currency?", "")) route(
Pages.balance_manual_withdraw.replace(":currency?", ""),
)
} }
goToWalletDeposit={(currency: string) => goToWalletDeposit={(currency: string) =>
route(Pages.balance_deposit.replace(":currency", currency)) route(Pages.balance_deposit.replace(":currency", currency))
@ -162,7 +165,7 @@ function Application(): VNode {
</IoCProviderForRuntime> </IoCProviderForRuntime>
)} )}
</DevContextProvider> </DevContextProvider>
// </div> </TranslationProvider>
); );
} }

View File

@ -17,13 +17,16 @@
import { ExchangeListItem, i18n, Translate } from "@gnu-taler/taler-util"; import { ExchangeListItem, i18n, Translate } from "@gnu-taler/taler-util";
import { Fragment, h, VNode } from "preact"; import { Fragment, h, VNode } from "preact";
import { Checkbox } from "../components/Checkbox"; import { Checkbox } from "../components/Checkbox";
import { SelectList } from "../components/SelectList";
import { import {
DestructiveText, DestructiveText,
Input,
LinkPrimary, LinkPrimary,
SuccessText, SuccessText,
WarningText, WarningText,
} from "../components/styled"; } from "../components/styled";
import { useDevContext } from "../context/devContext"; import { useDevContext } from "../context/devContext";
import { useTranslationContext } from "../context/translation";
import { useAsyncAsHook } from "../hooks/useAsyncAsHook"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook";
import { useBackupDeviceName } from "../hooks/useBackupDeviceName"; import { useBackupDeviceName } from "../hooks/useBackupDeviceName";
import { useExtendedPermissions } from "../hooks/useExtendedPermissions"; import { useExtendedPermissions } from "../hooks/useExtendedPermissions";
@ -36,13 +39,13 @@ export function SettingsPage(): VNode {
const [permissionsEnabled, togglePermissions] = useExtendedPermissions(); const [permissionsEnabled, togglePermissions] = useExtendedPermissions();
const { devMode, toggleDevMode } = useDevContext(); const { devMode, toggleDevMode } = useDevContext();
const { name, update } = useBackupDeviceName(); const { name, update } = useBackupDeviceName();
const [lang, changeLang] = useLang(); // const [lang, changeLang] = useLang();
const exchangesHook = useAsyncAsHook(wxApi.listExchanges); const exchangesHook = useAsyncAsHook(wxApi.listExchanges);
return ( return (
<SettingsView <SettingsView
lang={lang} // lang={lang}
changeLang={changeLang} // changeLang={changeLang}
knownExchanges={ knownExchanges={
!exchangesHook || exchangesHook.hasError !exchangesHook || exchangesHook.hasError
? [] ? []
@ -59,8 +62,8 @@ export function SettingsPage(): VNode {
} }
export interface ViewProps { export interface ViewProps {
lang: string; // lang: string;
changeLang: (s: string) => void; // changeLang: (s: string) => void;
deviceName: string; deviceName: string;
setDeviceName: (s: string) => Promise<void>; setDeviceName: (s: string) => Promise<void>;
permissionsEnabled: boolean; permissionsEnabled: boolean;
@ -77,11 +80,26 @@ export function SettingsView({
developerMode, developerMode,
toggleDeveloperMode, toggleDeveloperMode,
}: ViewProps): VNode { }: ViewProps): VNode {
const { lang, supportedLang, changeLanguage } = useTranslationContext();
return ( return (
<Fragment> <Fragment>
<section> <section>
<h2> <h2>
<i18n.Translate>Permissions</i18n.Translate> <i18n.Translate>Display</i18n.Translate>
</h2>
<Input>
<SelectList
label={<i18n.Translate>Current Language</i18n.Translate>}
list={supportedLang}
name="lang"
value={lang}
onChange={(v) => changeLanguage(v)}
/>
</Input>
<h2>
<i18n.Translate>Navigator</i18n.Translate>
</h2> </h2>
<Checkbox <Checkbox
label={ label={
@ -101,7 +119,7 @@ export function SettingsView({
/> />
<h2> <h2>
<i18n.Translate>Known exchanges</i18n.Translate> <i18n.Translate>Trust</i18n.Translate>
</h2> </h2>
{!knownExchanges || !knownExchanges.length ? ( {!knownExchanges || !knownExchanges.length ? (
<div> <div>
@ -176,7 +194,7 @@ export function SettingsView({
</LinkPrimary> </LinkPrimary>
</div> </div>
<h2>Config</h2> <h2>Troubleshooting</h2>
<Checkbox <Checkbox
label={<i18n.Translate>Developer mode</i18n.Translate>} label={<i18n.Translate>Developer mode</i18n.Translate>}
name="devMode" name="devMode"

View File

@ -35,6 +35,7 @@ import {
} from "./components/styled"; } from "./components/styled";
import { DevContextProvider } from "./context/devContext"; import { DevContextProvider } from "./context/devContext";
import { IoCProviderForRuntime } from "./context/iocContext"; import { IoCProviderForRuntime } from "./context/iocContext";
import { TranslationProvider } from "./context/translation";
import { PayPage } from "./cta/Pay"; import { PayPage } from "./cta/Pay";
import { RefundPage } from "./cta/Refund"; import { RefundPage } from "./cta/Refund";
import { TipPage } from "./cta/Tip"; import { TipPage } from "./cta/Tip";
@ -93,7 +94,7 @@ function Application(): VNode {
} }
} }
return ( return (
<div> <TranslationProvider>
<DevContextProvider> <DevContextProvider>
{({ devMode }: { devMode: boolean }) => ( {({ devMode }: { devMode: boolean }) => (
<IoCProviderForRuntime> <IoCProviderForRuntime>
@ -262,7 +263,7 @@ function Application(): VNode {
</IoCProviderForRuntime> </IoCProviderForRuntime>
)} )}
</DevContextProvider> </DevContextProvider>
</div> </TranslationProvider>
); );
} }