From 336e45a7b1acbac700afbeab9a691349d829433b Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 4 Dec 2020 23:07:53 +0700 Subject: [PATCH] i18n: Added "miner identification" and updated "navigate to sponsor" --- .../app/components/about/about.component.html | 2 +- .../app/components/miner/miner.component.ts | 4 +-- frontend/src/locale/messages.xlf | 28 +++++++++++-------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html index 031dc9949..7af5e9c9f 100644 --- a/frontend/src/app/components/about/about.component.html +++ b/frontend/src/app/components/about/about.component.html @@ -62,7 +62,7 @@

- Navigate to https://mempool.space/about to sponsor + Navigate to https://mempool.space/about to sponsor

diff --git a/frontend/src/app/components/miner/miner.component.ts b/frontend/src/app/components/miner/miner.component.ts index a17dd37f6..c022526fb 100644 --- a/frontend/src/app/components/miner/miner.component.ts +++ b/frontend/src/app/components/miner/miner.component.ts @@ -39,7 +39,7 @@ export class MinerComponent implements OnChanges { if (pools.payout_addresses[vout.scriptpubkey_address]) { this.miner = pools.payout_addresses[vout.scriptpubkey_address].name; - this.title = 'Identified by payout address: ' + vout.scriptpubkey_address; + this.title = $localize`:@@miner-identified-by-payout:Identified by payout address: '${vout.scriptpubkey_address}:PAYOUT_ADDRESS:'`; this.url = pools.payout_addresses[vout.scriptpubkey_address].link; break; } @@ -49,7 +49,7 @@ export class MinerComponent implements OnChanges { const coinbaseAscii = this.hex2ascii(this.coinbaseTransaction.vin[0].scriptsig); if (coinbaseAscii.indexOf(tag) > -1) { this.miner = pools.coinbase_tags[tag].name; - this.title = 'Identified by coinbase tag: \'' + tag + '\''; + this.title = $localize`:@@miner-identified-by-coinbase:Identified by coinbase tag: '${tag}:TAG:'`; this.url = pools.coinbase_tags[tag].link; break; } diff --git a/frontend/src/locale/messages.xlf b/frontend/src/locale/messages.xlf index d4657a6ec..1952899fc 100644 --- a/frontend/src/locale/messages.xlf +++ b/frontend/src/locale/messages.xlf @@ -1128,21 +1128,13 @@ Terms of Service shared.terms-of-service - - Navigate to + + Navigate to https://mempool.space/about to sponsor src/app/components/about/about.component.html 65 - about.navigate-to - - - to sponsor - - src/app/components/about/about.component.html - 65 - - about.to-sponsor + about.navigate-to-sponsor Amount required @@ -1514,6 +1506,20 @@ Asset data load error + + Identified by payout address: '' + + src/app/components/miner/miner.component.ts + 42 + + + + Identified by coinbase tag: '' + + src/app/components/miner/miner.component.ts + 52 + + Unknown