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 {
Label {
id: removeLabel
anchors.centerIn: parent
text: "Remove"
text: qsTr("Remove")
font.pointSize: 8
}
}
......@@ -79,7 +79,7 @@ GridView {
Label {
id: uninstallLabel
anchors.centerIn: parent
text: "Uninstall"
text: qsTr("Uninstall")
font.pointSize: 8
}
}
......
......@@ -170,7 +170,7 @@ Item {
}
style: ButtonStyle {
label: Label {
text: "Close\nAll"
text: qsTr("Close\nAll")
anchors.margins: 10
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
......@@ -184,7 +184,7 @@ Item {
// Empty switcher indicator
Label {
visible: switcherModel.itemCount === 0
text: "No apps open"
text: qsTr("No apps open")
width: parent.width
fontSizeMode: Text.HorizontalFit
}
......
......@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
Component {
CommonPanel {
Label {
text: "Battery level: " + batteryChargePercentage.value + "%"
text: qsTr("Battery level")+ ": " + batteryChargePercentage.value + "%"
font.pointSize: 8
}
}
......
......@@ -39,7 +39,7 @@ Rectangle {
color: "#313131"
opacity: 0.5
Button {
text: "Close"
text: qsTr("Close")
anchors.bottom: parent.bottom
anchors.right: parent.right
onClicked: {
......
......@@ -144,8 +144,8 @@ Item {
reorderItem = null
pager.interactive = true
gridview.onUninstall = false
deleter.remove.text = "Remove"
deleter.uninstall.text = "Uninstall"
deleter.remove.text = qsTr("Remove")
deleter.uninstall.text = qsTr("Uninstall")
reparent(gridview.contentItem)
......@@ -167,9 +167,9 @@ Item {
var delPos = deleter.remove.mapFromItem(launcherItem, width/2, height/2)
var isdel = deleter.childAt(delPos.x, delPos.y)
if (isdel === deleter.remove) {
deleter.remove.text = "Removing " + iconCaption
deleter.remove.text = qsTr("Removing") + " " + iconCaption
} else if (isdel === deleter.uninstall) {
deleter.uninstall.text = "Uninstalling " + iconCaption
deleter.uninstall.text = qsTr("Uninstalling") + " " + iconCaption
}
if (newIndex !== idx) {
reorderTimer.restart()
......
......@@ -73,7 +73,7 @@ Component {
}
Button {
id: pinenter
text: "OK"
text: qsTr("OK")
Layout.fillWidth: true
Layout.fillHeight: false
Layout.preferredHeight: 40
......@@ -84,7 +84,7 @@ Component {
}
Button {
id: clearpin
text: "Clear"
text: qsTr("Clear")
Layout.fillWidth: true
Layout.fillHeight: false
Layout.preferredHeight: 40
......@@ -132,7 +132,7 @@ Component {
}
Label {
visible: !needsPin
text: "No pin required!"
text: qsTr("No pin required!")
font.pointSize: 16
}
}
......
......@@ -79,7 +79,7 @@ Item {
anchors {
fill: parent
}
text: "Current mode: Charging only"
text: qsTr("Current mode: Charging only")
color: "white"
font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter
......@@ -95,7 +95,7 @@ Item {
left: parent.left
right: parent.right
}
text: "MTP Mode"
text: qsTr("MTP Mode")
color: "white"
font.pixelSize: 30
wrapMode: Text.WordWrap
......@@ -115,7 +115,7 @@ Item {
left: parent.left
right: parent.right
}
text: "Mass Storage Mode"
text: qsTr("Mass Storage Mode")
color: "white"
font.pixelSize: 30
wrapMode: Text.WordWrap
......@@ -135,7 +135,7 @@ Item {
left: parent.left
right: parent.right
}
text: "Developer Mode"
text: qsTr("Developer Mode")
color: "white"
font.pixelSize: 30
wrapMode: Text.WordWrap
......
......@@ -111,4 +111,7 @@ OTHER_FILES += qml/*.qml \
qml/GlacierRotation.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