Commit 784ed913 authored by kempe's avatar kempe

[FEATURE] Add translation credit page

parent 26907c28
......@@ -75,7 +75,10 @@ DISTFILES += \
qml/components/audioplayer/DockedAudioPlayerSmall.qml \
qml/components/audioplayer/DockedAudioPlayerSmallForm.ui.qml \
qml/pages/AboutPageForm.ui.qml \
qml/pages/AboutPage.qml
qml/pages/AboutPage.qml \
qml/components/listmodels/TranslationCreditsListModel.qml \
qml/pages/TranslationCreditsPage.qml \
qml/pages/TranslationCreditsPageForm.qml
OTHER_FILES += \
rpm/harbour-received.changes.in \
......
import QtQuick 2.6
import Sailfish.Silica 1.0
import "../components/listmodels/"
ListItem {
contentHeight: column.height + Theme.paddingLarge
anchors {
left: parent.left
leftMargin: Theme.horizontalPageMargin
right: parent.right
rightMargin: Theme.horizontalPageMargin
}
Column {
id: column
width: parent.width
anchors.verticalCenter: parent.verticalCenter
Label {
anchors.horizontalCenter: parent.horizontalCenter
color: Theme.highlightColor
font.pixelSize: Theme.fontSizeLarge
text: language
}
Repeater {
model: translators
Label {
anchors.horizontalCenter: parent.horizontalCenter
color: Theme.secondaryColor
font.pixelSize: Theme.fontSizeExtraSmall
text: name
}
}
}
}
import QtQuick 2.0
ListModel {
id: model
ListElement {
language: qsTr("French")
translators: [
ListElement { name: "lutinotmalin" }
]
}
ListElement {
language: qsTr("Russian")
translators: [
ListElement { name: "Вячеслав Диконов" }
]
}
ListElement {
language: qsTr("Spanish")
translators: [
ListElement { name: "Carmen F. B" }
]
}
ListElement {
language: qsTr("Swedish")
translators: [
ListElement { name: "Kempe" }
]
}
}
......@@ -4,4 +4,5 @@ import Sailfish.Silica 1.0
AboutPageForm {
issueAction.onClicked: Qt.openUrlExternally("https://gitlab.com/sailfish-apps/Received/issues/new")
sourceAction.onClicked: Qt.openUrlExternally("https://gitlab.com/sailfish-apps/Received/")
translationAction.onClicked: pageStack.push(Qt.resolvedUrl("TranslationCreditsPage.qml"));
}
......@@ -4,6 +4,7 @@ import Sailfish.Silica 1.0
Page {
id: aboutPage
property alias translationAction: translationAction
property alias issueAction: issueAction
property alias sourceAction: sourceAction
......@@ -48,6 +49,12 @@ Page {
ButtonLayout {
width: parent.width
Button {
id: translationAction
text: qsTr("Translations")
ButtonLayout.newLine: true
}
Button {
id: issueAction
text: qsTr("Report an Issue")
......
import QtQuick 2.6
import Sailfish.Silica 1.0
TranslationCreditsPageForm {
}
import QtQuick 2.6
import Sailfish.Silica 1.0
import "../components"
import "../components/listmodels/"
Page {
id: page
SilicaListView {
id: listView
VerticalScrollDecorator { flickable: listView }
anchors.fill: parent
header: Column {
PageHeader {
title: qsTr("Translations")
width: page.width
}
}
model: TranslationCreditsListModel {}
delegate: TranslationCreditsDeligate {}
}
}
......@@ -19,6 +19,10 @@
<source>Version: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ApiLanguageListModel</name>
......@@ -290,6 +294,32 @@
<translation>De</translation>
</message>
</context>
<context>
<name>TranslationCreditsListModel</name>
<message>
<source>French</source>
<translation type="unfinished">Francés</translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Spanish</source>
<translation type="unfinished">Español</translation>
</message>
<message>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsPageForm.ui</name>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Utils</name>
<message>
......
......@@ -19,6 +19,10 @@
<source>Version: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ApiLanguageListModel</name>
......@@ -290,6 +294,32 @@
<translation>origine</translation>
</message>
</context>
<context>
<name>TranslationCreditsListModel</name>
<message>
<source>French</source>
<translation type="unfinished">Français</translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Spanish</source>
<translation type="unfinished">Espagnol</translation>
</message>
<message>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsPageForm.ui</name>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Utils</name>
<message>
......
......@@ -19,6 +19,10 @@
<source>Version: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ApiLanguageListModel</name>
......@@ -290,6 +294,32 @@
<translation>Из</translation>
</message>
</context>
<context>
<name>TranslationCreditsListModel</name>
<message>
<source>French</source>
<translation type="unfinished">Французский</translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Spanish</source>
<translation type="unfinished">Испанский</translation>
</message>
<message>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsPageForm.ui</name>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Utils</name>
<message>
......
......@@ -19,6 +19,10 @@
<source>Version: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ApiLanguageListModel</name>
......@@ -290,6 +294,32 @@
<translation>Från</translation>
</message>
</context>
<context>
<name>TranslationCreditsListModel</name>
<message>
<source>French</source>
<translation type="unfinished">Frankrike</translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Spanish</source>
<translation type="unfinished">Spanien</translation>
</message>
<message>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsPageForm.ui</name>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Utils</name>
<message>
......
......@@ -19,6 +19,10 @@
<source>Version: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ApiLanguageListModel</name>
......@@ -290,6 +294,32 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsListModel</name>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Spanish</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TranslationCreditsPageForm.ui</name>
<message>
<source>Translations</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Utils</name>
<message>
......
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