Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization #3

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions glacier-dialer.pro
Expand Up @@ -47,3 +47,5 @@ systemd_ui_prestart_service.path = $${INSTALL_ROOT}/usr/lib/systemd/user
systemd_ui_prestart_service.files = voicecall-ui-prestart.service

INSTALLS += target desktop qml pages systemd_dbus_service systemd_ui_prestart_service

TRANSLATIONS += i18n/glacier-dialer.ts
74 changes: 74 additions & 0 deletions i18n/glacier-dialer.ts
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>CallLogPage</name>
<message>
<location filename="../qml/pages/CallLogPage.qml" line="32"/>
<source>Call log</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CallView</name>
<message>
<location filename="../qml/pages/CallView.qml" line="31"/>
<source>Call</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/CallView.qml" line="94"/>
<source>Answer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/CallView.qml" line="101"/>
<source>Hang up</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ContactDetails</name>
<message>
<location filename="../qml/pages/ContactDetails.qml" line="54"/>
<source>First name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/ContactDetails.qml" line="60"/>
<source>Last name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/ContactDetails.qml" line="66"/>
<source>Phone number</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DialerPage</name>
<message>
<location filename="../qml/pages/DialerPage.qml" line="88"/>
<source>Call</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>FirstPage</name>
<message>
<location filename="../qml/pages/FirstPage.qml" line="33"/>
<source>Glacier Dialer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/FirstPage.qml" line="63"/>
<source>Edit speed dial</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/FirstPage.qml" line="70"/>
<source>Mark all as read</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
2 changes: 1 addition & 1 deletion qml/pages/CallLogPage.qml
Expand Up @@ -29,7 +29,7 @@ Page {
id: callLogPage
headerTools: HeaderToolsLayout {
id: tools
title: "Call log"
title: qsTr("Call log")
showBackButton: true;
}

Expand Down
6 changes: 3 additions & 3 deletions qml/pages/CallView.qml
Expand Up @@ -28,7 +28,7 @@ Page {
id: call
headerTools: HeaderToolsLayout {
id: tools
title: "Call"
title: qsTr("Call")
}
state: telephone.activeVoiceCall ? telephone.activeVoiceCall.statusText : 'disconnected'
states: [
Expand Down Expand Up @@ -91,14 +91,14 @@ Page {
spacing: 40
anchors.horizontalCenter: parent.horizontalCenter
Button {
text: "Answer"
text: qsTr("Answer")
Layout.fillWidth: true
Layout.fillHeight: false
onClicked: if (telephone.activeVoiceCall) telephone.activeVoiceCall.answer()
visible: call.state == "incoming"
}
Button {
text: "Hang up"
text: qsTr("Hang up")
Layout.fillWidth: true
Layout.fillHeight: false
onClicked: {
Expand Down
6 changes: 3 additions & 3 deletions qml/pages/ContactDetails.qml
Expand Up @@ -51,19 +51,19 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter
}
Label {
text: "First name"
text: qsTr("First name")
}
TextField {
text: person.firstName
}
Label {
text: "Last name"
text: qsTr("Last name")
}
TextField {
text: person.lastName
}
Label {
text: "Phone number"
text: qsTr("Phone number")
}
TextField {
text: person.phoneDetails[0].normalizedNumber
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/DialerPage.qml
Expand Up @@ -85,7 +85,7 @@ Page {
}
Text {
color: "white"
text: "Call"
text: qsTr("Call")
font.pointSize: 32
anchors.right: parent.right
anchors.bottom: parent.bottom
Expand Down
6 changes: 3 additions & 3 deletions qml/pages/FirstPage.qml
Expand Up @@ -30,7 +30,7 @@ Page {
id: first
headerTools: HeaderToolsLayout {
id: tools
title: "Glacier Dialer"
title: qsTr("Glacier Dialer")
tools: [
ToolButton {
iconSource: "image://theme/icon-m-toolbar-callhistory-white"
Expand Down Expand Up @@ -60,14 +60,14 @@ Page {
drawerLevels: [
Button {
visible: dialer_page.visible
text: "Edit speed dial"
text: qsTr("Edit speed dial")
onClicked: {
main.speedDialEditor = true
}
},
Button {
visible: call_log_page.visible
text: "Mark all as read"
text: qsTr("Mark all as read")
onClicked: {
commCallModel.markAllRead()
}
Expand Down