Languages and copy support for New Address button

This commit is contained in:
QuickMythril 2023-02-11 18:20:10 -05:00
parent 73b5c67504
commit 310291a074
18 changed files with 110 additions and 28 deletions

View File

@ -283,7 +283,8 @@
"wchange54": "Adressbuch exportieren",
"wchange55": "Ihr bestehendes Adressbuch wird gelöscht und aus einem Backup neu erstellt.",
"wchange56": "WARNUNG!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "Neue Adresse"
},
"tradepage": {
"tchange1": "Handelsportal",

View File

@ -283,7 +283,8 @@
"wchange54": "Exportar libreta de direcciones",
"wchange55": "Su libreta de direcciones existente se eliminará y se creará una nueva copia de seguridad.",
"wchange56": "ADVERTENCIA!",
"wchange57": "Memorándum"
"wchange57": "Memorándum",
"wchange58": "Nueva Dirección"
},
"tradepage": {
"tchange1": "Portal de Comercio",

View File

@ -283,7 +283,8 @@
"wchange54": "Exporter le carnet d'adresses",
"wchange55": "Votre carnet d'adresses existant sera supprimé et une nouvelle sauvegarde sera créée.",
"wchange56": "ATTENTION!",
"wchange57": "Mémo"
"wchange57": "Mémo",
"wchange58": "Nouvelle Adresse"
},
"tradepage": {
"tchange1": "Portail de commerce",

View File

@ -284,7 +284,8 @@
"wchange54": "निर्यात पता पुस्तिका",
"wchange55": "आपकी मौजूदा पता पुस्तिका हटा दी जाएगी और बैकअप से नया बनाया जाएगा।",
"wchange56": "चेतावनी!",
"wchange57": "ज्ञापन"
"wchange57": "ज्ञापन",
"wchange58": "नया पता"
},
"tradepage": {
"tchange1": "व्यापार पोर्टल",

View File

@ -283,7 +283,8 @@
"wchange54": "Izvezi adresar",
"wchange55": "Vaš postojeći adresar bit će izbrisan i novi će se stvoriti iz sigurnosne kopije.",
"wchange56": "UPOZORENJE!",
"wchange57": "Dopis"
"wchange57": "Dopis",
"wchange58": "Nova Adresa"
},
"tradepage": {
"tchange1": "Portal razmjene",

View File

@ -283,7 +283,8 @@
"wchange54": "Címjegyzék exportálása",
"wchange55": "Meglévő címjegyzéke törlésre kerül, és a biztonsági másolatból új jön létre.",
"wchange56": "FIGYELEM!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "Új Cím"
},
"tradepage": {
"tchange1": "Kereskedelmi Portál",

View File

@ -283,7 +283,8 @@
"wchange54": "Esporta rubrica",
"wchange55": "La tua rubrica esistente verrà eliminata e dal backup verrà creata una nuova.",
"wchange56": "AVVERTIMENTO!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "Nuovo Indirizzo"
},
"tradepage": {
"tchange1": "Portale commerciale",

View File

@ -283,7 +283,8 @@
"wchange54": "주소록 내보내기",
"wchange55": "기존 주소록이 삭제되고 백업에서 새로 생성됩니다.",
"wchange56": "경고!",
"wchange57": "메모"
"wchange57": "메모",
"wchange58": "새 주소"
},
"tradepage": {
"tchange1": "무역 포털",

View File

@ -283,7 +283,8 @@
"wchange54": "Eksporter adressebok",
"wchange55": "Din eksisterende adressebok vil bli slettet og ny opprettet fra sikkerhetskopi.",
"wchange56": "ADVARSEL!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "Ny Adresse"
},
"tradepage": {
"tchange1": "Handelsportal",

View File

@ -283,7 +283,8 @@
"wchange54": "Eksportuj książkę adresową",
"wchange55": "Twoja istniejąca książka adresowa zostanie usunięta, az kopii zapasowej utworzona nowa.",
"wchange56": "OSTRZEŻENIE!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "Nowy Adres"
},
"tradepage": {
"tchange1": "Portal Handlowy",

View File

@ -283,7 +283,8 @@
"wchange54": "Exportar catálogo de endereços",
"wchange55": "Seu catálogo de endereços existente será excluído e o backup será criado novamente.",
"wchange56": "AVISO!",
"wchange57": "Memorando"
"wchange57": "Memorando",
"wchange58": "Novo Endereço"
},
"tradepage": {
"tchange1": "Portal do Comércio",

View File

@ -283,7 +283,8 @@
"wchange54": "Exportati agenda de adrese",
"wchange55": "Agenda dvs. existenta va fi stearsa si din backup va fi creata o noua.",
"wchange56": "AVERTIZARE!",
"wchange57": "Nota"
"wchange57": "Nota",
"wchange58": "Adresa noua"
},
"tradepage": {
"tchange1": "Portal de Tranzactionare",

View File

@ -283,7 +283,8 @@
"wchange54": "Izvezi adresar",
"wchange55": "Vaš postojeći adresar će biti obrisan, a iz rezervne kopije biće kreiran novi.",
"wchange56": "UPOZORENJE!",
"wchange57": "Beleška"
"wchange57": "Beleška",
"wchange58": "Nova Adresa"
},
"tradepage": {
"tchange1": "Trgovinski prozor",

View File

@ -283,7 +283,8 @@
"wchange54": "Экспорт адресной книги",
"wchange55": "Ваша существующая адресная книга будет удалена, а из резервной копии создана новая.",
"wchange56": "ПРЕДУПРЕЖДЕНИЕ!",
"wchange57": "Памятка"
"wchange57": "Памятка",
"wchange58": "Новый Адрес"
},
"tradepage": {
"tchange1": "Торговый портал",

View File

@ -283,7 +283,8 @@
"wchange54": "Export Address Book",
"wchange55": "Your existing address book will be deleted and from backup new created.",
"wchange56": "WARNING!",
"wchange57": "Memo"
"wchange57": "Memo",
"wchange58": "New Address"
},
"tradepage": {
"tchange1": "Trade Portal",

View File

@ -283,7 +283,8 @@
"wchange54": "导出通讯录",
"wchange55": "您现有的通讯簿将被删除并从新创建的备份中。",
"wchange56": "警告!",
"wchange57": "备忘录"
"wchange57": "备忘录",
"wchange58": "新的钱包地址"
},
"tradepage": {
"tchange1": "交易门户",

View File

@ -283,7 +283,8 @@
"wchange54": "導出通訊錄",
"wchange55": "您現有的通訊簿將被刪除並從新創建的備份中。",
"wchange56": "警告!",
"wchange57": "備忘錄"
"wchange57": "備忘錄",
"wchange58": "新的錢包地址"
},
"tradepage": {
"tchange1": "交易門戶",

View File

@ -507,8 +507,8 @@ class MultiWallet extends LitElement {
}
.unused-address-dialog {
min-height: 300px;
min-width: 300px;
min-height: 150px;
min-width: 550px;
box-sizing: border-box;
position: relative;
}
@ -572,7 +572,7 @@ class MultiWallet extends LitElement {
.unused-pos {
margin-top: -44px;
margin-left: 410px;
width: 250px;
width: 185px;
}
@media (max-width: 863px) {
@ -1990,11 +1990,24 @@ class MultiWallet extends LitElement {
<div class="unused-address-dialog">
<div style="text-align: center;">
<img src="/img/btc.png" width="32" height="32">
<h2>Unused BTC Address</h2>
<h2>BTC</h2>
<hr />
</div>
<p>
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
<button-icon-copy
title="${translate("walletpage.wchange3")}"
onSuccessMessage="${translate("walletpage.wchange4")}"
onErrorMessage="${translate("walletpage.wchange39")}"
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
buttonSize="24px"
iconSize="16px"
color="var(--copybutton)"
offsetLeft="4px"
>
</button-icon-copy>
<br />
<span>${translate("walletpage.wchange38")}</span>
</p>
</div>
<mwc-button
@ -2010,11 +2023,24 @@ class MultiWallet extends LitElement {
<div class="unused-address-dialog">
<div style="text-align: center;">
<img src="/img/ltc.png" width="32" height="32">
<h2>Unused LTC Address</h2>
<h2>LTC</h2>
<hr />
</div>
<p>
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
<button-icon-copy
title="${translate("walletpage.wchange3")}"
onSuccessMessage="${translate("walletpage.wchange4")}"
onErrorMessage="${translate("walletpage.wchange39")}"
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
buttonSize="24px"
iconSize="16px"
color="var(--copybutton)"
offsetLeft="4px"
>
</button-icon-copy>
<br />
<span>${translate("walletpage.wchange38")}</span>
</p>
</div>
<mwc-button
@ -2030,11 +2056,24 @@ class MultiWallet extends LitElement {
<div class="unused-address-dialog">
<div style="text-align: center;">
<img src="/img/doge.png" width="32" height="32">
<h2>Unused DOGE Address</h2>
<h2>DOGE</h2>
<hr />
</div>
<p>
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
<button-icon-copy
title="${translate("walletpage.wchange3")}"
onSuccessMessage="${translate("walletpage.wchange4")}"
onErrorMessage="${translate("walletpage.wchange39")}"
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
buttonSize="24px"
iconSize="16px"
color="var(--copybutton)"
offsetLeft="4px"
>
</button-icon-copy>
<br />
<span>${translate("walletpage.wchange38")}</span>
</p>
</div>
<mwc-button
@ -2050,11 +2089,24 @@ class MultiWallet extends LitElement {
<div class="unused-address-dialog">
<div style="text-align: center;">
<img src="/img/dgb.png" width="32" height="32">
<h2>Unused DGB Address</h2>
<h2>DGB</h2>
<hr />
</div>
<p>
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
<button-icon-copy
title="${translate("walletpage.wchange3")}"
onSuccessMessage="${translate("walletpage.wchange4")}"
onErrorMessage="${translate("walletpage.wchange39")}"
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
buttonSize="24px"
iconSize="16px"
color="var(--copybutton)"
offsetLeft="4px"
>
</button-icon-copy>
<br />
<span>${translate("walletpage.wchange38")}</span>
</p>
</div>
<mwc-button
@ -2070,11 +2122,24 @@ class MultiWallet extends LitElement {
<div class="unused-address-dialog">
<div style="text-align: center;">
<img src="/img/rvn.png" width="32" height="32">
<h2>Unused RVN Address</h2>
<h2>RVN</h2>
<hr />
</div>
<p>
<span style="font-weight: bold;">${this.wallets.get(this._selectedWallet).unusedWalletAddress}</span>
<button-icon-copy
title="${translate("walletpage.wchange3")}"
onSuccessMessage="${translate("walletpage.wchange4")}"
onErrorMessage="${translate("walletpage.wchange39")}"
textToCopy=${this.wallets.get(this._selectedWallet).unusedWalletAddress}
buttonSize="24px"
iconSize="16px"
color="var(--copybutton)"
offsetLeft="4px"
>
</button-icon-copy>
<br />
<span>${translate("walletpage.wchange38")}</span>
</p>
</div>
<mwc-button
@ -4757,7 +4822,7 @@ class MultiWallet extends LitElement {
}
async getUnusedAddress(coin) {
this.wallets.get(this._selectedWallet).unusedWalletAddress = 'Loading...'
this.wallets.get(this._selectedWallet).unusedWalletAddress = ''
let _url = ``
let _body = null
@ -4864,13 +4929,13 @@ class MultiWallet extends LitElement {
switch (this._selectedWallet) {
case "qort":
case "arrr":
return html`<vaadin-button disabled theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon>Get Unused Address</vaadin-button>`
return html`<vaadin-button disabled theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange58")}</vaadin-button>`
case "btc":
case "ltc":
case "doge":
case "dgb":
case "rvn":
return html`<vaadin-button theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon>Get Unused Address</vaadin-button>`
return html`<vaadin-button theme="primary medium" style="width: 100%;" @click=${() => this.getUnusedAddress(this._selectedWallet)}><vaadin-icon icon="vaadin:magic" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange58")}</vaadin-button>`
default:
return html``
}