From 0654f22c5f6c3bec85b07cf2235d1e89621e75a4 Mon Sep 17 00:00:00 2001 From: Quentí <33203663+Quenty31@users.noreply.github.com> Date: Sun, 7 Apr 2019 14:43:35 +0200 Subject: Update for Unfolded categories (#2358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The participi passat is AT for the verbs ending with AR is the subject is masculine and ADA for a feminine subject :) L’article que m’a agradat : the article I liked La categoria que m’a agradada : the category I liked --- app/i18n/oc/conf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/i18n/oc/conf.php b/app/i18n/oc/conf.php index 3ac573ca7..1596950ea 100644 --- a/app/i18n/oc/conf.php +++ b/app/i18n/oc/conf.php @@ -92,7 +92,7 @@ return array( 'auto_remove_article' => 'Rescondre los articles aprèp lectura', 'confirm_enabled' => 'Mostrar una confirmacion per las accions del tipe « o marcar tot coma legit »', 'display_articles_unfolded' => 'Mostrar los articles desplegats per defaut', - 'display_categories_unfolded' => 'Mostrar las categorias desplegats per defaut', + 'display_categories_unfolded' => 'Mostrar las categorias desplegadas per defaut', 'hide_read_feeds' => 'Rescondre las categorias & fluxes sens articles pas legits (fonciona pas amb la configuracion « Mostrar totes los articles »)', 'img_with_lazyload' => 'Utilizar lo mòde “cargament tardiu” pels imatges', 'jump_next' => 'sautar al vesin venent pas legit (flux o categoria)', -- cgit v1.2.3 From 295cb89af386c208b82c47250e74c06d76191cf8 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 7 Apr 2019 21:39:48 +0200 Subject: Fix PHP 5.5 compat for array const (#2360) https://github.com/FreshRSS/FreshRSS/issues/2359 --- app/Controllers/configureController.php | 3 ++- lib/lib_rss.php | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'app') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 16dd82121..6d3c4dcce 100755 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -166,7 +166,8 @@ class FreshRSS_configure_Controller extends Minz_ActionController { * tab and up. */ public function shortcutAction() { - $this->view->list_keys = SHORTCUT_KEYS; + global $SHORTCUT_KEYS; + $this->view->list_keys = $SHORTCUT_KEYS; if (Minz_Request::isPost()) { FreshRSS_Context::$user_conf->shortcuts = validateShortcutList(Minz_Request::param('shortcuts')); diff --git a/lib/lib_rss.php b/lib/lib_rss.php index fd1389047..c0ea23989 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -549,7 +549,7 @@ function _i($icon, $url_only = false) { } -const SHORTCUT_KEYS = array( +$SHORTCUT_KEYS = array( //No const for < PHP 5.6 compatibility '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', @@ -559,6 +559,7 @@ const SHORTCUT_KEYS = array( ); function validateShortcutList($shortcuts) { + global $SHORTCUT_KEYS; $legacy = array( 'down' => 'ArrowDown', 'left' => 'ArrowLeft', 'page_down' => 'PageDown', 'page_up' => 'PageUp', 'right' => 'ArrowRight', 'up' => 'ArrowUp', @@ -567,17 +568,17 @@ function validateShortcutList($shortcuts) { $shortcuts_ok = array(); foreach ($shortcuts as $key => $value) { - if (in_array($value, SHORTCUT_KEYS)) { + if (in_array($value, $SHORTCUT_KEYS)) { $shortcuts_ok[$key] = $value; } elseif (isset($legacy[$value])) { $shortcuts_ok[$key] = $legacy[$value]; } else { //Case-insensitive search if ($upper === null) { - $upper = array_map('strtoupper', SHORTCUT_KEYS); + $upper = array_map('strtoupper', $SHORTCUT_KEYS); } $i = array_search(strtoupper($value), $upper); if ($i !== false) { - $shortcuts_ok[$key] = SHORTCUT_KEYS[$i]; + $shortcuts_ok[$key] = $SHORTCUT_KEYS[$i]; } } } -- cgit v1.2.3