chore: update translations

Closes #801 #841
This commit is contained in:
Pascal Precht 2020-09-14 14:12:47 +02:00 committed by Iuri Matias
parent 7c520a8032
commit e0adc3056e
150 changed files with 152953 additions and 140304 deletions

View File

@ -34,7 +34,8 @@ ModalPopup {
TransactionFormGroup {
id: group1
headerText: root.commandTitle
footerText: qsTr("Continue")
//% "Continue"
footerText: qsTrId("continue")
AccountSelector {
id: selectFromAccount
@ -42,7 +43,8 @@ ModalPopup {
selectedAccount: walletModel.currentAccount
currency: walletModel.defaultCurrency
width: stack.width
label: qsTr("From account")
//% "From account"
label: qsTrId("from-account")
reset: function() {
accounts = Qt.binding(function() { return walletModel.accounts })
selectedAccount = Qt.binding(function() { return walletModel.currentAccount })
@ -57,7 +59,8 @@ ModalPopup {
id: selectRecipient
accounts: walletModel.accounts
contacts: profileModel.addedContacts
label: qsTr("Recipient")
//% "Recipient"
label: qsTrId("recipient")
readOnly: true
anchors.top: separator.bottom
anchors.topMargin: 10
@ -70,7 +73,8 @@ ModalPopup {
TransactionFormGroup {
id: group2
headerText: root.commandTitle
footerText: qsTr("Preview")
//% "Preview"
footerText: qsTrId("preview")
AssetAndAmountInput {
id: txtAmount
@ -87,7 +91,8 @@ ModalPopup {
}
TransactionFormGroup {
id: group3
headerText: qsTr("Transaction preview")
//% "Transaction preview"
headerText: qsTrId("transaction-preview")
footerText: root.finalButtonLabel
TransactionPreview {
@ -117,7 +122,8 @@ ModalPopup {
StyledText {
id: warningText
text: qsTr("You need to request the recipients address first.\nAssets wont be sent yet.")
//% "You need to request the recipients address first.\nAssets wont be sent yet."
text: qsTrId("you-need-to-request-the-recipient-s-address-first--nassets-won-t-be-sent-yet-")
color: Style.current.danger
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
@ -163,7 +169,8 @@ ModalPopup {
StyledButton {
id: btnNext
anchors.right: parent.right
label: qsTr("Next")
//% "Next"
label: qsTrId("next")
disabled: !stack.currentGroup.isValid
onClicked: {
const isValid = stack.currentGroup.validate()

View File

@ -61,9 +61,11 @@ Popup {
onClicked: function () {
chatCommandModal.sendChatCommand = root.requestAddressForTransaction
chatCommandModal.isRequested = false
chatCommandModal.commandTitle = qsTr("Send")
//% "Send"
chatCommandModal.commandTitle = qsTrId("command-button-send")
chatCommandModal.title = chatCommandModal.commandTitle
chatCommandModal.finalButtonLabel = qsTr("Request Address")
//% "Request Address"
chatCommandModal.finalButtonLabel = qsTrId("request-address")
chatCommandModal.selectedRecipient = {
address: Constants.zeroAddress, // Setting as zero address since we don't have the address yet
identicon: chatsModel.activeChannel.identicon,
@ -85,9 +87,11 @@ Popup {
onClicked: function () {
chatCommandModal.sendChatCommand = root.requestTransaction
chatCommandModal.isRequested = true
chatCommandModal.commandTitle = qsTr("Request")
//% "Request"
chatCommandModal.commandTitle = qsTrId("wallet-request")
chatCommandModal.title = chatCommandModal.commandTitle
chatCommandModal.finalButtonLabel = qsTr("Request")
//% "Request"
chatCommandModal.finalButtonLabel = qsTrId("wallet-request")
chatCommandModal.selectedRecipient = {
address: Constants.zeroAddress, // Setting as zero address since we don't have the address yet
identicon: chatsModel.activeChannel.identicon,

View File

@ -21,7 +21,8 @@ ModalPopup {
property MessageDialog sendingError: MessageDialog {
id: sendingError
title: qsTr("Error sending the transaction")
//% "Error sending the transaction"
title: qsTrId("error-sending-the-transaction")
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok
}
@ -40,9 +41,10 @@ ModalPopup {
transactionSigner.enteredPassword)
let response = JSON.parse(responseStr)
if (!response.success) {
if (response.error) {
if (response.result.includes("could not decrypt key with given password")){
transactionSigner.validationError = qsTr("Wrong password")
//% "Wrong password"
transactionSigner.validationError = qsTrId("wrong-password")
return
}
sendingError.text = response.result
@ -62,8 +64,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group1
headerText: qsTr("Send")
footerText: qsTr("Preview")
//% "Send"
headerText: qsTrId("command-button-send")
//% "Preview"
footerText: qsTrId("preview")
GasSelector {
id: gasSelector
@ -92,7 +96,8 @@ ModalPopup {
root.selectedAmount))
if (!gasEstimate.success) {
console.warn(qsTr("Error estimating gas: %1").arg(gasEstimate.result))
//% "Error estimating gas: %1"
console.warn(qsTrId("error-estimating-gas---1").arg(gasEstimate.error.message))
return
}
selectedGasLimit = gasEstimate.result
@ -113,8 +118,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group2
headerText: qsTr("Transaction preview")
footerText: qsTr("Sign with password")
//% "Transaction preview"
headerText: qsTrId("transaction-preview")
//% "Sign with password"
footerText: qsTrId("sign-with-password")
TransactionPreview {
id: pvwTransaction
@ -142,8 +149,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group3
headerText: qsTr("Sign with password")
footerText: qsTr("Send %1 %2").arg(root.selectedAmount).arg(!!root.selectedAsset ? root.selectedAsset.symbol : "")
//% "Sign with password"
headerText: qsTrId("sign-with-password")
//% "Send %1 %2"
footerText: qsTrId("send--1--2").arg(root.selectedAmount).arg(!!root.selectedAsset ? root.selectedAsset.symbol : "")
TransactionSigner {
id: transactionSigner
@ -190,7 +199,8 @@ ModalPopup {
StyledButton {
id: btnNext
anchors.right: parent.right
label: qsTr("Next")
//% "Next"
label: qsTrId("next")
disabled: !stack.currentGroup.isValid
onClicked: {
const isValid = stack.currentGroup.validate()

View File

@ -111,7 +111,8 @@ Item {
font.weight: Font.Medium
font.pixelSize: 15
color: Style.current.blue
text: qsTr("↓ Fetch more messages")
//% " Fetch more messages"
text: qsTrId("load-more-messages")
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: sep1.bottom
@ -134,7 +135,8 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
color: Style.current.darkGrey
text: qsTr("before %1").arg(new Date(chatsModel.oldestMsgTimestamp*1000).toDateString())
//% "before %1"
text: qsTrId("before--1").arg(new Date(chatsModel.oldestMsgTimestamp*1000).toDateString())
}
Separator {
anchors.top: fetchDate.bottom

View File

@ -112,7 +112,11 @@ Item {
StyledText {
id: title
color: Style.current.secondaryText
text: outgoing ? qsTr("↑ Outgoing transaction") : qsTr("↓ Incoming transaction")
//% " Outgoing transaction"
text: outgoing ?
qsTrId("--outgoing-transaction") :
//% " Incoming transaction"
qsTrId("--incoming-transaction")
font.weight: Font.Medium
anchors.top: parent.top
anchors.topMargin: Style.current.halfPadding

View File

@ -15,7 +15,11 @@ Item {
StyledText {
id: acceptText
color: Style.current.blue
text: root.state === Constants.addressRequested ? qsTr("Accept and share address") : qsTr("Accept and send")
//% "Accept and share address"
text: root.state === Constants.addressRequested ?
qsTrId("accept-and-share-address") :
//% "Accept and send"
qsTrId("accept-and-send")
padding: Style.current.halfPadding
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
@ -48,7 +52,8 @@ Item {
StyledText {
id: declineText
color: Style.current.blue
text: qsTr("Decline")
//% "Decline"
text: qsTrId("decline")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
font.weight: Font.Medium

View File

@ -14,7 +14,8 @@ Item {
StyledText {
id: signText
color: Style.current.blue
text: qsTr("Sign and send")
//% "Sign and send"
text: qsTrId("sign-and-send")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
font.weight: Font.Medium

View File

@ -55,16 +55,26 @@ Rectangle {
}
text: {
switch (root.state) {
case Constants.pending: return qsTr("Pending")
case Constants.confirmed: return qsTr("Confirmed")
case Constants.unknown: return qsTr("Unknown token")
case Constants.addressRequested: return qsTr("Address requested")
case Constants.transactionRequested: return qsTr("Waiting to accept")
case Constants.addressReceived: return (!root.outgoing ? qsTr("Address shared") : qsTr("Address received"))
//% "Pending"
case Constants.pending: return qsTrId("pending")
//% "Confirmed"
case Constants.confirmed: return qsTrId("status-confirmed")
//% "Unknown token"
case Constants.unknown: return qsTrId("unknown-token")
//% "Address requested"
case Constants.addressRequested: return qsTrId("address-requested")
//% "Waiting to accept"
case Constants.transactionRequested: return qsTrId("waiting-to-accept")
//% "Address shared"
//% "Address received"
case Constants.addressReceived: return (!root.outgoing ? qsTrId("address-shared") : qsTrId("address-received"))
case Constants.transactionDeclined:
case Constants.declined: return qsTr("Transaction declined")
case Constants.failure: return qsTr("Failure")
default: return qsTr("Unknown state")
//% "Transaction declined"
case Constants.declined: return qsTrId("transaction-declined")
//% "Failure"
case Constants.failure: return qsTrId("failure")
//% "Unknown state"
default: return qsTrId("unknown-state")
}
}
font.weight: Font.Medium

View File

@ -77,7 +77,8 @@ ModalPopup {
ensUsername.text == "";
pubKey = "";
} else if(resolvedPubKey == ""){
ensUsername.text = qsTr("User not found");
//% "User not found"
ensUsername.text = qsTrId("user-not-found");
pubKey = "";
} else {
ensUsername.text = chatsModel.formatENSUsername(chatKey.text) + " • " + Utils.compactAddress(resolvedPubKey, 4)

View File

@ -12,11 +12,13 @@ ModalPopup {
property int stickerPackId: -1
property string packPrice
property bool showBackBtn: false
title: qsTr("Authorize %1 %2").arg(Utils.stripTrailingZeros(packPrice)).arg(asset.symbol)
//% "Authorize %1 %2"
title: qsTrId("authorize--1--2").arg(Utils.stripTrailingZeros(packPrice)).arg(asset.symbol)
property MessageDialog sendingError: MessageDialog {
id: sendingError
title: qsTr("Error sending the transaction")
//% "Error sending the transaction"
title: qsTrId("error-sending-the-transaction")
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok
}
@ -36,7 +38,8 @@ ModalPopup {
if (!response.success) {
if (response.result.includes("could not decrypt key with given password")){
transactionSigner.validationError = qsTr("Wrong password")
//% "Wrong password"
transactionSigner.validationError = qsTrId("wrong-password")
return
}
sendingError.text = response.result
@ -57,8 +60,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group1
headerText: qsTr("Authorize %1 %2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
footerText: qsTr("Continue")
//% "Authorize %1 %2"
headerText: qsTrId("authorize--1--2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
//% "Continue"
footerText: qsTrId("continue")
StackView.onActivated: {
btnBack.visible = root.showBackBtn
@ -70,7 +75,8 @@ ModalPopup {
selectedAccount: walletModel.currentAccount
currency: walletModel.defaultCurrency
width: stack.width
label: qsTr("Choose account")
//% "Choose account"
label: qsTrId("choose-account")
showBalanceForAssetSymbol: root.asset.symbol
minRequiredAssetBalance: root.packPrice
reset: function() {
@ -128,8 +134,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group3
headerText: qsTr("Authorize %1 %2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
footerText: qsTr("Sign with password")
//% "Authorize %1 %2"
headerText: qsTrId("authorize--1--2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
//% "Sign with password"
footerText: qsTrId("sign-with-password")
StackView.onActivated: {
btnBack.visible = true
@ -168,8 +176,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group4
headerText: qsTr("Send %1 %2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
footerText: qsTr("Sign with password")
//% "Send %1 %2"
headerText: qsTrId("send--1--2").arg(Utils.stripTrailingZeros(root.packPrice)).arg(root.asset.symbol)
//% "Sign with password"
footerText: qsTrId("sign-with-password")
TransactionSigner {
id: transactionSigner
@ -201,7 +211,8 @@ ModalPopup {
StatusButton {
id: btnNext
anchors.right: parent.right
text: qsTr("Next")
//% "Next"
label: qsTrId("next")
enabled: stack.currentGroup.isValid && !stack.currentGroup.isPending
state: stack.currentGroup.isPending ? "pending" : "default"
onClicked: {

View File

@ -131,7 +131,8 @@ Rectangle {
icon.width: menuButton.iconSize
icon.height: menuButton.iconSize
icon.color: Style.current.red
text: qsTr("Unblock User")
//% "Unblock User"
text: qsTrId("unblock-user")
enabled: container.isBlocked
onTriggered: {
profileModel.unblockContact(address)

View File

@ -110,7 +110,8 @@ Item {
Input {
id: addContactSearchInput
placeholderText: qsTr("Enter ENS username or chat key")
//% "Enter ENS username or chat key"
placeholderText: qsTrId("enter-contact-code")
customHeight: 44
fontPixelSize: 15
onEditingFinished: {

View File

@ -78,4 +78,4 @@ Item {
label: qsTrId("ens-got-it")
onClicked: okBtnClicked()
}
}
}

View File

@ -44,7 +44,8 @@ Item {
StyledText {
id: title
text: qsTr("Username added")
//% "Username added"
text: qsTrId("ens-saved-title")
anchors.top: circle.bottom
anchors.topMargin: 24
font.weight: Font.Bold
@ -57,7 +58,8 @@ Item {
StyledText {
id: subtitle
text: qsTr("%1 will be connected once the transaction is complete.").arg(ensUsername)
//% "%1 will be connected once the transaction is complete."
text: qsTrId("-1-will-be-connected-once-the-transaction-is-complete-").arg(ensUsername)
anchors.top: title.bottom
anchors.topMargin: 24
font.pixelSize: 14
@ -69,7 +71,8 @@ Item {
StyledText {
id: progress
text: qsTr("You can follow the progress in the Transaction History section of your wallet.")
//% "You can follow the progress in the Transaction History section of your wallet."
text: qsTrId("ens-username-you-can-follow-progress")
anchors.top: subtitle.bottom
anchors.topMargin: 24
font.pixelSize: 12
@ -86,7 +89,8 @@ Item {
anchors.top: progress.bottom
anchors.topMargin: Style.current.padding
anchors.horizontalCenter: parent.horizontalCenter
label: qsTr("Ok, got it")
//% "Ok, got it"
label: qsTrId("ens-got-it")
onClicked: okBtnClicked()
}
}
}

View File

@ -90,4 +90,4 @@ Item {
label: qsTrId("back")
onClicked: backBtnClicked()
}
}
}

View File

@ -25,7 +25,8 @@ ModalPopup {
//% "Your messages are displayed to others with this username:"
qsTrId("your-messages-are-displayed-to-others-with-this-username-")
:
qsTr("Once you select a username, you wont be able to disable it afterwards. You will only be able choose a different username to display.")
//% "Once you select a username, you wont be able to disable it afterwards. You will only be able choose a different username to display."
qsTrId("once-you-select-a-username--you-won-t-be-able-to-disable-it-afterwards--you-will-only-be-able-choose-a-different-username-to-display-")
font.pixelSize: 15
}

View File

@ -44,7 +44,8 @@ Item {
StyledText {
id: title
text: qsTr("Username added")
//% "Username added"
text: qsTrId("ens-saved-title")
anchors.top: circle.bottom
anchors.topMargin: Style.current.bigPadding
font.weight: Font.Bold
@ -57,7 +58,8 @@ Item {
StyledText {
id: subtitle
text: qsTr("Nice! You own %1.stateofus.eth once the transaction is complete.").arg(ensUsername)
//% "Nice! You own %1.stateofus.eth once the transaction is complete."
text: qsTrId("nice--you-own--1-stateofus-eth-once-the-transaction-is-complete-").arg(ensUsername)
anchors.top: title.bottom
anchors.topMargin: 24
font.pixelSize: 14
@ -69,7 +71,8 @@ Item {
StyledText {
id: progress
text: qsTr("You can follow the progress in the Transaction History section of your wallet.")
//% "You can follow the progress in the Transaction History section of your wallet."
text: qsTrId("ens-username-you-can-follow-progress")
anchors.top: subtitle.bottom
anchors.topMargin: 24
font.pixelSize: 12
@ -86,7 +89,8 @@ Item {
anchors.top: progress.bottom
anchors.topMargin: Style.current.padding
anchors.horizontalCenter: parent.horizontalCenter
label: qsTr("Ok, got it")
//% "Ok, got it"
label: qsTrId("ens-got-it")
onClicked: okBtnClicked()
}
}
}

View File

@ -31,7 +31,8 @@ Item {
Item {
Text {
id: usernameTxt
text: username.substr(0, username.indexOf(".")) + " " + (isPending ? qsTr("(pending)") : "")
//% "(pending)"
text: username.substr(0, username.indexOf(".")) + " " + (isPending ? qsTrId("-pending-") : "")
color: Style.current.textColor
}
@ -50,7 +51,8 @@ Item {
Item {
Text {
id: usernameTxt
text: username + " " + (isPending ? qsTr("(pending)") : "")
//% "(pending)"
text: username + " " + (isPending ? qsTrId("-pending-") : "")
font.pixelSize: 16
color: Style.current.textColor
anchors.top: parent.top
@ -227,7 +229,8 @@ Item {
StyledText {
id: usernameLabel2
visible: chatSettingsLabel.visible
text: profileModel.ens.preferredUsername || qsTr("None selected")
//% "None selected"
text: profileModel.ens.preferredUsername || qsTrId("none-selected")
anchors.left: usernameLabel.right
anchors.leftMargin: Style.current.padding
font.pixelSize: 14
@ -302,7 +305,8 @@ Item {
anchors.top: chatTime.bottom
anchors.left: chatImage.left
anchors.topMargin: Style.current.padding
text: qsTr("Youre displaying your ENS username in chats")
//% "Youre displaying your ENS username in chats"
text: qsTrId("you-re-displaying-your-ens-username-in-chats")
font.pixelSize: 14
color: Style.current.secondaryText
}
@ -321,4 +325,4 @@ Item {
chatSettingsLabel.visible = true
}
}
}
}

View File

@ -48,7 +48,8 @@ Item {
ModalPopup {
id: transactionDialog
title: qsTr("TODO: replace this for the transaction dialog")
//% "TODO: replace this for the transaction dialog"
title: qsTrId("todo--replace-this-for-the-transaction-dialog")
Input {
id: passwd
@ -64,7 +65,8 @@ Item {
anchors.bottomMargin: Style.current.padding
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
label: qsTr("Ok")
//% "Ok"
label: qsTrId("ok")
onClicked: {
profileModel.ens.setPubKey(ensUsername.text, passwd.text)
passwd.text = "";
@ -151,7 +153,8 @@ Item {
break;
case "owned":
valid = true;
validationMessage = qsTr("Continuing will connect this username with your chat key.");
//% "Continuing will connect this username with your chat key."
validationMessage = qsTrId("ens-username-owned-continue");
break;
case "taken":
validationMessage = !isStatus ?
@ -274,4 +277,4 @@ Item {
anchors.top: ensTypeRect.bottom
anchors.topMargin: 24
}
}
}

View File

@ -31,7 +31,8 @@ Item {
ModalPopup {
id: popup
title: qsTr("Terms of name registration")
//% "Terms of name registration"
title: qsTrId("ens-terms-header")
ScrollView {
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
@ -47,56 +48,64 @@ Item {
StyledText {
text: qsTr("Funds are deposited for 1 year. Your SNT will be locked, but not spent.")
//% "Funds are deposited for 1 year. Your SNT will be locked, but not spent."
text: qsTrId("ens-terms-point-1")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("After 1 year, you can release the name and get your deposit back, or take no action to keep the name.")
//% "After 1 year, you can release the name and get your deposit back, or take no action to keep the name."
text: qsTrId("ens-terms-point-2")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("If terms of the contract change — e.g. Status makes contract upgrades — user has the right to release the username regardless of time held.")
//% "If terms of the contract change e.g. Status makes contract upgrades user has the right to release the username regardless of time held."
text: qsTrId("ens-terms-point-3")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("The contract controller cannot access your deposited funds. They can only be moved back to the address that sent them.")
//% "The contract controller cannot access your deposited funds. They can only be moved back to the address that sent them."
text: qsTrId("ens-terms-point-4")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("Your address(es) will be publicly associated with your ENS name.")
//% "Your address(es) will be publicly associated with your ENS name."
text: qsTrId("ens-terms-point-5")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("Usernames are created as subdomain nodes of stateofus.eth and are subject to the ENS smart contract terms.")
//% "Usernames are created as subdomain nodes of stateofus.eth and are subject to the ENS smart contract terms."
text: qsTrId("ens-terms-point-6")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("You authorize the contract to transfer SNT on your behalf. This can only occur when you approve a transaction to authorize the transfer.")
//% "You authorize the contract to transfer SNT on your behalf. This can only occur when you approve a transaction to authorize the transfer."
text: qsTrId("ens-terms-point-7")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
StyledText {
text: qsTr("These terms are guaranteed by the smart contract logic at addresses:")
//% "These terms are guaranteed by the smart contract logic at addresses:"
text: qsTrId("ens-terms-point-8")
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
@ -104,7 +113,8 @@ Item {
}
StyledText {
text: qsTr("%1 (Status UsernameRegistrar).").arg(profileModel.ens.getUsernameRegistrar())
//% "%1 (Status UsernameRegistrar)."
text: qsTrId("-1--status-usernameregistrar--").arg(profileModel.ens.getUsernameRegistrar())
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
@ -124,7 +134,8 @@ Item {
}
StyledText {
text: qsTr("%1 (ENS Registry).").arg(profileModel.ens.getENSRegistry())
//% "%1 (ENS Registry)."
text: qsTrId("-1--ens-registry--").arg(profileModel.ens.getENSRegistry())
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
@ -199,7 +210,8 @@ Item {
TextWithLabel {
id: walletAddressLbl
label: qsTr("Wallet address")
//% "Wallet address"
label: qsTrId("wallet-address")
text: walletModel.getDefaultAddress()
textToCopy: profileModel.profile.address
anchors.left: parent.left
@ -210,7 +222,8 @@ Item {
TextWithLabel {
id: keyLbl
label: qsTr("Key")
//% "Key"
label: qsTrId("key")
text: {
let pubKey = profileModel.profile.pubKey;
return pubKey.substring(0, 20) + "..." + pubKey.substring(pubKey.length - 20);
@ -231,7 +244,8 @@ Item {
}
StyledText {
text: qsTr("Agree to <a href=\"#\">Terms of name registration.</a> I understand that my wallet address will be publicly connected to my username.")
//% "Agree to <a href=\"#\">Terms of name registration.</a> I understand that my wallet address will be publicly connected to my username."
text: qsTrId("agree-to--a-href-------terms-of-name-registration---a--i-understand-that-my-wallet-address-will-be-publicly-connected-to-my-username-")
anchors.left: termsAndConditionsCheckbox.right
anchors.right: parent.right
wrapMode: Text.WordWrap
@ -251,7 +265,8 @@ Item {
anchors.bottomMargin: Style.current.padding
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
label: qsTr("Back")
//% "Back"
label: qsTrId("back")
onClicked: backBtnClicked()
}
@ -273,7 +288,8 @@ Item {
StyledText {
id: ensPriceLbl
text: qsTr("10 SNT")
//% "10 SNT"
text: qsTrId("ens-10-SNT")
anchors.left: image1.right
anchors.leftMargin: 5
anchors.top: image1.top
@ -282,7 +298,8 @@ Item {
}
StyledText {
text: qsTr("Deposit")
//% "Deposit"
text: qsTrId("ens-deposit")
anchors.left: image1.right
anchors.leftMargin: 5
anchors.topMargin: 5
@ -298,8 +315,12 @@ Item {
anchors.bottomMargin: Style.current.padding
anchors.right: parent.right
anchors.rightMargin: Style.current.padding
label: parseFloat(walletModel.getSNTBalance()) < 10 ? qsTr("Not enough SNT") : qsTr("Register")
label: parseFloat(walletModel.getSNTBalance()) < 10 ?
//% "Not enough SNT"
qsTrId("not-enough-snt") :
//% "Register"
qsTrId("ens-register")
disabled: parseFloat(walletModel.getSNTBalance()) < 10 || !termsAndConditionsCheckbox.checked
onClicked: transactionDialog.open()
}
}
}

View File

@ -284,7 +284,10 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
disabled: profileModel.network !== "mainnet_rpc" // Comment this to use on testnet
//% "Start"
label: !disabled ? qsTrId("start") : qsTr("Only available on Mainnet")
label: !disabled ?
qsTrId("start") :
//% "Only available on Mainnet"
qsTrId("ens-network-restriction")
onClicked: startBtnClicked()
}
}
}

View File

@ -16,7 +16,8 @@ ModalPopup {
property MessageDialog sendingError: MessageDialog {
id: sendingError
title: qsTr("Error sending the transaction")
//% "Error sending the transaction"
title: qsTrId("error-sending-the-transaction")
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok
}
@ -47,8 +48,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group1
headerText: qsTr("Send")
footerText: qsTr("Continue")
//% "Send"
headerText: qsTrId("command-button-send")
//% "Continue"
footerText: qsTrId("continue")
AccountSelector {
id: selectFromAccount
@ -56,7 +59,8 @@ ModalPopup {
selectedAccount: walletModel.currentAccount
currency: walletModel.defaultCurrency
width: stack.width
label: qsTr("From account")
//% "From account"
label: qsTrId("from-account")
reset: function() {
accounts = Qt.binding(function() { return walletModel.accounts })
selectedAccount = Qt.binding(function() { return walletModel.currentAccount })
@ -72,7 +76,8 @@ ModalPopup {
id: selectRecipient
accounts: walletModel.accounts
contacts: profileModel.addedContacts
label: qsTr("Recipient")
//% "Recipient"
label: qsTrId("recipient")
anchors.top: separator.bottom
anchors.topMargin: 10
width: stack.width
@ -86,8 +91,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group2
headerText: qsTr("Send")
footerText: qsTr("Preview")
//% "Send"
headerText: qsTrId("command-button-send")
//% "Preview"
footerText: qsTrId("preview")
AssetAndAmountInput {
id: txtAmount
@ -129,7 +136,8 @@ ModalPopup {
txtAmount.selectedAmount))
if (!gasEstimate.success) {
console.warn(qsTr("Error estimating gas: %1").arg(gasEstimate.result))
//% "Error estimating gas: %1"
console.warn(qsTrId("error-estimating-gas---1").arg(gasEstimate.error.message))
return
}
selectedGasLimit = gasEstimate.result
@ -153,8 +161,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group3
headerText: qsTr("Transaction preview")
footerText: qsTr("Sign with password")
//% "Transaction preview"
headerText: qsTrId("transaction-preview")
//% "Sign with password"
footerText: qsTrId("sign-with-password")
TransactionPreview {
id: pvwTransaction
@ -186,8 +196,10 @@ ModalPopup {
}
TransactionFormGroup {
id: group4
headerText: qsTr("Sign with password")
footerText: qsTr("Send %1 %2").arg(txtAmount.selectedAmount).arg(!!txtAmount.selectedAsset ? txtAmount.selectedAsset.symbol : "")
//% "Sign with password"
headerText: qsTrId("sign-with-password")
//% "Send %1 %2"
footerText: qsTrId("send--1--2").arg(txtAmount.selectedAmount).arg(!!txtAmount.selectedAsset ? txtAmount.selectedAsset.symbol : "")
TransactionSigner {
id: transactionSigner
@ -235,7 +247,8 @@ ModalPopup {
StatusButton {
id: btnNext
anchors.right: parent.right
text: qsTr("Next")
//% "Next"
text: qsTrId("next")
enabled: !(!stack.currentGroup.isValid || stack.currentGroup.isPending)
state: stack.currentGroup.isPending ? "pending" : "default"
onClicked: {
@ -258,7 +271,8 @@ ModalPopup {
if (!response.success) {
if (response.result.includes("could not decrypt key with given password")){
transactionSigner.validationError = qsTr("Wrong password")
//% "Wrong password"
transactionSigner.validationError = qsTrId("wrong-password")
return
}
sendingError.text = response.result

View File

@ -76,7 +76,8 @@ Item {
id: contextMenu
Action {
icon.source: "../../../img/make-admin.svg"
text: qsTr("Token details")
//% "Token details"
text: qsTrId("token-details")
onTriggered: {
console.log("TODO")
}
@ -84,7 +85,8 @@ Item {
Action {
icon.source: "../../../img/remove-from-group.svg"
icon.color: Style.current.red
text: qsTr("Remove token")
//% "Remove token"
text: qsTrId("remove-token")
onTriggered: walletModel.removeCustomToken(address)
}
}
@ -116,7 +118,8 @@ Item {
StyledText {
id: customLbl
text: qsTr("Custom")
//% "Custom"
text: qsTrId("custom")
font.pixelSize: 13
color: Style.current.secondaryText
height: 20
@ -145,7 +148,8 @@ Item {
StyledText {
id: defaultLbl
text: qsTr("Default")
//% "Default"
text: qsTrId("default")
font.pixelSize: 13
color: Style.current.secondaryText
height: 20

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1378,7 +1378,7 @@ Seperate words by a single space.</source>
<message id="chat-over-a-peer-to-peer--encrypted-network-n-where-messages-can-t-be-censored-or-hacked">
<location filename="../onboarding/Intro.qml" line="34"/>
<source>Chat over a peer-to-peer, encrypted network
where messages can't be censored or hacked</source>
where messages can't be censored or hacked</source>
<translation type="unfinished"/>
</message>
<message id="intro-title2">

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More