Merge branch 'main' into fix-database-version-error

pull/2/head
kirbylife 2024-03-26 07:31:44 +00:00
commit d739ffe2e0
5 changed files with 311 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.pro.user *.pro.user
output/

View File

@ -1,3 +1,4 @@
The following people have helped making WallaRead yet more awesome. Thanks to them! The following people have helped making WallaRead yet more awesome. Thanks to them!
* Quentin P.: French translation * Quentin P.: French translation
* kirbylife: New maintainer

48
README.md 100644
View File

@ -0,0 +1,48 @@
# Wallaread - SailfishOS client for Wallabag 2+
This project is a fork of the original [goestreicher repository](https://github.com/goestreicher/harbour-wallaread). In this repository is the continuation of that project .
Wallaread is a client to SailfishOS for [Wallabag](https://www.wallabag.it/en), a self-hosted service that allows you to save a copy of your favorite articles to read later.
## Installation
The pre-compiled package is available through [OpenRepos](https://openrepos.net/content/kirbylife/wallabag).
You can install it by directly downloading the .rpm file for your architecture or through Storeman.
## Compilation
The recomended option to compile this project is using Docker using the following command:
aarch64
```Bash
docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:4.5.0.16 /bin/bash -c " mkdir -p build ; cd build ; cp -r /share/* . ; mb2 -t SailfishOS-4.5.0.16-aarch64 build ; sudo cp -r RPMS/*.rpm /share/output"
```
armv7
```Bash
docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:4.5.0.16 /bin/bash -c " mkdir -p build ; cd build ; cp -r /share/* . ; mb2 -t SailfishOS-4.5.0.16-armv7hl build ; sudo cp -r RPMS/*.rpm /share/output"
```
i486
```Bash
docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:4.5.0.16 /bin/bash -c " mkdir -p build ; cd build ; cp -r /share/* . ; mb2 -t SailfishOS-4.5.0.16-i486 build ; sudo cp -r RPMS/*.rpm /share/output"
```
The .rpm package should be in the output/ directory.
## Features
- Login to multiple wallabag servers.
- Synchronize aggregated items.
- Read articles through a WebView.
- Save articles locally so they can be read offline.
## Translations
You can help contribute to the translations of this project by creating files within the translations/ directory for the new language or by correcting existing translations.
## Credits and license
This project was originally created by [goestreicher](https://github.com/goestreicher) and he licensed it under GPL v3, so this license is preserved.

View File

@ -21,6 +21,9 @@
import QtQuick 2.0 import QtQuick 2.0
import Sailfish.Silica 1.0 import Sailfish.Silica 1.0
import Sailfish.WebView 1.0
import Sailfish.WebEngine 1.0
import Sailfish.WebView.Popups 1.0
Page { Page {
id: articlePage id: articlePage
@ -29,7 +32,7 @@ Page {
property string title property string title
property string content property string content
SilicaWebView { WebView {
id: webview id: webview
anchors.fill: parent anchors.fill: parent
@ -42,9 +45,13 @@ Page {
var html = var html =
"<html>" + "<html>" +
"<head>" + "<head>" +
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">" +
"<style type=\"text/css\">" + "<style type=\"text/css\">" +
"article { font-family: sans-serif; font-size: 16px; }" + "article { font-family: sans-serif; font-size: 16px; }" +
"article h1 { font-size: 32px; }" + "article h1 { font-size: 25px; }" +
"img { max-width: 100%; height: auto; }" +
"pre { word-wrap: normal; overflow-x: auto }" +
"code { word-wrap: normal; overflow-x: auto }" +
"</style>" + "</style>" +
"</head>" + "</head>" +
"<body>" + "<body>" +

View File

@ -0,0 +1,251 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>CoverPage</name>
<message>
<source>WallaRead</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ImageEmbedRequest</name>
<message>
<source>Failed to find the image source</source>
<translation>Error al extraer la imagen de la fuente original</translation>
</message>
</context>
<context>
<name>Server</name>
<message>
<source>Failed to load server information: </source>
<translation>Error al cargar la información del servidor: </translation>
</message>
<message>
<source>Failed to connect to server: </source>
<translation>Error al conectar con el servidor: </translation>
</message>
<message>
<source>Failed to download articles: </source>
<translation>Error al descargar los artículos: </translation>
</message>
<message>
<source>Failed to set star status on article: </source>
<translation>Error al marcar como favorito el artículo: </translation>
</message>
<message>
<source>Failed to set read status on article: </source>
<translation>Error al marcar como leído el artículo: </translation>
</message>
<message>
<source>Failed to delete article: </source>
<translation>Error al eliminar el artículo: </translation>
</message>
<message>
<source>Failed to upload article: </source>
<translation>Error al subir artículo: </translation>
</message>
</context>
<context>
<name>ServerPage</name>
<message>
<source>Article URL</source>
<translation>URL del artículo</translation>
</message>
<message>
<source>Refresh</source>
<translation>Recargar</translation>
</message>
<message>
<source>No articles saved on this server yet</source>
<translation>El servidor aún no tiene artículos guardados</translation>
</message>
<message>
<source>Deleting</source>
<translation>Eliminando</translation>
</message>
<message>
<source>Add article</source>
<translation>Agregar artículo</translation>
</message>
<message>
<source>Show: </source>
<translation>Mostrar: </translation>
</message>
<message>
<source>Sort: </source>
<translation>Ordenar: </translation>
</message>
</context>
<context>
<name>ServerPageShowDialog</name>
<message>
<source>Filter view</source>
<translation>Aplicar</translation>
</message>
<message>
<source>Read articles</source>
<translation>Artículos leídos</translation>
</message>
<message>
<source>Starred articles</source>
<translation>Artículos favoritos</translation>
</message>
</context>
<context>
<name>ServerPageShowPreferences</name>
<message>
<source>read</source>
<translation>Leído</translation>
</message>
<message>
<source>unread</source>
<translation>Por leer</translation>
</message>
<message>
<source>starred</source>
<translation>Favorito</translation>
</message>
<message>
<source>all</source>
<translation>Todos</translation>
</message>
</context>
<context>
<name>ServerPageSortDialog</name>
<message>
<source>Sort view</source>
<translation>Aplicar</translation>
</message>
<message>
<source>Sort order</source>
<translation>Criterio</translation>
</message>
<message>
<source>Sort Ascending</source>
<translation>Ordenar de manera ascendente</translation>
</message>
</context>
<context>
<name>ServerPageSortPreferences</name>
<message>
<source>Created</source>
<translation>Creado</translation>
</message>
<message>
<source>Updated</source>
<translation>Actualizado</translation>
</message>
<message>
<source>Domain</source>
<translation>Dominio</translation>
</message>
</context>
<context>
<name>ServerSettings</name>
<message>
<source>Failed to load server settings: </source>
<translation>Error al cargar la configuración del servidor: </translation>
</message>
</context>
<context>
<name>ServerSettingsDialog</name>
<message>
<source>Save</source>
<translation>Guardar</translation>
</message>
<message>
<source>Server Alias</source>
<translation>Alias del servidor</translation>
</message>
<message>
<source>URL</source>
<translation>URL</translation>
</message>
<message>
<source>Server URL</source>
<translation>URL del servidor</translation>
</message>
<message>
<source>Login</source>
<translation>Iniciar sesión</translation>
</message>
<message>
<source>User Login</source>
<translation>Nombre de usuario</translation>
</message>
<message>
<source>Client ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Client Secret</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Fetch unread/archived articles</source>
<translation>Descargar artículos por leer/archivados</translation>
</message>
</context>
<context>
<name>ServersPage</name>
<message>
<source>Reset database</source>
<translation>Reiniciar base de datos</translation>
</message>
<message>
<source>Settings</source>
<translation>Configuración</translation>
</message>
<message>
<source>Wallabag servers</source>
<translation>Servidores de Wallabag</translation>
</message>
<message>
<source>No servers configured yet, create your first one with the Settings menu</source>
<translation>Aún no hay ningún servidor configurado, agrega alguno en el menú de configuración</translation>
</message>
<message>
<source>Resetting database</source>
<translation>Reiniciando base de datos</translation>
</message>
<message>
<source>Deleting</source>
<translation>Eliminando</translation>
</message>
</context>
<context>
<name>SettingsPage</name>
<message>
<source>New Server</source>
<translation>Nuevo servidor</translation>
</message>
<message>
<source>Settings</source>
<translation>Configuración</translation>
</message>
<message>
<source>No server found, use the pulley menu and select &apos;New Server&apos;</source>
<translation>No hay ningún servidor, usa el menú superior y selecciona &apos;Nuevo servidor&apos;</translation>
</message>
</context>
<context>
<name>WallaBase</name>
<message>
<source>Server not found in the configuration</source>
<translation>No se encontró ningún servidor en la configuración</translation>
</message>
<message>
<source>Failed to parse server response: </source>
<translation>Error la procesar la respuesta del servidor: </translation>
</message>
<message>
<source>Server reply was </source>
<translation>La respuesta del servidor fue </translation>
</message>
<message>
<source>Article not found in the cache</source>
<translation>Artículo no encontrado en el caché</translation>
</message>
</context>
</TS>