aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-20 22:28:11 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-20 22:28:11 +0300
commit32ebf180acce258f8efb9bcaeca945a1fdd311ce (patch)
tree3f617d1ef44e919cbaac2aa22c77cdbc4c50d77c /main.qml
parent39b88daf326cdbbbac5f757769168d41e6d3517b (diff)
downloadmonzero-gui-32ebf180acce258f8efb9bcaeca945a1fdd311ce.tar.gz
monzero-gui-32ebf180acce258f8efb9bcaeca945a1fdd311ce.tar.xz
monzero-gui-32ebf180acce258f8efb9bcaeca945a1fdd311ce.zip
dynamic translation support. closes #24
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml19
1 files changed, 10 insertions, 9 deletions
diff --git a/main.qml b/main.qml
index 7316fc56..da8545af 100644
--- a/main.qml
+++ b/main.qml
@@ -145,7 +145,7 @@ ApplicationWindow {
wallet = walletManager.openWallet(wallet_path, "", persistentSettings.testnet);
if (wallet.status !== Wallet.Status_Ok) {
console.log("Error opening wallet: ", wallet.errorString);
- informationPopup.title = qsTr("Error");
+ informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("Couldn't open wallet: ") + wallet.errorString;
informationPopup.icon = StandardIcon.Critical
informationPopup.open()
@@ -200,7 +200,7 @@ ApplicationWindow {
transaction = wallet.createTransaction(address, paymentId, amountxmr, mixinCount, priority);
if (transaction.status !== PendingTransaction.Status_Ok) {
console.error("Can't create transaction: ", transaction.errorString);
- informationPopup.title = qsTr("Error");
+ informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("Can't create transaction: ") + transaction.errorString
informationPopup.icon = StandardIcon.Critical
informationPopup.open();
@@ -213,12 +213,13 @@ ApplicationWindow {
// here we show confirmation popup;
- transactionConfirmationPopup.title = qsTr("Confirmation")
+ transactionConfirmationPopup.title = qsTr("Confirmation") + translationManager.emptyString
transactionConfirmationPopup.text = qsTr("Please confirm transaction:\n\n")
+ qsTr("\nAddress: ") + address
+ qsTr("\nPayment ID: ") + paymentId
+ qsTr("\nAmount: ") + walletManager.displayAmount(transaction.amount)
+ qsTr("\nFee: ") + walletManager.displayAmount(transaction.fee)
+ + translationManager.emptyString
transactionConfirmationPopup.icon = StandardIcon.Question
transactionConfirmationPopup.open()
// committing transaction
@@ -229,12 +230,12 @@ ApplicationWindow {
function handleTransactionConfirmed() {
if (!transaction.commit()) {
console.log("Error committing transaction: " + transaction.errorString);
- informationPopup.title = qsTr("Error");
+ informationPopup.title = qsTr("Error") + translationManager.emptyString
informationPopup.text = qsTr("Couldn't send the money: ") + transaction.errorString
informationPopup.icon = StandardIcon.Critical
} else {
- informationPopup.title = qsTr("Information")
- informationPopup.text = qsTr("Money sent successfully")
+ informationPopup.title = qsTr("Information") + translationManager.emptyString
+ informationPopup.text = qsTr("Money sent successfully") + translationManager.emptyString
informationPopup.icon = StandardIcon.Information
}
@@ -332,7 +333,7 @@ ApplicationWindow {
PropertyChanges { target: titleBar; maximizeButtonVisible: false }
PropertyChanges { target: frameArea; blocked: true }
PropertyChanges { target: titleBar; y: 0 }
- PropertyChanges { target: titleBar; title: "Program setup wizard" }
+ PropertyChanges { target: titleBar; title: qsTr("Program setup wizard") + translationManager.emptyString }
}, State {
name: "normal"
PropertyChanges { target: leftPanel; visible: true }
@@ -346,7 +347,7 @@ ApplicationWindow {
PropertyChanges { target: titleBar; maximizeButtonVisible: true }
PropertyChanges { target: frameArea; blocked: false }
PropertyChanges { target: titleBar; y: -titleBar.height }
- PropertyChanges { target: titleBar; title: "Monero - Donations" }
+ PropertyChanges { target: titleBar; title: qsTr("Monero - Donations") + translationManager.emptyString }
}
]
@@ -385,7 +386,7 @@ ApplicationWindow {
TipItem {
id: tipItem
- text: "send to the same destination"
+ text: qsTr("send to the same destination") + translationManager.emptyString
visible: false
}