4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-14 11:15:50 +00:00

Translate Name Transaction

This commit is contained in:
AlphaX-Projects 2022-04-21 16:51:43 +02:00
parent a67fdf942e
commit d494827d71
14 changed files with 50 additions and 14 deletions

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Menge", "amount": "Menge",
"to": "Zu", "to": "Zu",
"declined": "Der Benutzer hat die Transaktion abgelehnt!" "declined": "Der Benutzer hat die Transaktion abgelehnt!",
"namedialog1": "Sie registrieren den folgenden Namen:",
"namedialog2": "Wenn Sie auf Bestätigen drücken, wird der Name registriert!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Cantidad", "amount": "Cantidad",
"to": "A", "to": "A",
"declined": "Usuario rechazó transacción!" "declined": "Usuario rechazó transacción!",
"namedialog1": "Estás registrando el nombre a continuación:",
"namedialog2": "Al presionar confirmar, el nombre quedará registrado!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Montant", "amount": "Montant",
"to": "A", "to": "A",
"declined": "Transaction refusée par lutilisateur!" "declined": "Transaction refusée par lutilisateur!",
"namedialog1": "Vous enregistrez le nom ci-dessous :",
"namedialog2": "En appuyant sur confirmer, le nom sera enregistré !"
} }
} }

View File

@ -573,6 +573,8 @@
"transactions": { "transactions": {
"amount": "राशि", "amount": "राशि",
"to": "को", "to": "को",
"declined": "उपयोगकर्ता ने लेन-देन अस्वीकार कर दिया!" "declined": "उपयोगकर्ता ने लेन-देन अस्वीकार कर दिया!",
"namedialog1": "आप नीचे नाम दर्ज कर रहे हैं:",
"namedialog2": "कन्फर्म दबाते ही नाम दर्ज हो जाएगा !"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Iznos", "amount": "Iznos",
"to": "Prema", "to": "Prema",
"declined": "Korisnik je odbio transakciju!" "declined": "Korisnik je odbio transakciju!",
"namedialog1": "Registrirate ime ispod:",
"namedialog2": "Pritiskom na potvrdi ime će biti registrirano!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Mennyiség", "amount": "Mennyiség",
"to": "Hoz", "to": "Hoz",
"declined": "Felhasználó elutasította a tranzakciót!" "declined": "Felhasználó elutasította a tranzakciót!",
"namedialog1": "Ön az alábbi nevet regisztrálja:",
"namedialog2": "A megerősítés megnyomására a név regisztrálásra kerül!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Amount", "amount": "Amount",
"to": "To", "to": "To",
"declined": "User declined transaction!" "declined": "User declined transaction!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Valor", "amount": "Valor",
"to": "Para", "to": "Para",
"declined": "Usuário recusou transação!" "declined": "Usuário recusou transação!",
"namedialog1": "Você está registrando o nome abaixo:",
"namedialog2": "Ao pressionar confirmar, o nome será registrado!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Iznos", "amount": "Iznos",
"to": "Za", "to": "Za",
"declined": "Korisnik je odbio transakciju!" "declined": "Korisnik je odbio transakciju!",
"namedialog1": "Vi registrujete ime ispod:",
"namedialog2": "Pritiskom na potvrdi ime će biti registrovano!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "Amount", "amount": "Amount",
"to": "To", "to": "To",
"declined": "User declined transaction!" "declined": "User declined transaction!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "数量", "amount": "数量",
"to": "收款人", "to": "收款人",
"declined": "交易已被用戶拒绝!" "declined": "交易已被用戶拒绝!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
} }
} }

View File

@ -566,6 +566,8 @@
"transactions": { "transactions": {
"amount": "數量", "amount": "數量",
"to": "收款人", "to": "收款人",
"declined": "交易被用戶拒絕!" "declined": "交易被用戶拒絕!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
} }
} }

View File

@ -10,14 +10,22 @@ export default class RegisterNameTransaction extends TransactionBase {
render(html) { render(html) {
return html` return html`
You are registering the name below: ${this._dialogyou}
<div style="background: #eee; padding: 8px; margin: 8px 0; border-radius: 5px;"> <div style="background: #eee; padding: 8px; margin: 8px 0; border-radius: 5px;">
<span style="color: #000;">${this.nameText}</span> <span style="color: #000;">${this.nameText}</span>
</div> </div>
On pressing confirm, the name will be registered! ${this._dialogonpress}
` `
} }
set dialogyou(dialogyou) {
this._dialogyou = dialogyou
}
set dialogonpress(dialogonpress) {
this._dialogonpress = dialogonpress
}
set fee(fee) { set fee(fee) {
this._fee = fee * QORT_DECIMALS this._fee = fee * QORT_DECIMALS
this._feeBytes = this.constructor.utils.int64ToBytes(this._fee) this._feeBytes = this.constructor.utils.int64ToBytes(this._fee)

View File

@ -359,6 +359,8 @@ class NameRegistration extends LitElement {
// Make Transaction Request // Make Transaction Request
const makeTransactionRequest = async (lastRef) => { const makeTransactionRequest = async (lastRef) => {
let dialogyou = get("transactions.namedialog1")
let dialogonpress = get("transactions.namedialog2")
let myTxnrequest = await parentEpml.request('transaction', { let myTxnrequest = await parentEpml.request('transaction', {
type: 3, type: 3,
nonce: this.selectedAddress.nonce, nonce: this.selectedAddress.nonce,
@ -367,6 +369,8 @@ class NameRegistration extends LitElement {
name: nameInput, name: nameInput,
value: descInput, value: descInput,
lastReference: lastRef, lastReference: lastRef,
dialogyou: dialogyou,
dialogonpress: dialogonpress,
} }
}) })
return myTxnrequest return myTxnrequest