Misc/Fixup

* fixed borked Lang::load in setup after d0d2451ff51157728e622142c3be7ae0ba7dcebe
This commit is contained in:
Sarjuuk
2024-01-11 23:03:10 +01:00
parent cfa5030f85
commit a39881e73f
8 changed files with 16 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ function account() : void
); );
User::useLocale(LOCALE_EN); User::useLocale(LOCALE_EN);
Lang::load(Util::$localeStrings[LOCALE_EN]); Lang::load(LOCALE_EN);
if (CLI::read($fields)) if (CLI::read($fields))
{ {

View File

@@ -13,13 +13,13 @@ if (!CLI)
/* Examples /* Examples
15: { 15: {
name:'Leichtes R<EFBFBD>stungsset', name:'Leichtes Rüstungsset',
quality:1, quality:1,
icon:'INV_Misc_ArmorKit_17', icon:'INV_Misc_ArmorKit_17',
source:-2304, source:-2304,
skill:-1, skill:-1,
slots:525008, slots:525008,
enchantment:'Verst<EFBFBD>rkt (+8 R<EFBFBD>stung)', enchantment:'Verstärkt (+8 Rüstung)',
jsonequip:{"armor":8,"reqlevel":1}, jsonequip:{"armor":8,"reqlevel":1},
temp:0, temp:0,
classes:0, classes:0,
@@ -96,7 +96,7 @@ if (!CLI)
foreach (CLISetup::$localeIds as $lId) foreach (CLISetup::$localeIds as $lId)
{ {
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
$enchantsOut = []; $enchantsOut = [];
foreach ($enchantSpells as $esId => $es) foreach ($enchantSpells as $esId => $es)

View File

@@ -66,7 +66,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
$gemsOut = []; $gemsOut = [];
foreach ($gems as $pop) foreach ($gems as $pop)

View File

@@ -55,7 +55,7 @@ if (!CLI)
set_time_limit(30); set_time_limit(30);
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
$glyphsOut = []; $glyphsOut = [];
foreach ($glyphSpells->iterate() as $__) foreach ($glyphSpells->iterate() as $__)

View File

@@ -45,7 +45,7 @@ if (!CLI)
foreach (CLISetup::$localeIds as $lId) foreach (CLISetup::$localeIds as $lId)
{ {
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
$itemsetOut = []; $itemsetOut = [];
foreach ($setList as $set) foreach ($setList as $set)

View File

@@ -59,7 +59,7 @@ if (!CLI)
foreach (CLISetup::$localeIds as $lId) foreach (CLISetup::$localeIds as $lId)
{ {
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
$petsOut = []; $petsOut = [];
foreach ($petList as $pet) foreach ($petList as $pet)

View File

@@ -115,7 +115,7 @@ if (!CLI)
set_time_limit(20); set_time_limit(20);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
if (!$relCurr->error) if (!$relCurr->error)
{ {
@@ -166,7 +166,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
foreach ([0, 1] as $g) // gender foreach ([0, 1] as $g) // gender
{ {
@@ -220,7 +220,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
$buff = "var _ = g_spells;\n"; $buff = "var _ = g_spells;\n";
foreach ($mountz->getListviewData(ITEMINFO_MODEL) as $id => $data) foreach ($mountz->getListviewData(ITEMINFO_MODEL) as $id => $data)
@@ -269,7 +269,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
$buff = "var _ = g_spells;\n"; $buff = "var _ = g_spells;\n";
foreach ($companionz->getListviewData(ITEMINFO_MODEL) as $id => $data) foreach ($companionz->getListviewData(ITEMINFO_MODEL) as $id => $data)
@@ -307,7 +307,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
$buff = "var _ = g_factions;\n"; $buff = "var _ = g_factions;\n";
foreach ($factionz->getListviewData() as $id => $data) foreach ($factionz->getListviewData() as $id => $data)
@@ -361,7 +361,7 @@ if (!CLI)
set_time_limit(10); set_time_limit(10);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
$buff = ''; $buff = '';
foreach ($recipez->getListviewData() as $id => $data) foreach ($recipez->getListviewData() as $id => $data)
@@ -408,7 +408,7 @@ if (!CLI)
set_time_limit(5); set_time_limit(5);
User::useLocale($l); User::useLocale($l);
Lang::load(Util::$localeStrings[$l]); Lang::load($l);
$sumPoints = 0; $sumPoints = 0;
$buff = "var _ = g_achievements;\n"; $buff = "var _ = g_achievements;\n";

View File

@@ -176,7 +176,7 @@ if (!CLI)
foreach (CLISetup::$localeIds as $lId) foreach (CLISetup::$localeIds as $lId)
{ {
User::useLocale($lId); User::useLocale($lId);
Lang::load(Util::$localeStrings[$lId]); Lang::load($lId);
// TalentCalc // TalentCalc
foreach ($classes as $cMask) foreach ($classes as $cMask)