main.qml: add "primary account" translation in balance card

This commit is contained in:
rating89us 2020-06-22 14:11:15 +02:00 committed by GitHub
parent 0b2e74cdb5
commit c75e5b1674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1629,7 +1629,13 @@ ApplicationWindow {
currentAccountIndex: currentWallet ? currentWallet.currentSubaddressAccount : 0
currentAccountLabel: {
if (currentWallet) {
return currentWallet.getSubaddressLabel(currentWallet.currentSubaddressAccount, 0);
var accountLabel = currentWallet.getSubaddressLabel(currentWallet.currentSubaddressAccount, 0);
if (accountLabel === "Primary account") {
//add translation
return qsTr("Primary account") + translationManager.emptyString;
} else {
return accountLabel;
}
}
return qsTr("Primary account") + translationManager.emptyString;
}