From 41e1908a4260d069753843c1e8b95f77ec59a944 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Sun, 13 Sep 2020 09:06:09 +0200 Subject: [PATCH] Account: add translation to primary account label --- pages/Account.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/Account.qml b/pages/Account.qml index d3c058b6..699174d3 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -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