Only small changes

This commit is contained in:
Scharel Clemens 2020-08-22 11:28:31 +02:00
parent f3b5bbd30d
commit 2a47f51366
7 changed files with 41 additions and 24 deletions

View file

@ -26,6 +26,7 @@ SOURCES += src/harbour-nextcloudnotes.cpp \
src/notesmodel.cpp
DISTFILES += qml/harbour-nextcloudnotes.qml \
icons/icon-launcher-nextcloudnotes.svg \
qml/cover/CoverPage.qml \
qml/img/nextcloud-logo-dark.png \
qml/img/nextcloud-logo-light.png \

View file

@ -17,6 +17,10 @@ Page {
title: qsTr("About")
}
SectionHeader {
text: qsTr("Debug")
visible: debug
}
Label {
id: debugModeLabel
x: Theme.horizontalPageMargin
@ -32,7 +36,9 @@ Page {
SectionHeader {
text: "Nextcloud " + qsTr("Notes") + " v" + Qt.application.version
}
Icon {
source: Qt.resolvedUrl("../../icons/icon-launcher-nextcloudnotes.svg")
}
LinkedLabel {
id: nextcloudnotesLabel
x: Theme.horizontalPageMargin
@ -43,7 +49,6 @@ Page {
//: Post-Showdown Github link
qsTr(".") + "</p>"
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("MIT License")
@ -53,7 +58,6 @@ Page {
SectionHeader {
text: "ShowdownJS"
}
LinkedLabel {
id: showdownLabel
x: Theme.horizontalPageMargin
@ -64,7 +68,6 @@ Page {
qsTr("to convert Markdown to HTML.") + "</p>" +
"<p> " + qsTr("Showdown 1.x is released under GPL 2.0.") + "</p>"
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("GPL 2.0 License")

View file

@ -143,7 +143,7 @@ void NotesModel::setAccount(const QString& account) {
}
endRemoveRows();
beginInsertRows(QModelIndex(), 0, rowCount() - 1);
qDebug() << rowCount() << " notes in account";
qDebug() << rowCount() << "local notes in account";
endInsertRows();
}
/*

View file

@ -59,6 +59,10 @@
<source>This app is released under the MIT license.</source>
<translation>Diese App wurde unter der MIT Lizenz veröffentlicht.</translation>
</message>
<message>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CoverPage</name>

View file

@ -59,6 +59,10 @@
<source>This app is released under the MIT license.</source>
<translation>Denna app är släppt under MIT-licensen.</translation>
</message>
<message>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CoverPage</name>

View file

@ -9,66 +9,71 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="25"/>
<location filename="../qml/pages/AboutPage.qml" line="21"/>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="29"/>
<source>The app is running in DEBUG mode!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="33"/>
<location filename="../qml/pages/AboutPage.qml" line="37"/>
<source>Notes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="40"/>
<location filename="../qml/pages/AboutPage.qml" line="46"/>
<source>This app is released under the MIT license.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="42"/>
<location filename="../qml/pages/AboutPage.qml" line="48"/>
<source>The source code is available on</source>
<extracomment>Pre-Showdown Github link</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="44"/>
<location filename="../qml/pages/AboutPage.qml" line="50"/>
<source>.</source>
<extracomment>Post-Showdown Github link</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="49"/>
<location filename="../qml/pages/AboutPage.qml" line="54"/>
<source>MIT License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="62"/>
<location filename="../qml/pages/AboutPage.qml" line="66"/>
<source>This app uses</source>
<extracomment>Pre-Showdown Github link</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="64"/>
<location filename="../qml/pages/AboutPage.qml" line="68"/>
<source>to convert Markdown to HTML.</source>
<extracomment>Post-Showdown Github link</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="65"/>
<location filename="../qml/pages/AboutPage.qml" line="69"/>
<source>Showdown 1.x is released under GPL 2.0.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="70"/>
<location filename="../qml/pages/AboutPage.qml" line="73"/>
<source>GPL 2.0 License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="77"/>
<location filename="../qml/pages/AboutPage.qml" line="80"/>
<source>Nextcloud Notes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="78"/>
<location filename="../qml/pages/AboutPage.qml" line="81"/>
<source>for Sailfish OS</source>
<translation type="unfinished"></translation>
</message>
@ -316,32 +321,32 @@
<context>
<name>NotesApi</name>
<message>
<location filename="../src/notesapi.cpp" line="327"/>
<location filename="../src/notesapi.cpp" line="330"/>
<source>No error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/notesapi.cpp" line="330"/>
<location filename="../src/notesapi.cpp" line="333"/>
<source>No network connection available</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/notesapi.cpp" line="333"/>
<location filename="../src/notesapi.cpp" line="336"/>
<source>Failed to communicate with the Nextcloud server</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/notesapi.cpp" line="336"/>
<location filename="../src/notesapi.cpp" line="339"/>
<source>An error occured while establishing an encrypted connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/notesapi.cpp" line="339"/>
<location filename="../src/notesapi.cpp" line="342"/>
<source>Could not authenticate to the Nextcloud instance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/notesapi.cpp" line="342"/>
<location filename="../src/notesapi.cpp" line="345"/>
<source>Unknown error</source>
<translation type="unfinished"></translation>
</message>