mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Localization/WoW strings
* generalize WoW UI escape sequence handling * implement use of declinated words from dbc for locale 8 (ruRU)
This commit is contained in:
@@ -77,6 +77,7 @@ function setup() : void
|
||||
['SqlGen::generate', 'item_stats', null, null, null],
|
||||
['SqlGen::generate', 'source', null, null, null],
|
||||
['SqlGen::generate', 'sounds', null, null, null],
|
||||
['SqlGen::generate', 'declinedwords', null, null, null],
|
||||
['FileGen::generate', 'soundfiles', null, null, null],
|
||||
['FileGen::generate', 'searchplugin', null, null, null],
|
||||
['FileGen::generate', 'power', null, null, null],
|
||||
|
||||
@@ -58,6 +58,8 @@ class DBC
|
||||
'creaturemodeldata' => 'nxxxxxxxxxxxxixxxxxxxxxxxxxx',
|
||||
'creaturesounddata' => 'niiiixiiiiiiiiixxxxixxxxixiiiiixxiiiix',
|
||||
'currencytypes' => 'niix',
|
||||
'declinedword' => 'ns',
|
||||
'declinedwordcases' => 'niis',
|
||||
'dungeonmap' => 'niiffffi',
|
||||
'durabilitycosts' => 'niiiiiiiiixiiiiiiiiiiixiiiixix',
|
||||
'durabilityquality' => 'nf',
|
||||
@@ -163,6 +165,8 @@ class DBC
|
||||
'creaturemodeldata' => 'id,creatureSoundId',
|
||||
'creaturesounddata' => 'id,exertion,exertionCritical,injury,injuryCritical,death,stun,stand,footstepTerrainId,aggro,wingFlap,wingGlide,alert,fidget,customAttack,loop,jumpStart,jumpEnd,petAttack,petOrder,petDismiss,birth,spellcast,submerge,submerged',
|
||||
'currencytypes' => 'id,itemId,category',
|
||||
'declinedword' => 'id,word',
|
||||
'declinedwordcases' => 'id,wordId,caseIdx,word',
|
||||
'dungeonmap' => 'id,mapId,floor,minY,maxY,minX,maxX,areaId',
|
||||
'durabilitycosts' => 'id,w0,w1,w2,w3,w4,w5,w6,w7,w8,w10,w11,w12,w13,w14,w15,w16,w17,w18,w19,w20,a1,a2,a3,a4,a6',
|
||||
'durabilityquality' => 'id,mod',
|
||||
|
||||
29
setup/tools/sqlgen/declinedword.func.php
Normal file
29
setup/tools/sqlgen/declinedword.func.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
if (!defined('AOWOW_REVISION'))
|
||||
die('illegal access');
|
||||
|
||||
if (!CLI)
|
||||
die('not in cli mode');
|
||||
|
||||
|
||||
SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'declinedwords';
|
||||
protected $dbcSourceFiles = ['declinedword', 'declinedwordcases'];
|
||||
|
||||
public function generate() : bool
|
||||
{
|
||||
CLI::write('SqlGen::generate() - copying declinedword.dbc into aowow_declinedword');
|
||||
DB::Aowow()->query('TRUNCATE ?_declinedword');
|
||||
DB::Aowow()->query('INSERT INTO ?_declinedword SELECT * FROM dbc_declinedword');
|
||||
|
||||
CLI::write('SqlGen::generate() - copying declinedwordcases.dbc into aowow_declinedwordcases');
|
||||
DB::Aowow()->query('TRUNCATE ?_declinedwordcases');
|
||||
DB::Aowow()->query('INSERT INTO ?_declinedwordcases SELECT `wordId`, `caseIdx`, `word` FROM dbc_declinedwordcases');
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user