From 85b898c623ae09d5caa88041bd8ceb26d4f1defc Mon Sep 17 00:00:00 2001 From: stysebae <32852093+stysebae@users.noreply.github.com> Date: Tue, 19 Oct 2021 10:46:39 +0200 Subject: Add shortcut to jump to next unread article (issue #3393) (#3891) * Add shortcut to jump to next unread article * phpcbf Co-authored-by: Alexandre Alapetite --- app/i18n/cz/conf.php | 1 + app/i18n/de/conf.php | 1 + app/i18n/en-us/conf.php | 1 + app/i18n/en/conf.php | 1 + app/i18n/es/conf.php | 1 + app/i18n/fr/conf.php | 1 + app/i18n/he/conf.php | 1 + app/i18n/it/conf.php | 1 + app/i18n/ja/conf.php | 1 + app/i18n/kr/conf.php | 1 + app/i18n/nl/conf.php | 1 + app/i18n/oc/conf.php | 1 + app/i18n/pl/conf.php | 1 + app/i18n/pt-br/conf.php | 1 + app/i18n/ru/conf.php | 1 + app/i18n/sk/conf.php | 1 + app/i18n/tr/conf.php | 1 + app/i18n/zh-cn/conf.php | 1 + app/views/configure/shortcut.phtml | 8 ++++++++ app/views/helpers/javascript_vars.phtml | 1 + 20 files changed, 27 insertions(+) (limited to 'app') diff --git a/app/i18n/cz/conf.php b/app/i18n/cz/conf.php index d8013948f..adfd920da 100644 --- a/app/i18n/cz/conf.php +++ b/app/i18n/cz/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Pomocí přepínače ⇧ Shift fungují navigační zkratky v rámci kanálů.
Pomocí přepínače Alt ⎇ fungují v rámci kategorií.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', // TODO - Translation 'next_article' => 'Skočit na další článek', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Switch to normal view', // TODO - Translation 'other_action' => 'Ostatní akce', diff --git a/app/i18n/de/conf.php b/app/i18n/de/conf.php index 0a84a5ef9..50a10f025 100644 --- a/app/i18n/de/conf.php +++ b/app/i18n/de/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Mit der ⇧ Umschalttaste finden die Tastenkombination auf Feeds Anwendung.
Mit der Alt ⎇-Taste finden die Tastenkombination auf Kategorien Anwendung.', 'navigation_no_mod_help' => 'Die folgenden Navigationsverknüpfungen unterstützen keine Modifikatoren.', 'next_article' => 'Zum nächsten Artikel springen', + 'next_unread_article' => 'Zum nächsten ungelesenen Artikel springen', 'non_standard' => 'Einige Tasten (%s) können nicht als Shortcut verwendet werden.', 'normal_view' => 'Wechsle zur normalen Ansicht', 'other_action' => 'Andere Aktionen', diff --git a/app/i18n/en-us/conf.php b/app/i18n/en-us/conf.php index 63bb266ec..32600d11b 100644 --- a/app/i18n/en-us/conf.php +++ b/app/i18n/en-us/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'With the ⇧ Shift modifier, navigation shortcuts apply on feeds.
With the Alt ⎇ modifier, navigation shortcuts apply on categories.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', 'next_article' => 'Open the next article', + 'next_unread_article' => 'Open the next unread article', 'non_standard' => 'Some keys (%s) may not work as shortcuts.', 'normal_view' => 'Switch to normal view', 'other_action' => 'Other actions', diff --git a/app/i18n/en/conf.php b/app/i18n/en/conf.php index bb84b662b..a732e2cb7 100644 --- a/app/i18n/en/conf.php +++ b/app/i18n/en/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'With the ⇧ Shift modifier, navigation shortcuts apply on feeds.
With the Alt ⎇ modifier, navigation shortcuts apply on categories.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', 'next_article' => 'Open the next article', + 'next_unread_article' => 'Open the next unread article', 'non_standard' => 'Some keys (%s) may not work as shortcuts.', 'normal_view' => 'Switch to normal view', 'other_action' => 'Other actions', diff --git a/app/i18n/es/conf.php b/app/i18n/es/conf.php index 0e429967e..a16005fa9 100755 --- a/app/i18n/es/conf.php +++ b/app/i18n/es/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Con el modificador ⇧ Mayúsculas es posible usar los atajos de teclado en las fuentes.
Con el modificador Alt ⎇ es posible aplicar los atajos de teclado en las categorías.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', // TODO - Translation 'next_article' => 'Saltar al siguiente artículo', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Switch to normal view', // TODO - Translation 'other_action' => 'Otras acciones', diff --git a/app/i18n/fr/conf.php b/app/i18n/fr/conf.php index 972740eb1..ca3f1bbd6 100644 --- a/app/i18n/fr/conf.php +++ b/app/i18n/fr/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Avec le modificateur ⇧ Maj, les raccourcis de navigation s’appliquent aux flux.
Avec le modificateur Alt ⎇, les raccourcis de navigation s’appliquent aux catégories.', 'navigation_no_mod_help' => 'Les raccourcis suivant ne supportent pas les modificateurs.', 'next_article' => 'Passer à l’article suivant', + 'next_unread_article' => 'Passer à l’article non lu suivant', 'non_standard' => 'Certains raccourcis (%s) peuvent ne pas fonctionner.', 'normal_view' => 'Basculer vers la vue normale', 'other_action' => 'Autres actions', diff --git a/app/i18n/he/conf.php b/app/i18n/he/conf.php index 34f32ddcc..555a6ad53 100644 --- a/app/i18n/he/conf.php +++ b/app/i18n/he/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'בעזרת מקש השיפט קיצורי דרך חלים על הזנות .
עם מקש האלט הם חלים על קטגוריות.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', // TODO - Translation 'next_article' => 'דילוג למאמר הבא', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Switch to normal view', // TODO - Translation 'other_action' => 'פעולות אחרות', diff --git a/app/i18n/it/conf.php b/app/i18n/it/conf.php index 29fa33ca9..23dac5956 100644 --- a/app/i18n/it/conf.php +++ b/app/i18n/it/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Con il tasto ⇧ Shift i comandi di navigazione verranno applicati ai feeds.
Con il tasto Alt ⎇ i comandi di navigazione verranno applicati alle categorie.', 'navigation_no_mod_help' => 'The following navigation shortcuts do not support modifiers.', // TODO - Translation 'next_article' => 'Salta al contenuto successivo', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Switch to normal view', // TODO - Translation 'other_action' => 'Altre azioni', diff --git a/app/i18n/ja/conf.php b/app/i18n/ja/conf.php index eee5a9f6f..a0d2f6c1f 100644 --- a/app/i18n/ja/conf.php +++ b/app/i18n/ja/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => '⇧ Shiftキーを使うと, フィードにショートカットナビが表示されます。
Alt ⎇ キーを使うと、カテゴリにショートカットナビが表示されます。', 'navigation_no_mod_help' => '次のショートカットナビは、キーボードショートカットには対応していません。', 'next_article' => '次の記事を開く', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => '(%s)のキーはショートカットにはなりません。', 'normal_view' => 'ノーマルビューに切り替える', 'other_action' => 'ほかのアクション', diff --git a/app/i18n/kr/conf.php b/app/i18n/kr/conf.php index 2128b1532..6288e1c30 100644 --- a/app/i18n/kr/conf.php +++ b/app/i18n/kr/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => '⇧ Shift 키를 누른 상태에선 탐색 단축키가 피드에 적용됩니다.
Alt ⎇ 키를 누른 상태에선 탐색 단축키가 카테고리에 적용됩니다.', 'navigation_no_mod_help' => '아래 탐색 단축키에는 "Shift"와 "Alt" 키가 적용되지 않습니다.', 'next_article' => '다음 글 보기', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => '일반 모드로 전환', 'other_action' => '다른 동작', diff --git a/app/i18n/nl/conf.php b/app/i18n/nl/conf.php index b157551cf..0c658f273 100644 --- a/app/i18n/nl/conf.php +++ b/app/i18n/nl/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Met de ⇧ Shift toets worden navigatieverwijzingen op feeds toegepast.
Met de Alt ⎇ toets worden navigatieverwijzingen op categorieën toegepast.', 'navigation_no_mod_help' => 'De volgende navigatiesnelkoppelingen ondersteunen geen toetsencombinaties.', 'next_article' => 'Spring naar volgende artikel', + 'next_unread_article' => 'Spring naar volgende ongelezene artikel', 'non_standard' => 'Sommige toetsen (%s) werken wellicht niet als snelkoppelingen.', 'normal_view' => 'Schakel naar gewoon aanzicht', 'other_action' => 'Andere acties', diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.php index cbe19f1b5..62105f72d 100644 --- a/app/i18n/oc/conf.php +++ b/app/i18n/oc/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Amb lo modificador ⇧ Shift, los acorchis de navigacion s’aplican als fluxes.
Amb lo modificador Alt ⎇, los acorchis de navigacion s’aplican a las categorias.', 'navigation_no_mod_help' => 'Los acorchis clavièrs de navigacion son pas compatibles amb los modificadors.', 'next_article' => 'Passar a l’article seguent', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Passar a la vista normala', 'other_action' => 'Autras accions', diff --git a/app/i18n/pl/conf.php b/app/i18n/pl/conf.php index c38ab80f2..e9ed6ced8 100644 --- a/app/i18n/pl/conf.php +++ b/app/i18n/pl/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Z wykorzystaniem modyfikatora ⇧ Shift skróty nawigacyjne stosowane są dla kanałów.
Z wykorzystaniem modyfikatora Alt ⎇ skróty nawigacyjne stosowane są dla kategorii.', 'navigation_no_mod_help' => 'Pozostałe skróty nawigacyjne nie wspierają modyfikatorów.', 'next_article' => 'Otworzenie następnej wiadomości', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Przełączenie na widok normalny', 'other_action' => 'Inne akcje', diff --git a/app/i18n/pt-br/conf.php b/app/i18n/pt-br/conf.php index 976820462..3739c1db8 100644 --- a/app/i18n/pt-br/conf.php +++ b/app/i18n/pt-br/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Com o modificador ⇧ Shift, atalhos de navegação aplicam aos feeds.
Com o Alt ⎇ modificador, atalhos de navegação aplicam as categorias.', 'navigation_no_mod_help' => 'Os seguintes atalhos de navegação não suportam modificadores.', 'next_article' => 'Pule para o próximo artigo', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Mudar para a visualização normal', 'other_action' => 'Outras ações', diff --git a/app/i18n/ru/conf.php b/app/i18n/ru/conf.php index 4bdcdb1c5..789be1ce9 100644 --- a/app/i18n/ru/conf.php +++ b/app/i18n/ru/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'С модификатором ⇧ Shift навигационные горячие клавиши применяются к лентам.
С модификатором Alt ⎇ навигационные горячие клавиши применяются к категориям.', 'navigation_no_mod_help' => 'Следующие навигационные горячие клавиши не поддерживают модификаторы.', 'next_article' => 'Открыть следующую статью', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Некоторые клавиши (%s) не могут быть использованы как горячие клавиши.', 'normal_view' => 'Переключиться на обычный вид', 'other_action' => 'Другие действия', diff --git a/app/i18n/sk/conf.php b/app/i18n/sk/conf.php index 21980fe4a..fdc5a48dd 100644 --- a/app/i18n/sk/conf.php +++ b/app/i18n/sk/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => 'Po stlačení skratky s klávesou ⇧ Shift, sa skratky navigácie vzťahujú na kanály.
Po stlačení skratky s klávesou Alt ⎇, sa skratky navigácie vzťahujú na kategórie.', 'navigation_no_mod_help' => 'Tieto skratky navigácie nepodporujú klávesy "Shift" a "Alt".', 'next_article' => 'Otvorí ďalší článok', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Some keys (%s) may not work as shortcuts.', // TODO - Translation 'normal_view' => 'Prepne do základného zobrazenia', 'other_action' => 'Ostatné akcie', diff --git a/app/i18n/tr/conf.php b/app/i18n/tr/conf.php index 6e1a88b50..1b0192dc1 100644 --- a/app/i18n/tr/conf.php +++ b/app/i18n/tr/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => '⇧ Shift tuşu ile kısayollar akışlar için geçerli olur.
Alt ⎇ tuşu ile kısayollar kategoriler için geçerli olur.', 'navigation_no_mod_help' => 'Aşağıdaki kısayollar değiştiricileri desteklenmemektedir.', 'next_article' => 'Sonraki makaleye geç', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => 'Bazı tuşlar (%s) kullanılamayabilir.', 'normal_view' => 'Normal görünüme geç', 'other_action' => 'Diğer eylemler', diff --git a/app/i18n/zh-cn/conf.php b/app/i18n/zh-cn/conf.php index c24c61199..c1c1452f1 100644 --- a/app/i18n/zh-cn/conf.php +++ b/app/i18n/zh-cn/conf.php @@ -198,6 +198,7 @@ return array( 'navigation_help' => '组合 ⇧ Shift 键,浏览快捷键将生效于订阅源。
组合 Alt ⎇ 键,浏览快捷键将生效于分类。', 'navigation_no_mod_help' => '以下快捷键不支持组合键(Shift 或 Alt)', 'next_article' => '打开下一篇文章', + 'next_unread_article' => 'Open the next unread article', // TODO - Translation 'non_standard' => '这些键 (%s) 可能不能作为快捷键', 'normal_view' => '切换到普通视图', 'other_action' => '其他操作', diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml index f8eb469e8..ff94fcf56 100644 --- a/app/views/configure/shortcut.phtml +++ b/app/views/configure/shortcut.phtml @@ -75,6 +75,14 @@ +
+ +
+ +
+
+
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml index c6600a9a8..232068da1 100644 --- a/app/views/helpers/javascript_vars.phtml +++ b/app/views/helpers/javascript_vars.phtml @@ -28,6 +28,7 @@ echo htmlspecialchars(json_encode(array( 'go_website' => @$s['go_website'], 'prev_entry' => @$s['prev_entry'], 'next_entry' => @$s['next_entry'], + 'next_unread_entry' => @$s['next_unread_entry'], 'skip_prev_entry' => @$s['skip_prev_entry'], 'skip_next_entry' => @$s['skip_next_entry'], 'first_entry' => @$s['first_entry'], -- cgit v1.2.3