mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-12 09:36:59 +00:00
Add missing, fix and improve translations
This commit is contained in:
parent
897bc582f0
commit
2b24c91bc5
8 changed files with 30 additions and 7 deletions
|
@ -204,7 +204,7 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.top: column1.bottom
|
anchors.top: column1.bottom
|
||||||
anchors.topMargin: 50
|
anchors.topMargin: 25
|
||||||
color: "#1C1C1C"
|
color: "#1C1C1C"
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: checkBox
|
id: checkBox
|
||||||
|
@ -40,6 +41,7 @@ Item {
|
||||||
signal clicked()
|
signal clicked()
|
||||||
height: 25
|
height: 25
|
||||||
width: label.x + label.width
|
width: label.x + label.width
|
||||||
|
Layout.minimumWidth: label.x + label.contentWidth
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
// Dynamic label width
|
// Dynamic label width
|
||||||
Layout.minimumWidth: (label.contentWidth > 100)? label.contentWidth + 20 : 100
|
Layout.minimumWidth: (label.contentWidth > 80)? label.contentWidth + 20 : 100
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ Item {
|
||||||
font.pixelSize: button.fontSize
|
font.pixelSize: button.fontSize
|
||||||
color: parent.textColor
|
color: parent.textColor
|
||||||
visible: parent.icon === ""
|
visible: parent.icon === ""
|
||||||
font.capitalization : Font.Capitalize
|
// font.capitalization : Font.Capitalize
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
|
|
@ -197,6 +197,9 @@ Item {
|
||||||
property string stringLow: qsTr("Low (x1 fee)") + translationManager.emptyString
|
property string stringLow: qsTr("Low (x1 fee)") + translationManager.emptyString
|
||||||
property string stringMedium: qsTr("Medium (x20 fee)") + translationManager.emptyString
|
property string stringMedium: qsTr("Medium (x20 fee)") + translationManager.emptyString
|
||||||
property string stringHigh: qsTr("High (x166 fee)") + translationManager.emptyString
|
property string stringHigh: qsTr("High (x166 fee)") + translationManager.emptyString
|
||||||
|
property string stringAll: qsTr("All") + translationManager.emptyString
|
||||||
|
property string stringSent: qsTr("Sent") + translationManager.emptyString
|
||||||
|
property string stringReceived: qsTr("Received") + translationManager.emptyString
|
||||||
|
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
|
|
|
@ -177,6 +177,13 @@ Item {
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: repeater
|
id: repeater
|
||||||
|
|
||||||
|
// Workaround for translations in listElements. All translated strings needs to be listed in this file.
|
||||||
|
property string stringCopy: qsTr("<b>Copy address to clipboard</b>") + translationManager.emptyString
|
||||||
|
property string stringSend: qsTr("<b>Send to same destination</b>") + translationManager.emptyString
|
||||||
|
property string stringFind: qsTr("<b>Find similar transactions</b>") + translationManager.emptyString
|
||||||
|
property string stringRemove: qsTr("<b>Remove from address book</b>") + translationManager.emptyString
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: delegate
|
id: delegate
|
||||||
property bool containsMouse: index === mouseArea.currentIndex
|
property bool containsMouse: index === mouseArea.currentIndex
|
||||||
|
@ -211,7 +218,7 @@ Item {
|
||||||
onContainsMouseChanged: {
|
onContainsMouseChanged: {
|
||||||
if(containsMouse) {
|
if(containsMouse) {
|
||||||
var pos = rootItem.mapFromItem(delegate, 30, -25)
|
var pos = rootItem.mapFromItem(delegate, 30, -25)
|
||||||
appWindow.toolTip.text = name
|
appWindow.toolTip.text = qsTr(name) + translationManager.emptyString
|
||||||
appWindow.toolTip.x = pos.x - appWindow.toolTip.width
|
appWindow.toolTip.x = pos.x - appWindow.toolTip.width
|
||||||
// if(appWindow.toolTip.height > 30)
|
// if(appWindow.toolTip.height > 30)
|
||||||
// pos.y -= appWindow.toolTip.height - 30
|
// pos.y -= appWindow.toolTip.height - 30
|
||||||
|
|
|
@ -60,6 +60,13 @@ Rectangle {
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: columnsRepeater
|
id: columnsRepeater
|
||||||
|
|
||||||
|
// Workaround for translations in listElements. All translated strings needs to be listed in this file.
|
||||||
|
property string stringPaymentID: qsTr("Payment ID") + translationManager.emptyString
|
||||||
|
property string stringDate: qsTr("Date") + translationManager.emptyString
|
||||||
|
property string stringBlockHeight: qsTr("Block height") + translationManager.emptyString
|
||||||
|
property string stringAmount: qsTr("Amount") + translationManager.emptyString
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: delegate
|
id: delegate
|
||||||
property bool desc: false
|
property bool desc: false
|
||||||
|
@ -81,7 +88,7 @@ Rectangle {
|
||||||
return "#FF4304"
|
return "#FF4304"
|
||||||
return index === header.activeSortColumn || delegateArea.containsMouse ? "#FF6C3C" : "#4A4949"
|
return index === header.activeSortColumn || delegateArea.containsMouse ? "#FF6C3C" : "#4A4949"
|
||||||
}
|
}
|
||||||
text: columnName
|
text: qsTr(columnName) + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -161,7 +161,8 @@ Rectangle {
|
||||||
/* main layout */
|
/* main layout */
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: mainLayout
|
id: mainLayout
|
||||||
anchors.margins: 40
|
anchors.margins: 17
|
||||||
|
anchors.topMargin: 40
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
@ -236,7 +237,6 @@ Rectangle {
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: generatePaymentId
|
id: generatePaymentId
|
||||||
width: 80
|
width: 80
|
||||||
fontSize: 14
|
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
|
|
|
@ -127,6 +127,7 @@ Rectangle {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Label {
|
Label {
|
||||||
id: manageDaemonLabel
|
id: manageDaemonLabel
|
||||||
|
Layout.fillWidth: true
|
||||||
color: "#4A4949"
|
color: "#4A4949"
|
||||||
text: qsTr("Manage daemon") + translationManager.emptyString
|
text: qsTr("Manage daemon") + translationManager.emptyString
|
||||||
fontSize: 16
|
fontSize: 16
|
||||||
|
@ -141,6 +142,9 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
id: daemonStatusRow
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
visible: true
|
visible: true
|
||||||
enabled: !appWindow.daemonRunning
|
enabled: !appWindow.daemonRunning
|
||||||
|
|
Loading…
Reference in a new issue