Setup/Realms

* force use of Locale EN instead of last used locale (usually RU)
This commit is contained in:
Sarjuuk
2024-07-08 16:46:02 +02:00
parent f4364099c6
commit 37def70f6a
2 changed files with 4 additions and 0 deletions

View File

@@ -74,6 +74,9 @@ CLISetup::registerSetup("build", new class extends SetupScript
CLI::write('[realmmenu] no viable realms found .. realm menu will be empty', CLI::LOG_WARN);
// why is this file not localized!?
User::useLocale(LOCALE_EN);
Lang::load(LOCALE_EN);
foreach (Util::$regions as $idx => $n)
if ($set & (1 << $idx))
$menu[] = [$n, Lang::profiler('regions', $n), null, &$subs[$idx]];

View File

@@ -0,0 +1 @@
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' realmmenu');