Account: add translation to primary account label

This commit is contained in:
rating89us 2020-09-13 09:06:09 +02:00 committed by GitHub
parent c75e5b1674
commit 41e1908a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,7 +229,14 @@ Rectangle {
anchors.left: idLabel.right
anchors.leftMargin: 6
fontSize: 16
text: label
text: {
if (label === "Primary account" && index === 0) {
//add translation
return qsTr("Primary account") + translationManager.emptyString;
} else {
return label;
}
}
elide: Text.ElideRight
textWidth: addressLabel.x - nameLabel.x - 1
themeTransition: false