瀏覽代碼

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
Alexandre Alapetite 2 年之前
父節點
當前提交
506fe3f44c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/Minz/Translate.php

+ 1 - 2
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;