From 3573496e9e46b65d0dba3fc4a4d74094384b4250 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Fri, 3 May 2019 23:58:23 +0100 Subject: [PATCH] REF: added localization strings --- loc/cs_CZ.js | 9 +++++++++ loc/da_DK.js | 9 +++++++++ loc/de_DE.js | 9 +++++++++ loc/el.js | 9 +++++++++ loc/en.js | 9 +++++++++ loc/es.js | 9 +++++++++ loc/fi_FI.js | 9 +++++++++ loc/fr_FR.js | 9 +++++++++ loc/hr_HR.js | 9 +++++++++ loc/id_ID.js | 9 +++++++++ loc/it.js | 9 +++++++++ loc/jp_JP.js | 9 +++++++++ loc/nb_NO.js | 9 +++++++++ loc/nl_NL.js | 9 +++++++++ loc/pt_BR.js | 9 +++++++++ loc/pt_PT.js | 9 +++++++++ loc/ru.js | 9 +++++++++ loc/sv_SE.js | 9 +++++++++ loc/th_TH.js | 9 +++++++++ loc/tr_TR.js | 9 +++++++++ loc/ua.js | 9 +++++++++ loc/zh_cn.js | 9 +++++++++ .../lnd/lndViewAdditionalInvoiceInformation.js | 2 +- screen/lnd/lndViewInvoice.js | 18 ++++++++++++------ 24 files changed, 211 insertions(+), 7 deletions(-) diff --git a/loc/cs_CZ.js b/loc/cs_CZ.js index 104cd3d86..9f3383d18 100644 --- a/loc/cs_CZ.js +++ b/loc/cs_CZ.js @@ -226,4 +226,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/da_DK.js b/loc/da_DK.js index 726c467f1..e9f6c168e 100644 --- a/loc/da_DK.js +++ b/loc/da_DK.js @@ -225,4 +225,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/de_DE.js b/loc/de_DE.js index 9ba8c0c94..ef6b514d8 100644 --- a/loc/de_DE.js +++ b/loc/de_DE.js @@ -230,4 +230,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/el.js b/loc/el.js index e8bb9b18a..955841c2e 100644 --- a/loc/el.js +++ b/loc/el.js @@ -229,4 +229,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/en.js b/loc/en.js index 8feef5329..a801d6243 100644 --- a/loc/en.js +++ b/loc/en.js @@ -227,4 +227,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/es.js b/loc/es.js index 89ba0936b..2737a584a 100644 --- a/loc/es.js +++ b/loc/es.js @@ -230,4 +230,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/fi_FI.js b/loc/fi_FI.js index 4ff86975c..3d1ee8f8a 100644 --- a/loc/fi_FI.js +++ b/loc/fi_FI.js @@ -229,4 +229,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/fr_FR.js b/loc/fr_FR.js index 8fc249393..af7fb897f 100644 --- a/loc/fr_FR.js +++ b/loc/fr_FR.js @@ -229,4 +229,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/hr_HR.js b/loc/hr_HR.js index 4c58cbe39..9aa7c2a82 100644 --- a/loc/hr_HR.js +++ b/loc/hr_HR.js @@ -224,4 +224,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/id_ID.js b/loc/id_ID.js index 09a8609a0..372975def 100644 --- a/loc/id_ID.js +++ b/loc/id_ID.js @@ -226,4 +226,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/it.js b/loc/it.js index 6db1d6832..773200962 100644 --- a/loc/it.js +++ b/loc/it.js @@ -229,4 +229,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/jp_JP.js b/loc/jp_JP.js index e9bdb5437..834fc3b25 100644 --- a/loc/jp_JP.js +++ b/loc/jp_JP.js @@ -228,4 +228,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/nb_NO.js b/loc/nb_NO.js index 2f6250f0d..bc10d0e7c 100644 --- a/loc/nb_NO.js +++ b/loc/nb_NO.js @@ -227,4 +227,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/nl_NL.js b/loc/nl_NL.js index 00fc274d3..77f3d14d6 100644 --- a/loc/nl_NL.js +++ b/loc/nl_NL.js @@ -230,4 +230,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/pt_BR.js b/loc/pt_BR.js index ba0970bf1..ff70b8e90 100644 --- a/loc/pt_BR.js +++ b/loc/pt_BR.js @@ -231,4 +231,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/pt_PT.js b/loc/pt_PT.js index 2b200a2fe..80544c4f5 100644 --- a/loc/pt_PT.js +++ b/loc/pt_PT.js @@ -230,4 +230,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/ru.js b/loc/ru.js index 7f06e3461..a268118f8 100644 --- a/loc/ru.js +++ b/loc/ru.js @@ -231,4 +231,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/sv_SE.js b/loc/sv_SE.js index b41f0ba2c..d1f1205e4 100644 --- a/loc/sv_SE.js +++ b/loc/sv_SE.js @@ -227,4 +227,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/th_TH.js b/loc/th_TH.js index 9babf4b9d..92af7eeee 100644 --- a/loc/th_TH.js +++ b/loc/th_TH.js @@ -227,4 +227,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/tr_TR.js b/loc/tr_TR.js index 627d8c5b9..6de6676b5 100644 --- a/loc/tr_TR.js +++ b/loc/tr_TR.js @@ -227,4 +227,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/ua.js b/loc/ua.js index a8f63a713..56b8a55e9 100644 --- a/loc/ua.js +++ b/loc/ua.js @@ -231,4 +231,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/loc/zh_cn.js b/loc/zh_cn.js index 14746087e..ce9b8b62a 100755 --- a/loc/zh_cn.js +++ b/loc/zh_cn.js @@ -221,4 +221,13 @@ module.exports = { "Please take a moment to write down this mnemonic phrase on a piece of paper. It's your backup you can use to restore the wallet on other device. You can use Electrum wallet on desktop (https://electrum.org/) to restore the same wallet.", ok: 'OK, I wrote this down!', }, + lndViewInvoice: { + wasnt_paid_and_expired: 'This invoice was not paid for and has expired', + has_been_paid: 'This invoice has been paid for', + please_pay: 'Please pay', + sats: 'sats', + for: 'For:', + additional_info: 'Additional Information', + open_direct_channel: 'Open direct channel with this node:', + }, }; diff --git a/screen/lnd/lndViewAdditionalInvoiceInformation.js b/screen/lnd/lndViewAdditionalInvoiceInformation.js index 5ab167e35..2a6580e96 100644 --- a/screen/lnd/lndViewAdditionalInvoiceInformation.js +++ b/screen/lnd/lndViewAdditionalInvoiceInformation.js @@ -57,7 +57,7 @@ export default class LNDViewAdditionalInvoiceInformation extends Component { logoBackgroundColor={BlueApp.settings.brandingColor} /> - Open direct channel with this node: + {loc.lndViewInvoice.open_direct_channel} diff --git a/screen/lnd/lndViewInvoice.js b/screen/lnd/lndViewInvoice.js index eaff9b9c2..638723133 100644 --- a/screen/lnd/lndViewInvoice.js +++ b/screen/lnd/lndViewInvoice.js @@ -155,7 +155,7 @@ export default class LNDViewInvoice extends Component { > - This invoice has been paid for + {loc.lndViewInvoice.has_been_paid} {invoice.payment_preimage && typeof invoice.payment_preimage === 'string' && ( - This invoice was not paid for and has expired + {loc.lndViewInvoice.wasnt_paid_and_expired} ); @@ -201,7 +201,7 @@ export default class LNDViewInvoice extends Component { return ( - 'This invoice has been paid for.' + {loc.lndViewInvoice.has_been_paid} ); @@ -233,9 +233,15 @@ export default class LNDViewInvoice extends Component { - {invoice && invoice.amt && Please pay {invoice.amt} sats} + {invoice && invoice.amt && ( + + {loc.lndViewInvoice.please_pay} {invoice.amt} {loc.lndViewInvoice.sats} + + )} {invoice && invoice.hasOwnProperty('description') && invoice.description.length > 0 && ( - For: {invoice.description} + + {loc.lndViewInvoice.for} {invoice.description} + )} @@ -261,7 +267,7 @@ export default class LNDViewInvoice extends Component { color: BlueApp.settings.buttonTextColor, }} onPress={() => this.props.navigation.navigate('LNDViewAdditionalInvoiceInformation', { fromWallet: this.state.fromWallet })} - title="Additional Information" + title={loc.lndViewInvoice.additional_info} />