aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-10-27 09:57:39 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-27 09:57:39 +0200
commit506fe3f44c280c8b42b9a7735e52360f5d2ee4aa (patch)
tree1c674d5104298088c1d0b3c6bef8e9e937e24d32 /lib
parent619d3f54a3faaff1b9adf172e090f36faea408c7 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Translate.php3
1 files changed, 1 insertions, 2 deletions
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;