mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spells/Sounds
* get sounds from ScreenEffect.dbc and link to type Spell and type Sound * resolve ScreenEffect name in SpellDetailPage Fixup * fix warning in UI escape sequence parsing
This commit is contained in:
@@ -795,7 +795,7 @@ class Lang
|
||||
// |4 - numeric switch <number> |4<singular>:<plural>[:<plural2>];
|
||||
$var = preg_replace_callback('/([\d\.\,]+)([^\d]*)\|4([^:]*):([^:;]+)(?::([^;]+))?;/i', function ($m)
|
||||
{
|
||||
[$_, $num, $pad, $singular, $plural1, $plural2] = $m;
|
||||
[$_, $num, $pad, $singular, $plural1, $plural2] = array_pad($m, 6, null);
|
||||
|
||||
if (self::$locId != LOCALE_RU || !$plural2)
|
||||
return $num . $pad . ($num == 1 ? $singular : $plural1);
|
||||
|
||||
Reference in New Issue
Block a user