dynamic translation support. closes #24

This commit is contained in:
Ilya Kitaev
2016-07-20 22:28:11 +03:00
parent 39b88daf32
commit 32ebf180ac
34 changed files with 837 additions and 314 deletions

View File

@@ -44,7 +44,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 14
color: "#545454"
text: qsTr("No more results")
text: qsTr("No more results") + translationManager.emptyString
}
}
@@ -103,7 +103,7 @@ ListView {
font.pixelSize: 12
font.letterSpacing: -1
color: "#535353"
text: qsTr("Payment ID:")
text: qsTr("Payment ID:") + + translationManager.emptyString
}
Text {

View File

@@ -44,7 +44,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 14
color: "#545454"
text: qsTr("No more results")
text: qsTr("No more results") + translationManager.emptyString
}
}
@@ -134,7 +134,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Date")
text: qsTr("Date") + translationManager.emptyString
}
Row {
@@ -169,7 +169,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Balance")
text: qsTr("Balance") + translationManager.emptyString
}
Text {
@@ -190,7 +190,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Amount")
text: qsTr("Amount") + translationManager.emptyString
}
Row {

View File

@@ -44,7 +44,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 14
color: "#545454"
text: qsTr("No more results")
text: qsTr("No more results") + translationManager.emptyString
}
}
@@ -126,7 +126,7 @@ ListView {
font.pixelSize: 12
font.letterSpacing: -1
color: "#535353"
text: paymentId !== "" ? qsTr("Payment ID:") : ""
text: paymentId !== "" ? qsTr("Payment ID:") + translationManager.emptyString : ""
}
Text {
@@ -164,7 +164,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Date")
text: qsTr("Date") + translationManager.emptyString
}
Row {
@@ -199,7 +199,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Balance")
text: qsTr("Balance") + translationManager.emptyString
}
Text {
@@ -220,7 +220,7 @@ ListView {
font.family: "Arial"
font.pixelSize: 12
color: "#545454"
text: qsTr("Amount")
text: qsTr("Amount") + translationManager.emptyString
}
Row {

View File

@@ -63,7 +63,7 @@ Row {
font.family: "Arial"
font.pixelSize: 18
color: item.connected ? "#FF6C3B" : "#AAAAAA"
text: item.connected ? qsTr("Connected") : qsTr("Disconnected")
text: (item.connected ? qsTr("Connected") : qsTr("Disconnected")) + translationManager.emptyString
}
}
}

View File

@@ -99,7 +99,7 @@ Item {
font.bold: true
color: "#000000"
x: row.x + (row.positions[0] !== undefined ? row.positions[0].currentX - 3 : 0) - width
text: qsTr("LOW")
text: qsTr("LOW") + translationManager.emptyString
}
Text {
@@ -110,7 +110,7 @@ Item {
font.bold: true
color: "#000000"
x: row.x + (row.positions[4] !== undefined ? row.positions[4].currentX - 3 : 0) - width
text: qsTr("MEDIUM")
text: qsTr("MEDIUM") + translationManager.emptyString
}
Text {
@@ -121,7 +121,7 @@ Item {
font.bold: true
color: "#000000"
x: row.x + (row.positions[13] !== undefined ? row.positions[13].currentX - 3 : 0) - width
text: qsTr("HIGH")
text: qsTr("HIGH") + translationManager.emptyString
}
MouseArea {

View File

@@ -66,7 +66,7 @@ Item {
anchors.leftMargin: 45
font.pixelSize: 18
verticalAlignment: TextInput.AlignVCenter
placeholderText: qsTr("Search by...")
placeholderText: qsTr("Search by...") + translationManager.emptyString
}
Item {

View File

@@ -52,9 +52,9 @@ Item {
font.pixelSize: 12
color: "#4A4949"
text: {
if(currentIndex === 0) return qsTr("LOW")
if(currentIndex === 3) return qsTr("MEDIUM")
if(currentIndex === 13) return qsTr("HIGH")
if(currentIndex === 0) return qsTr("LOW") + translationManager.emptyString
if(currentIndex === 3) return qsTr("MEDIUM") + translationManager.emptyString
if(currentIndex === 13) return qsTr("HIGH") + translationManager.emptyString
return ""
}
}

View File

@@ -35,7 +35,7 @@ Rectangle {
color: "#000000"
y: -height
property int mouseX: 0
property string title: "Monero - Donations"
property string title: qsTr("Monero - Donations") + translationManager.emptyString
property bool containsMouse: false
property alias maximizeButtonVisible: maximizeButton.visible
property alias basicButtonVisible: goToBasicVersionButton.visible