i18n: Added "miner identification" and updated "navigate to sponsor"

This commit is contained in:
softsimon 2020-12-04 23:07:53 +07:00
parent 6acacc7792
commit 336e45a7b1
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 20 additions and 14 deletions

View File

@ -62,7 +62,7 @@
<button type="button" class="btn btn-primary" (click)="donationStatus = 2" [hidden]="donationStatus !== 1" i18n="about.become-a-sponsor">Become a sponsor ❤️</button>
<p *ngIf="donationStatus === 2 && !sponsorsEnabled">
<span i18n="about.navigate-to">Navigate to</span> <a href="https://mempool.space/about" target="_blank">https://mempool.space/about</a> <span i18n="about.to-sponsor">to sponsor</span>
<ng-container i18n="about.navigate-to-sponsor">Navigate to <a href="https://mempool.space/about" target="_blank">https://mempool.space/about</a> to sponsor</ng-container>
</p>
<div style="max-width: 300px;" class="mx-auto" [hidden]="donationStatus !== 2 || !sponsorsEnabled">

View File

@ -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;
}

View File

@ -1128,21 +1128,13 @@
<note priority="1" from="description">Terms of Service</note>
<note priority="1" from="meaning">shared.terms-of-service</note>
</trans-unit>
<trans-unit id="bb4671d1c6b230ec821cf7f9c72210f32e8a6e7b" datatype="html">
<source>Navigate to</source>
<trans-unit id="90a59434bf67130fb2531e0610f10d28af0fcc87" datatype="html">
<source>Navigate to <x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;https://mempool.space/about&quot; target=&quot;_blank&quot;&gt;"/>https://mempool.space/about<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt; "/> to sponsor</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/about/about.component.html</context>
<context context-type="linenumber">65</context>
</context-group>
<note priority="1" from="description">about.navigate-to</note>
</trans-unit>
<trans-unit id="4e6c8a60b2cd0e40c8d266c6333d873d2f2db77e" datatype="html">
<source>to sponsor</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/about/about.component.html</context>
<context context-type="linenumber">65</context>
</context-group>
<note priority="1" from="description">about.to-sponsor</note>
<note priority="1" from="description">about.navigate-to-sponsor</note>
</trans-unit>
<trans-unit id="39120551bb7b48cc1a7b94a6cb58aef166eee801" datatype="html">
<source>Amount required</source>
@ -1514,6 +1506,20 @@
</context-group>
<note priority="1" from="description">Asset data load error</note>
</trans-unit>
<trans-unit id="miner-identified-by-payout" datatype="html">
<source>Identified by payout address: &apos;<x id="PAYOUT_ADDRESS" equiv-text="vout.scriptpubkey_address"/>&apos;</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/miner/miner.component.ts</context>
<context context-type="linenumber">42</context>
</context-group>
</trans-unit>
<trans-unit id="miner-identified-by-coinbase" datatype="html">
<source>Identified by coinbase tag: &apos;<x id="TAG" equiv-text="tag"/>&apos;</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/miner/miner.component.ts</context>
<context context-type="linenumber">52</context>
</context-group>
</trans-unit>
<trans-unit id="e5d8bb389c702588877f039d72178f219453a72d" datatype="html">
<source>Unknown</source>
<context-group purpose="location">