Localize electrum limit error.

fixes #442
This commit is contained in:
softsimon 2021-04-27 14:21:33 +04:00
parent 0d03a9e6cc
commit dcedc8a5ff
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 17 additions and 6 deletions

View File

@ -114,10 +114,13 @@
<div class="text-center">
<span i18n="address.error.loading-address-data">Error loading address data.</span>
<br>
<i>{{ error.error }}</i>
<ng-template [ngIf]="error.status === 413 || error.status === 405">
<br><br>
Consider viewing this address on the official Mempool website instead:
<ng-template #displayServerError><i>{{ error.error }}</i></ng-template>
<ng-template [ngIf]="error.status === 413 || error.status === 405" [ngIfElse]="displayServerError">
<ng-container i18n="Electrum server limit exceeded error">
<i>The number of transactions on this address exceeds the Electrum server limit</i>
<br><br>
Consider viewing this address on the official Mempool website instead:
</ng-container>
<br>
<a href="https://mempool.space/address/{{ addressString }}" target="_blank">https://mempool.space/address/{{ addressString }}</a>
<br>

View File

@ -1023,7 +1023,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/transaction/transaction.component.ts</context>
<context context-type="linenumber">51</context>
<context context-type="linenumber">53</context>
</context-group>
</trans-unit>
<trans-unit id="4d6066e445db90780e4b30ca93398be0b6567eda" datatype="html">
@ -1385,11 +1385,19 @@
</context-group>
<note priority="1" from="description">address.error.loading-address-data</note>
</trans-unit>
<trans-unit id="cedcc9d48ffb2714e7b2f012ab67bd21f8e96a18" datatype="html">
<source><x id="START_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;i&gt;"/>The number of transactions on this address exceeds the Electrum server limit<x id="CLOSE_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;/i&gt;"/><x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br&gt;"/><x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br&gt;"/> Consider viewing this address on the official Mempool website instead: </source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/address/address.component.html</context>
<context context-type="linenumber">120,123</context>
</context-group>
<note priority="1" from="description">Electrum server limit exceeded error</note>
</trans-unit>
<trans-unit id="30751732ff4b8f6ddb2a906e0173072ac29d412a" datatype="html">
<source>Confidential</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/address/address.component.html</context>
<context context-type="linenumber">134,136</context>
<context context-type="linenumber">137,139</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/amount/amount.component.html</context>