Minor fixes

- Translations update
- Cover page fix for the SailfishX
- Copy URL implemented on teh browser view #24
This commit is contained in:
Dusko Angirevic 2017-10-19 11:44:53 +02:00
parent 751a6e7759
commit a467ccf681
16 changed files with 169 additions and 30 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -48,10 +48,14 @@ CONFIG += sailfishapp_i18n
# following TRANSLATIONS line. And also do not forget to # following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file. # modify the localized app name in the the .desktop file.
TRANSLATIONS += \ TRANSLATIONS += \
translations/harbour-tooter-de.ts \
translations/harbour-tooter-el.ts \
translations/harbour-tooter-en.ts \
translations/harbour-tooter-es.ts \ translations/harbour-tooter-es.ts \
translations/harbour-tooter-fr.ts \ translations/harbour-tooter-fr.ts \
translations/harbour-tooter-nl.ts \ translations/harbour-tooter-nl.ts \
translations/harbour-tooter-oc.ts translations/harbour-tooter-oc.ts \
translations/harbour-tooter-sr.ts
DISTFILES += \ DISTFILES += \
qml/lib/API.js \ qml/lib/API.js \

View file

@ -30,6 +30,7 @@
import QtQuick 2.0 import QtQuick 2.0
import Sailfish.Silica 1.0 import Sailfish.Silica 1.0
import QtGraphicalEffects 1.0
import "../lib/API.js" as Logic import "../lib/API.js" as Logic
CoverBackground { CoverBackground {
@ -50,7 +51,12 @@ CoverBackground {
anchors { anchors {
bottom : parent.bottom bottom : parent.bottom
left: parent.left left: parent.left
right: parent.right
top: parent.top
} }
horizontalAlignment: Image.AlignLeft
verticalAlignment: Image.AlignBottom
fillMode: Image.PreserveAspectFit
source: "../images/tooter.svg" source: "../images/tooter.svg"
} }

View file

@ -167,11 +167,13 @@ Page {
VerticalScrollDecorator {} VerticalScrollDecorator {}
PullDownMenu { PullDownMenu {
id: pullDownMenu2 id: pullDownMenu2
MenuItem {
text: qsTr("Copy URL")
onClicked: Clipboard.text = href
}
MenuItem { MenuItem {
text: qsTr("Open in Browser") text: qsTr("Open in Browser")
onClicked: { onClicked: Qt.openUrlExternally(href);
Qt.openUrlExternally(href);
}
} }
MenuItem { MenuItem {
text: screenReaderMode ? qsTr("Web mode") : qsTr("Reading mode") text: screenReaderMode ? qsTr("Web mode") : qsTr("Reading mode")

View file

@ -2,13 +2,21 @@
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1"> <TS version="2.1">
<context> <context>
<name></name> <name>API</name>
<message id="Logout"> <message>
<source></source> <source>favourited</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message id="Login"> <message>
<source></source> <source>followed you</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>boosted</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>said</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -26,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>
@ -49,11 +61,34 @@
<source>direct</source> <source>direct</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Conversation</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Emojis</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Tap to insert</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>CoverPage</name> <name>ImageUploader</name>
<message> <message>
<source>Tooter</source> <source>The file %1 does not exists</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>LoginPage</name>
<message>
<source>Login</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -102,19 +137,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>boosted</source> <source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>favourited</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>followed you</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>said</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
@ -169,6 +192,53 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>Settings</name>
<message>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Add Account</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Deauthorize this app and remove your account</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Authorize this app to use your Mastodon account in your behalf</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Load images in toots</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disable this option if you want to preserve your data connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Translate</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Use Transifex to help with app translation to your language</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Credits</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>UI/UX design and development</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>Toot</name> <name>Toot</name>
<message> <message>
@ -184,4 +254,23 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>VisualContainer</name>
<message>
<source>Unboost</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Boost</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unfavorite</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Favorite</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS> </TS>

View file

@ -1,4 +1,6 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el" version="2.1"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="el">
<context> <context>
<name>API</name> <name>API</name>
<message> <message>
@ -32,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Λειτουργία ανάγνωσης</translation> <translation>Λειτουργία ανάγνωσης</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>
@ -267,4 +273,4 @@
<translation>Σελιδοδείκτης</translation> <translation>Σελιδοδείκτης</translation>
</message> </message>
</context> </context>
</TS> </TS>

View file

@ -1,4 +1,6 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="en" version="2.1"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en">
<context> <context>
<name>API</name> <name>API</name>
<message> <message>
@ -32,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Reading mode</translation> <translation>Reading mode</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation>Copy URL</translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>
@ -267,4 +273,4 @@
<translation>Favorite</translation> <translation>Favorite</translation>
</message> </message>
</context> </context>
</TS> </TS>

View file

@ -34,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Modo lectura</translation> <translation>Modo lectura</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>

View file

@ -34,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Mode lecture</translation> <translation>Mode lecture</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>

View file

@ -34,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Leesmodus</translation> <translation>Leesmodus</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>

View file

@ -34,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Mòde lectura</translation> <translation>Mòde lectura</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>

View file

@ -1,4 +1,6 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.1"> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sr">
<context> <context>
<name>API</name> <name>API</name>
<message> <message>
@ -32,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Мод за читање</translation> <translation>Мод за читање</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>
@ -267,4 +273,4 @@
<translation>Омиљено</translation> <translation>Омиљено</translation>
</message> </message>
</context> </context>
</TS> </TS>

View file

@ -34,6 +34,10 @@
<source>Reading mode</source> <source>Reading mode</source>
<translation>Reading mode</translation> <translation>Reading mode</translation>
</message> </message>
<message>
<source>Copy URL</source>
<translation>Copy URL</translation>
</message>
</context> </context>
<context> <context>
<name>Conversation</name> <name>Conversation</name>