Commit dd2ad3db authored by SergeyChupligin's avatar SergeyChupligin Committed by Sergey Chupligin

[packaging] Internationalization

parent d0e6d6e7
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>AppLauncher</name>
<message>
<location filename="../qml/AppLauncher.qml" line="67"/>
<source>Remove</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/AppLauncher.qml" line="82"/>
<source>Uninstall</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>AppSwitcher</name>
<message>
<location filename="../qml/AppSwitcher.qml" line="173"/>
<source>Close
All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/AppSwitcher.qml" line="187"/>
<source>No apps open</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BatteryPanel</name>
<message>
<location filename="../qml/BatteryPanel.qml" line="39"/>
<source>Battery level</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CommonPanel</name>
<message>
<location filename="../qml/CommonPanel.qml" line="42"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>LauncherItemDelegate</name>
<message>
<location filename="../qml/LauncherItemDelegate.qml" line="147"/>
<source>Remove</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/LauncherItemDelegate.qml" line="148"/>
<source>Uninstall</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/LauncherItemDelegate.qml" line="170"/>
<source>Removing</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/LauncherItemDelegate.qml" line="172"/>
<source>Uninstalling</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SimPanel</name>
<message>
<location filename="../qml/SimPanel.qml" line="76"/>
<source>OK</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SimPanel.qml" line="87"/>
<source>Clear</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SimPanel.qml" line="135"/>
<source>No pin required!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>USBModeSelector</name>
<message>
<location filename="../qml/USBModeSelector.qml" line="82"/>
<source>Current mode: Charging only</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/USBModeSelector.qml" line="98"/>
<source>MTP Mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/USBModeSelector.qml" line="118"/>
<source>Mass Storage Mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/USBModeSelector.qml" line="138"/>
<source>Developer Mode</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
...@@ -64,7 +64,7 @@ GridView { ...@@ -64,7 +64,7 @@ GridView {
Label { Label {
id: removeLabel id: removeLabel
anchors.centerIn: parent anchors.centerIn: parent
text: "Remove" text: qsTr("Remove")
font.pointSize: 8 font.pointSize: 8
} }
} }
...@@ -79,7 +79,7 @@ GridView { ...@@ -79,7 +79,7 @@ GridView {
Label { Label {
id: uninstallLabel id: uninstallLabel
anchors.centerIn: parent anchors.centerIn: parent
text: "Uninstall" text: qsTr("Uninstall")
font.pointSize: 8 font.pointSize: 8
} }
} }
......
...@@ -170,7 +170,7 @@ Item { ...@@ -170,7 +170,7 @@ Item {
} }
style: ButtonStyle { style: ButtonStyle {
label: Label { label: Label {
text: "Close\nAll" text: qsTr("Close\nAll")
anchors.margins: 10 anchors.margins: 10
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
...@@ -184,7 +184,7 @@ Item { ...@@ -184,7 +184,7 @@ Item {
// Empty switcher indicator // Empty switcher indicator
Label { Label {
visible: switcherModel.itemCount === 0 visible: switcherModel.itemCount === 0
text: "No apps open" text: qsTr("No apps open")
width: parent.width width: parent.width
fontSizeMode: Text.HorizontalFit fontSizeMode: Text.HorizontalFit
} }
......
...@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0 ...@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
Component { Component {
CommonPanel { CommonPanel {
Label { Label {
text: "Battery level: " + batteryChargePercentage.value + "%" text: qsTr("Battery level")+ ": " + batteryChargePercentage.value + "%"
font.pointSize: 8 font.pointSize: 8
} }
} }
......
...@@ -39,7 +39,7 @@ Rectangle { ...@@ -39,7 +39,7 @@ Rectangle {
color: "#313131" color: "#313131"
opacity: 0.5 opacity: 0.5
Button { Button {
text: "Close" text: qsTr("Close")
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
onClicked: { onClicked: {
......
...@@ -144,8 +144,8 @@ Item { ...@@ -144,8 +144,8 @@ Item {
reorderItem = null reorderItem = null
pager.interactive = true pager.interactive = true
gridview.onUninstall = false gridview.onUninstall = false
deleter.remove.text = "Remove" deleter.remove.text = qsTr("Remove")
deleter.uninstall.text = "Uninstall" deleter.uninstall.text = qsTr("Uninstall")
reparent(gridview.contentItem) reparent(gridview.contentItem)
...@@ -167,9 +167,9 @@ Item { ...@@ -167,9 +167,9 @@ Item {
var delPos = deleter.remove.mapFromItem(launcherItem, width/2, height/2) var delPos = deleter.remove.mapFromItem(launcherItem, width/2, height/2)
var isdel = deleter.childAt(delPos.x, delPos.y) var isdel = deleter.childAt(delPos.x, delPos.y)
if (isdel === deleter.remove) { if (isdel === deleter.remove) {
deleter.remove.text = "Removing " + iconCaption deleter.remove.text = qsTr("Removing") + " " + iconCaption
} else if (isdel === deleter.uninstall) { } else if (isdel === deleter.uninstall) {
deleter.uninstall.text = "Uninstalling " + iconCaption deleter.uninstall.text = qsTr("Uninstalling") + " " + iconCaption
} }
if (newIndex !== idx) { if (newIndex !== idx) {
reorderTimer.restart() reorderTimer.restart()
......
...@@ -73,7 +73,7 @@ Component { ...@@ -73,7 +73,7 @@ Component {
} }
Button { Button {
id: pinenter id: pinenter
text: "OK" text: qsTr("OK")
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: false Layout.fillHeight: false
Layout.preferredHeight: 40 Layout.preferredHeight: 40
...@@ -84,7 +84,7 @@ Component { ...@@ -84,7 +84,7 @@ Component {
} }
Button { Button {
id: clearpin id: clearpin
text: "Clear" text: qsTr("Clear")
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: false Layout.fillHeight: false
Layout.preferredHeight: 40 Layout.preferredHeight: 40
...@@ -132,7 +132,7 @@ Component { ...@@ -132,7 +132,7 @@ Component {
} }
Label { Label {
visible: !needsPin visible: !needsPin
text: "No pin required!" text: qsTr("No pin required!")
font.pointSize: 16 font.pointSize: 16
} }
} }
......
...@@ -79,7 +79,7 @@ Item { ...@@ -79,7 +79,7 @@ Item {
anchors { anchors {
fill: parent fill: parent
} }
text: "Current mode: Charging only" text: qsTr("Current mode: Charging only")
color: "white" color: "white"
font.pixelSize: 30 font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
...@@ -95,7 +95,7 @@ Item { ...@@ -95,7 +95,7 @@ Item {
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
text: "MTP Mode" text: qsTr("MTP Mode")
color: "white" color: "white"
font.pixelSize: 30 font.pixelSize: 30
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
...@@ -115,7 +115,7 @@ Item { ...@@ -115,7 +115,7 @@ Item {
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
text: "Mass Storage Mode" text: qsTr("Mass Storage Mode")
color: "white" color: "white"
font.pixelSize: 30 font.pixelSize: 30
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
...@@ -135,7 +135,7 @@ Item { ...@@ -135,7 +135,7 @@ Item {
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
text: "Developer Mode" text: qsTr("Developer Mode")
color: "white" color: "white"
font.pixelSize: 30 font.pixelSize: 30
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
......
...@@ -111,4 +111,7 @@ OTHER_FILES += qml/*.qml \ ...@@ -111,4 +111,7 @@ OTHER_FILES += qml/*.qml \
qml/GlacierRotation.qml \ qml/GlacierRotation.qml \
qml/DeviceLock.qml qml/DeviceLock.qml
TRANSLATIONS += i18n/glacer-home.ts
DISTFILES += \
i18n/glacer-home.ts
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment