diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-03-09 16:46:03 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-03-09 16:46:03 +0100 |
| commit | 4c2f78a78be7103c5aa3eb149d9235ad34298d80 (patch) | |
| tree | 0c345280c1f4067950b483bb46e4b31fd1c82931 /components/StandardDropdown.qml | |
| parent | b611871940376d30f6a292e9d0acb8c495f8f64e (diff) | |
| download | monzero-gui-4c2f78a78be7103c5aa3eb149d9235ad34298d80.tar.gz monzero-gui-4c2f78a78be7103c5aa3eb149d9235ad34298d80.tar.xz monzero-gui-4c2f78a78be7103c5aa3eb149d9235ad34298d80.zip | |
Fix translations in dropdown menu
Diffstat (limited to 'components/StandardDropdown.qml')
| -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 { |
