From 506fe3f44c280c8b42b9a7735e52360f5d2ee4aa Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 27 Oct 2023 09:57:39 +0200 Subject: Fix extensions i18en English fallback (#5752) fix https://github.com/FreshRSS/FreshRSS/issues/5734 fix https://github.com/FreshRSS/FreshRSS/issues/5724 Regression from https://github.com/FreshRSS/FreshRSS/pull/5426 --- lib/Minz/Translate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Minz') diff --git a/lib/Minz/Translate.php b/lib/Minz/Translate.php index 0c8810377..ed9eca07c 100644 --- a/lib/Minz/Translate.php +++ b/lib/Minz/Translate.php @@ -127,8 +127,7 @@ class Minz_Translate { $lang_path = $path . '/' . self::$lang_name; if (self::$lang_name === '' || !is_dir($lang_path)) { // The lang path does not exist, fallback to English ('en') - self::$lang_name = 'en'; - $lang_path = $path . '/' . self::$lang_name; + $lang_path = $path . '/en'; if (!is_dir($lang_path)) { // English ('en') i18n files not provided. Stop here. The keys will be shown. return; -- cgit v1.2.3