Skip to content

Commit

Permalink
Fix extensions i18en English fallback
Browse files Browse the repository at this point in the history
fix FreshRSS#5734
fix FreshRSS#5724
Regression from FreshRSS#5426
  • Loading branch information
Alkarex committed Oct 26, 2023
1 parent 619d3f5 commit 90dbc49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Minz/Translate.php
Expand Up @@ -127,8 +127,7 @@ private static function loadLang(string $path): void {
$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;
Expand Down

0 comments on commit 90dbc49

Please sign in to comment.