소스 검색

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;