aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-07-24 19:37:30 +0200
committerGravatar GitHub <noreply@github.com> 2024-07-24 19:37:30 +0200
commita6d7bdc7426af55ffde71ab626a096a98f650974 (patch)
tree38bd6086210364abb502c64d20b8106ed25cc0fe
parent3dca6ab1eef70e2e6fe19388238f7ec26f3c69af (diff)
New global option to automatically add articles to favourites (#6648)
fix https://github.com/FreshRSS/FreshRSS/issues/6639
-rw-r--r--app/Controllers/configureController.php1
-rw-r--r--app/i18n/cs/conf.php3
-rw-r--r--app/i18n/de/conf.php3
-rw-r--r--app/i18n/el/conf.php3
-rw-r--r--app/i18n/en-us/conf.php3
-rw-r--r--app/i18n/en/conf.php3
-rw-r--r--app/i18n/es/conf.php3
-rw-r--r--app/i18n/fa/conf.php3
-rw-r--r--app/i18n/fr/conf.php3
-rw-r--r--app/i18n/he/conf.php3
-rw-r--r--app/i18n/hu/conf.php3
-rw-r--r--app/i18n/id/conf.php3
-rw-r--r--app/i18n/it/conf.php3
-rw-r--r--app/i18n/ja/conf.php3
-rw-r--r--app/i18n/ko/conf.php3
-rw-r--r--app/i18n/lv/conf.php3
-rw-r--r--app/i18n/nl/conf.php3
-rw-r--r--app/i18n/oc/conf.php3
-rw-r--r--app/i18n/pl/conf.php3
-rw-r--r--app/i18n/pt-br/conf.php3
-rw-r--r--app/i18n/ru/conf.php3
-rw-r--r--app/i18n/sk/conf.php3
-rw-r--r--app/i18n/tr/conf.php3
-rw-r--r--app/i18n/zh-cn/conf.php3
-rw-r--r--app/i18n/zh-tw/conf.php3
-rw-r--r--app/views/configure/reading.phtml12
26 files changed, 85 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 2ccc6fe42..a50cf1ef7 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -150,6 +150,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
'focus' => Minz_Request::paramBoolean('mark_focus'),
];
FreshRSS_Context::userConf()->_filtersAction('read', Minz_Request::paramTextToArray('filteractions_read'));
+ FreshRSS_Context::userConf()->_filtersAction('star', Minz_Request::paramTextToArray('filteractions_star'));
FreshRSS_Context::userConf()->save();
invalidateHttpCache();
diff --git a/app/i18n/cs/conf.php b/app/i18n/cs/conf.php
index 2c2559d8b..ec4c21616 100644
--- a/app/i18n/cs/conf.php
+++ b/app/i18n/cs/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Nejdříve nejnovější',
'older_first' => 'Nejdříve nejstarší',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Při otevření připnout článek na začátek',
'title' => 'Čtení',
'view' => array(
diff --git a/app/i18n/de/conf.php b/app/i18n/de/conf.php
index 71b402b73..dadea9736 100644
--- a/app/i18n/de/conf.php
+++ b/app/i18n/de/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Neuere zuerst',
'older_first' => 'Ältere zuerst',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Wenn geöffnet, den Artikel ganz oben anheften',
'title' => 'Lesen',
'view' => array(
diff --git a/app/i18n/el/conf.php b/app/i18n/el/conf.php
index 681ec5ecd..d1008730a 100644
--- a/app/i18n/el/conf.php
+++ b/app/i18n/el/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Newest first', // TODO
'older_first' => 'Oldest first', // TODO
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Stick the article to the top when opened', // TODO
'title' => 'Reading', // TODO
'view' => array(
diff --git a/app/i18n/en-us/conf.php b/app/i18n/en-us/conf.php
index 9281fd9c2..4d46d21da 100644
--- a/app/i18n/en-us/conf.php
+++ b/app/i18n/en-us/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Newest first', // IGNORE
'older_first' => 'Oldest first', // IGNORE
),
+ 'star' => array(
+ 'when' => 'Mark an article as favorite…',
+ ),
'sticky_post' => 'Stick the article to the top when opened', // IGNORE
'title' => 'Reading', // IGNORE
'view' => array(
diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.php
index 30b499a5f..66c776bf0 100644
--- a/app/i18n/en/conf.php
+++ b/app/i18n/en/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Newest first',
'older_first' => 'Oldest first',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…',
+ ),
'sticky_post' => 'Stick the article to the top when opened',
'title' => 'Reading',
'view' => array(
diff --git a/app/i18n/es/conf.php b/app/i18n/es/conf.php
index dc0e1c86a..4612752b5 100644
--- a/app/i18n/es/conf.php
+++ b/app/i18n/es/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Nuevos primero',
'older_first' => 'Antiguos primero',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Pegar el artículo a la parte superior al abrirlo',
'title' => 'Lectura',
'view' => array(
diff --git a/app/i18n/fa/conf.php b/app/i18n/fa/conf.php
index 75e698516..93ecf1a76 100644
--- a/app/i18n/fa/conf.php
+++ b/app/i18n/fa/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => ' ابتدا جدیدترین',
'older_first' => ' اول قدیمی ترین',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => ' وقتی باز شد مقاله را به بالا بچسبانید',
'title' => ' خواندن',
'view' => array(
diff --git a/app/i18n/fr/conf.php b/app/i18n/fr/conf.php
index 7470d3aa9..b821414bf 100644
--- a/app/i18n/fr/conf.php
+++ b/app/i18n/fr/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Plus récents en premier',
'older_first' => 'Plus anciens en premier',
),
+ 'star' => array(
+ 'when' => 'Marquer un article comme favori…',
+ ),
'sticky_post' => 'Aligner l’article en haut quand il est ouvert',
'title' => 'Lecture',
'view' => array(
diff --git a/app/i18n/he/conf.php b/app/i18n/he/conf.php
index 112016084..e78c4261c 100644
--- a/app/i18n/he/conf.php
+++ b/app/i18n/he/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'חדשים בראש',
'older_first' => 'ישנים יותר בראש',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'הצמדת המאמר לחלק העליון כאשר הוא פתוח',
'title' => 'קריאה',
'view' => array(
diff --git a/app/i18n/hu/conf.php b/app/i18n/hu/conf.php
index 331599189..b99ec4144 100644
--- a/app/i18n/hu/conf.php
+++ b/app/i18n/hu/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Újabb elöl',
'older_first' => 'Régebbi elöl',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'A cikk gördüljön felülre, amikor megnyitásra kerül',
'title' => 'Olvasás',
'view' => array(
diff --git a/app/i18n/id/conf.php b/app/i18n/id/conf.php
index 660894bd8..6fb20c1f4 100644
--- a/app/i18n/id/conf.php
+++ b/app/i18n/id/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Terbaru dulu',
'older_first' => 'Terlama dulu',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Tempelkan artikel di bagian atas saat dibuka',
'title' => 'Membaca',
'view' => array(
diff --git a/app/i18n/it/conf.php b/app/i18n/it/conf.php
index 77980b16b..5e529501b 100644
--- a/app/i18n/it/conf.php
+++ b/app/i18n/it/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Prima i più recenti',
'older_first' => 'Prima i più vecchi',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Blocca il contenuto a inizio pagina quando aperto',
'title' => 'Lettura',
'view' => array(
diff --git a/app/i18n/ja/conf.php b/app/i18n/ja/conf.php
index e70fdc740..839384380 100644
--- a/app/i18n/ja/conf.php
+++ b/app/i18n/ja/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => '最新のものを先頭にする',
'older_first' => '最古のものを先頭にする',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => '開いたときにトップを記事にする',
'title' => 'リーディング',
'view' => array(
diff --git a/app/i18n/ko/conf.php b/app/i18n/ko/conf.php
index 2dc85f84a..493f68241 100644
--- a/app/i18n/ko/conf.php
+++ b/app/i18n/ko/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => '최근 글 먼저',
'older_first' => '오래된 글 먼저',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => '글이 펼쳐진 경우 최상단에 고정하기',
'title' => '읽기',
'view' => array(
diff --git a/app/i18n/lv/conf.php b/app/i18n/lv/conf.php
index 65df53baa..dd920acba 100644
--- a/app/i18n/lv/conf.php
+++ b/app/i18n/lv/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Sākumā jaunākos',
'older_first' => 'Sākumā vecākos',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Uzlīmēt rakstu augšā, kad atvērts',
'title' => 'Lasīšana',
'view' => array(
diff --git a/app/i18n/nl/conf.php b/app/i18n/nl/conf.php
index 241b4f91f..78d64d293 100644
--- a/app/i18n/nl/conf.php
+++ b/app/i18n/nl/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Nieuwste eerst',
'older_first' => 'Oudste eerst',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Koppel artikel aan de bovenkant als het geopend wordt',
'title' => 'Lees modus',
'view' => array(
diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.php
index 456414504..c798cc77d 100644
--- a/app/i18n/oc/conf.php
+++ b/app/i18n/oc/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Mai recents en primièr',
'older_first' => 'Mai ancians en primièr',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Gardar l’article amont quand es dobèrt',
'title' => 'Lectura',
'view' => array(
diff --git a/app/i18n/pl/conf.php b/app/i18n/pl/conf.php
index 7f9fcb9d2..db9990dd8 100644
--- a/app/i18n/pl/conf.php
+++ b/app/i18n/pl/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Najpierw najnowsze',
'older_first' => 'Najpierw najstarsze',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Przesuń wiadomość na górę strony po otworzeniu',
'title' => 'Czytanie',
'view' => array(
diff --git a/app/i18n/pt-br/conf.php b/app/i18n/pt-br/conf.php
index 29ca4f7cf..a8b88391c 100644
--- a/app/i18n/pt-br/conf.php
+++ b/app/i18n/pt-br/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Novos primeiro',
'older_first' => 'Antigos primeiro',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Coloque o artigo no topo quando aberto',
'title' => 'Lendo',
'view' => array(
diff --git a/app/i18n/ru/conf.php b/app/i18n/ru/conf.php
index 0c28ef0cb..edbcf060f 100644
--- a/app/i18n/ru/conf.php
+++ b/app/i18n/ru/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Сначала новые',
'older_first' => 'Сначала старые',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Прикрепить статью к верху при открытии',
'title' => 'Чтение',
'view' => array(
diff --git a/app/i18n/sk/conf.php b/app/i18n/sk/conf.php
index d50d84f37..c1280a6a7 100644
--- a/app/i18n/sk/conf.php
+++ b/app/i18n/sk/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Novšie hore',
'older_first' => 'Staršie hore',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Po otvorení posunúť článok hore',
'title' => 'Čítanie',
'view' => array(
diff --git a/app/i18n/tr/conf.php b/app/i18n/tr/conf.php
index 74e3cc8f8..f853bca40 100644
--- a/app/i18n/tr/conf.php
+++ b/app/i18n/tr/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => 'Önce yeniler',
'older_first' => 'Önce eskiler',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => 'Makale açıldığında yukarı getir',
'title' => 'Okuma',
'view' => array(
diff --git a/app/i18n/zh-cn/conf.php b/app/i18n/zh-cn/conf.php
index 6222b76f6..304e08020 100644
--- a/app/i18n/zh-cn/conf.php
+++ b/app/i18n/zh-cn/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => '由新至旧',
'older_first' => '由旧至新',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => '打开文章时将其置顶',
'title' => '阅读',
'view' => array(
diff --git a/app/i18n/zh-tw/conf.php b/app/i18n/zh-tw/conf.php
index ccfa7a0d5..bae9325ca 100644
--- a/app/i18n/zh-tw/conf.php
+++ b/app/i18n/zh-tw/conf.php
@@ -250,6 +250,9 @@ return array(
'newer_first' => '由新至舊',
'older_first' => '由舊至新',
),
+ 'star' => array(
+ 'when' => 'Mark an article as favourite…', // TODO
+ ),
'sticky_post' => '打開文章時將其置於頁首',
'title' => '閱讀',
'view' => array(
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index a71efddbd..474700117 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -368,6 +368,18 @@
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
</div>
</div>
+
+ <div class="form-group">
+ <label class="group-name" for="filteractions_star"><?= _t('conf.reading.star.when') ?></label>
+ <div class="group-controls">
+ <textarea name="filteractions_star" id="filteractions_star" class="w100"><?php
+ foreach (FreshRSS_Context::userConf()->filtersAction('star') as $filterStar) {
+ echo $filterStar->getRawInput(), PHP_EOL;
+ }
+ ?></textarea>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
+ </div>
+ </div>
</fieldset>
<fieldset>