diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-10 14:32:08 +0000 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-10 14:32:08 +0000 |
| commit | b757cc28b8055c7811769c80fcbda569a66750d7 (patch) | |
| tree | 7747dc62a9a00602acfeb091a4ac14a177ba9d8c /components | |
| parent | b8745299ba5518cf93ec55b0786350663db929cf (diff) | |
| parent | 4c2f78a78be7103c5aa3eb149d9235ad34298d80 (diff) | |
| download | monzero-gui-b757cc28b8055c7811769c80fcbda569a66750d7.tar.gz monzero-gui-b757cc28b8055c7811769c80fcbda569a66750d7.tar.xz monzero-gui-b757cc28b8055c7811769c80fcbda569a66750d7.zip | |
Merge pull request #548
4c2f78a Fix translations in dropdown menu (Jaquee)
Diffstat (limited to 'components')
| -rw-r--r-- | components/StandardDropdown.qml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml index b3820501..8b2c9d41 100644 --- a/components/StandardDropdown.qml +++ b/components/StandardDropdown.qml @@ -107,7 +107,7 @@ Item { font.bold: true font.pixelSize: 12 color: "#FFFFFF" - text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column1 : "" + text: column.currentIndex < repeater.model.rowCount() ? qsTr(repeater.model.get(column.currentIndex).column1) + translationManager.emptyString : "" } Text { @@ -119,7 +119,7 @@ Item { font.family: "Arial" font.pixelSize: 12 color: "#FFFFFF" - text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column2 : "" + text: column.currentIndex < repeater.model.rowCount() ? qsTr(repeater.model.get(column.currentIndex).column2) + translationManager.emptyString : "" property int w: 0 Component.onCompleted: w = implicitWidth @@ -193,6 +193,12 @@ Item { Repeater { id: repeater + // Workaround for translations in listElements. All translated strings needs to be listed in this file. + property string stringLow: qsTr("Low (x1 fee)") + translationManager.emptyString + property string stringMedium: qsTr("Medium (x20 fee)") + translationManager.emptyString + property string stringHigh: qsTr("High (x166 fee)") + translationManager.emptyString + + delegate: Rectangle { anchors.left: parent.left anchors.right: parent.right @@ -210,7 +216,7 @@ Item { font.bold: true font.pixelSize: 12 color: "#FFFFFF" - text: column1 + text: qsTr(column1) + translationManager.emptyString } Text { |
