summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/ThemeTest.qml
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-05-03 21:24:00 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-03 12:59:16 -0700
commit502be2a0f16474ed7520fb87071573e51f95a15a (patch)
treefe47196ca3a50b8ac66bc84976289d912390fd91 /mobile-widgets/qml/ThemeTest.qml
parent70e3ec9e90e33a2f11e500e1a1c807ab58b4ebe1 (diff)
downloadsubsurface-502be2a0f16474ed7520fb87071573e51f95a15a.tar.gz
Mark strings in qml files for translation
I did this semi-automatically: I used the script from the previous patch and then did some manual corrections. This marks only title: and text: tags, there might be others Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/ThemeTest.qml')
-rw-r--r--mobile-widgets/qml/ThemeTest.qml30
1 files changed, 15 insertions, 15 deletions
diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml
index 292d2becc..e72a2ca37 100644
--- a/mobile-widgets/qml/ThemeTest.qml
+++ b/mobile-widgets/qml/ThemeTest.qml
@@ -10,7 +10,7 @@ Kirigami.Page {
/* this can be done by hitting the back key
contextualActions: [
Action {
- text: "Close Theme info"
+ text: qsTr("Close Theme info")
iconName: "dialog-cancel"
onTriggered: {
stackView.pop()
@@ -26,11 +26,11 @@ Kirigami.Page {
Kirigami.Heading {
Layout.columnSpan: 2
- text: "Theme Information"
+ text: qsTr("Theme Information")
}
Kirigami.Heading {
- text: "Screen"
+ text: qsTr("Screen")
Layout.columnSpan: 2
level: 3
}
@@ -39,83 +39,83 @@ Kirigami.Page {
}
Kirigami.Label {
- text: "Geometry (pixels):"
+ text: qsTr("Geometry (pixels):")
}
Kirigami.Label {
text: rootItem.width + "x" + rootItem.height
}
Kirigami.Label {
- text: "Geometry (gridUnits):"
+ text: qsTr("Geometry (gridUnits):")
}
Kirigami.Label {
text: Math.round(rootItem.width / Kirigami.Units.gridUnit) + "x" + Math.round(rootItem.height / Kirigami.Units.gridUnit)
}
Kirigami.Label {
- text: "Units.gridUnit:"
+ text: qsTr("Units.gridUnit:")
}
Kirigami.Label {
text: Kirigami.Units.gridUnit
}
Kirigami.Label {
- text: "Units.devicePixelRatio:"
+ text: qsTr("Units.devicePixelRatio:")
}
Kirigami.Label {
text: Screen.devicePixelRatio
}
Kirigami.Heading {
- text: "Font Metrics"
+ text: qsTr("Font Metrics")
level: 3
Layout.columnSpan: 2
}
Kirigami.Label {
- text: "FontMetrics pointSize:"
+ text: qsTr("FontMetrics pointSize:")
}
Kirigami.Label {
text: fm.font.pointSize
}
Kirigami.Label {
- text: "FontMetrics pixelSize:"
+ text: qsTr("FontMetrics pixelSize:")
}
Kirigami.Label {
text: fm.height
}
Kirigami.Label {
- text: "FontMetrics devicePixelRatio:"
+ text: qsTr("FontMetrics devicePixelRatio:")
}
Kirigami.Label {
text: fm.height / fm.font.pointSize
}
Kirigami.Label {
- text: "Text item pixelSize:"
+ text: qsTr("Text item pixelSize:")
}
Text {
text: font.pixelSize
}
Kirigami.Label {
- text: "Text item pointSize:"
+ text: qsTr("Text item pointSize:")
}
Text {
text: font.pointSize
}
Kirigami.Label {
- text: "Pixel density:"
+ text: qsTr("Pixel density:")
}
Text {
text: Screen.pixelDensity
}
Kirigami.Label {
- text: "Height of default font:"
+ text: qsTr("Height of default font:")
}
Text {
text: font.pixelSize / Screen.pixelDensity + "mm"