diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml index 34d63f87..50b60fe0 100644 --- a/components/StandardDropdown.qml +++ b/components/StandardDropdown.qml @@ -197,6 +197,10 @@ Item { 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 + property string stringSlow: qsTr("Slow (x0.25 fee)") + translationManager.emptyString + property string stringDefault: qsTr("Default (x1 fee)") + translationManager.emptyString + property string stringFast: qsTr("Fast (x5 fee)") + translationManager.emptyString + property string stringFastest: qsTr("Fastest (x41.5 fee)") + translationManager.emptyString property string stringAll: qsTr("All") + translationManager.emptyString property string stringSent: qsTr("Sent") + translationManager.emptyString property string stringReceived: qsTr("Received") + translationManager.emptyString diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 7a3202ff..6dbe21f4 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -183,12 +183,16 @@ Rectangle { } + // Note: workaround for translations in listElements + // ListElement: cannot use script for property value, so + // code like this wont work: + // ListElement { column1: qsTr("LOW") + translationManager.emptyString ; column2: ""; priority: PendingTransaction.Priority_Low } + // For translations to work, the strings need to be listed in + // the file components/StandardDropdown.qml too. + // Priorities before v5 ListModel { id: priorityModel - // ListElement: cannot use script for property value, so - // code like this wont work: - // ListElement { column1: qsTr("LOW") + translationManager.emptyString ; column2: ""; priority: PendingTransaction.Priority_Low } ListElement { column1: qsTr("Low (x1 fee)") ; column2: ""; priority: PendingTransaction.Priority_Low } ListElement { column1: qsTr("Medium (x20 fee)") ; column2: ""; priority: PendingTransaction.Priority_Medium }