CLISetup/locales

* removed redundant declaration of locales to process
This commit is contained in:
Sarjuuk
2024-06-29 13:03:18 +02:00
parent 5d4051928a
commit 2386e35207
13 changed files with 56 additions and 58 deletions

View File

@@ -52,7 +52,7 @@ CLISetup::registerSetup("build", new class extends SetupScript
$glyphSpells = new SpellList(array(['s.id', array_keys($glyphList)], Cfg::get('SQL_LIMIT_NONE')));
foreach (CLISetup::$localeIds as $lId)
foreach (CLISetup::$locales as $lId => $jsonStr)
{
set_time_limit(30);
@@ -82,7 +82,7 @@ CLISetup::registerSetup("build", new class extends SetupScript
}
$toFile = "var g_glyphs = ".Util::toJSON($glyphsOut).";";
$file = 'datasets/'.User::$localeString.'/glyphs';
$file = 'datasets/'.$jsonStr.'/glyphs';
if (!CLISetup::writeFile($file, $toFile))
$this->success = false;