Skip to content

Commit

Permalink
Locale and charset didn't show correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdarwood007 committed Jan 30, 2024
1 parent 8a17b8c commit 55e3dd4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Actions/Admin/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -1583,14 +1583,15 @@ public static function list_getLanguages(): array
// Get the language files and data...
foreach (Utils::$context['languages'] as $lang) {
// Load the file to get the character set.
// Note: its $txt still, not under Lang::$txt
require $lang['location'];

$languages[$lang['filename']] = [
'id' => $lang['filename'],
'count' => 0,
'char_set' => Lang::$txt['lang_character_set'],
'char_set' => $txt['lang_character_set'],
'default' => Lang::$default == $lang['filename'] || (Lang::$default == '' && $lang['filename'] == 'en_US'),
'locale' => Lang::$txt['lang_locale'],
'locale' => $txt['lang_locale'],
'name' => $lang['name'],
];
}
Expand Down

0 comments on commit 55e3dd4

Please sign in to comment.