Easter Egg
This commit is contained in:
parent
4ec38cc345
commit
2a020c9d47
4 changed files with 78 additions and 34 deletions
|
@ -1,6 +1,8 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import Sailfish.Silica 1.0
|
import Sailfish.Silica 1.0
|
||||||
import Nemo.Configuration 1.0
|
import Nemo.Configuration 1.0
|
||||||
|
import Nemo.Notifications 1.0
|
||||||
|
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
id: page
|
id: page
|
||||||
|
@ -103,7 +105,7 @@ Page {
|
||||||
menu: ContextMenu {
|
menu: ContextMenu {
|
||||||
Repeater {
|
Repeater {
|
||||||
id: autoSyncIntervalRepeater
|
id: autoSyncIntervalRepeater
|
||||||
model: [0, 3, 5, 10, 20, 30, 60, 120, 300, 600]
|
model: [0, 3, 5, 10, 20, 30, 42, 60, 120, 300, 600]
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: modelData === 0 ?
|
text: modelData === 0 ?
|
||||||
qsTr("Disabled") : (qsTr("every") + " " +
|
qsTr("Disabled") : (qsTr("every") + " " +
|
||||||
|
@ -113,12 +115,28 @@ Page {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (modelData === appSettings.autoSyncInterval) {
|
if (modelData === appSettings.autoSyncInterval) {
|
||||||
autoSyncComboBox.currentIndex = index
|
autoSyncComboBox.currentIndex = index
|
||||||
|
theAnswer.enabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onCurrentIndexChanged: appSettings.autoSyncInterval = autoSyncIntervalRepeater.model[currentIndex]
|
onCurrentIndexChanged: {
|
||||||
|
appSettings.autoSyncInterval = autoSyncIntervalRepeater.model[currentIndex]
|
||||||
|
if (autoSyncIntervalRepeater.model[currentIndex] === 42 && theAnswer.enabled) {
|
||||||
|
theAnswer.publish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Notification {
|
||||||
|
id: theAnswer
|
||||||
|
property bool enabled: false
|
||||||
|
icon: "image://theme/icon-lock-information"
|
||||||
|
summary: qsTr("The Answer is 42")
|
||||||
|
body: qsTr("Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything!")
|
||||||
|
previewSummary: summary
|
||||||
|
category: "Easter Egg"
|
||||||
|
urgency: Notification.Low
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SectionHeader {
|
SectionHeader {
|
||||||
|
|
|
@ -406,6 +406,14 @@
|
||||||
<source>For interoperability with other apps such as Joplin</source>
|
<source>For interoperability with other apps such as Joplin</source>
|
||||||
<translation>Kann für die Interoperabilität mit anderen Apps (z.B. Joplin) nützlich sein</translation>
|
<translation>Kann für die Interoperabilität mit anderen Apps (z.B. Joplin) nützlich sein</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>The Answer is 42</source>
|
||||||
|
<translation>Die Antwort lautet 42</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything!</source>
|
||||||
|
<translation>Glückwunsch, du hast die Antwort auf die Frage nach dem Leben, dem Universum und dem ganzen Rest gefunden!</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>UnencryptedDialog</name>
|
<name>UnencryptedDialog</name>
|
||||||
|
|
|
@ -406,6 +406,14 @@
|
||||||
<source>unknown</source>
|
<source>unknown</source>
|
||||||
<translation>okänd</translation>
|
<translation>okänd</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>The Answer is 42</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>UnencryptedDialog</name>
|
<name>UnencryptedDialog</name>
|
||||||
|
|
|
@ -340,162 +340,172 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsPage</name>
|
<name>SettingsPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="15"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="17"/>
|
||||||
<source>About</source>
|
<source>About</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="26"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="28"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="30"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="32"/>
|
||||||
<source>Accounts</source>
|
<source>Accounts</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="35"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="37"/>
|
||||||
<source>No Nextcloud account yet</source>
|
<source>No Nextcloud account yet</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="53"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="55"/>
|
||||||
<source>Unnamed account</source>
|
<source>Unnamed account</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="54"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="56"/>
|
||||||
<source>unknown</source>
|
<source>unknown</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="70"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="72"/>
|
||||||
<source>Edit</source>
|
<source>Edit</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="76"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="78"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="78"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="80"/>
|
||||||
<source>Deleting account</source>
|
<source>Deleting account</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="88"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="90"/>
|
||||||
<source>Add account</source>
|
<source>Add account</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="97"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="99"/>
|
||||||
<source>Synchronization</source>
|
<source>Synchronization</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="101"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="103"/>
|
||||||
<source>Auto-Sync</source>
|
<source>Auto-Sync</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="102"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="104"/>
|
||||||
<source>Periodically pull notes from the server</source>
|
<source>Periodically pull notes from the server</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="109"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="111"/>
|
||||||
<source>Disabled</source>
|
<source>Disabled</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="109"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="111"/>
|
||||||
<source>every</source>
|
<source>every</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="111"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="113"/>
|
||||||
<source>Minutes</source>
|
<source>Minutes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="112"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="114"/>
|
||||||
<source>Seconds</source>
|
<source>Seconds</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="125"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="134"/>
|
||||||
|
<source>The Answer is 42</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/pages/SettingsPage.qml" line="135"/>
|
||||||
|
<source>Congratulation you found the Answer to the Ultimate Question of Life, The Universe, and Everything!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/pages/SettingsPage.qml" line="143"/>
|
||||||
<source>Appearance</source>
|
<source>Appearance</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="129"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="147"/>
|
||||||
<source>Last edited</source>
|
<source>Last edited</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="129"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="147"/>
|
||||||
<source>Category</source>
|
<source>Category</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="129"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="147"/>
|
||||||
<source>Title alphabetically</source>
|
<source>Title alphabetically</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="130"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="148"/>
|
||||||
<source>Sort notes by</source>
|
<source>Sort notes by</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="131"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="149"/>
|
||||||
<source>This will also change how the notes are grouped</source>
|
<source>This will also change how the notes are grouped</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="152"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="170"/>
|
||||||
<source>Show separator</source>
|
<source>Show separator</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="153"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="171"/>
|
||||||
<source>Show a separator line between the notes</source>
|
<source>Show a separator line between the notes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="163"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="181"/>
|
||||||
<source>lines</source>
|
<source>lines</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="164"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="182"/>
|
||||||
<source>Number of lines in the preview</source>
|
<source>Number of lines in the preview</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="169"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="187"/>
|
||||||
<source>Editing</source>
|
<source>Editing</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="172"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="190"/>
|
||||||
<source>Monospaced font</source>
|
<source>Monospaced font</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="173"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="191"/>
|
||||||
<source>Use a monospeced font to edit a note</source>
|
<source>Use a monospeced font to edit a note</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="178"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="196"/>
|
||||||
<source>Capital 'X' in checkboxes</source>
|
<source>Capital 'X' in checkboxes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/SettingsPage.qml" line="179"/>
|
<location filename="../qml/pages/SettingsPage.qml" line="197"/>
|
||||||
<source>For interoperability with other apps such as Joplin</source>
|
<source>For interoperability with other apps such as Joplin</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in a new issue