Spanish is dumb, lol
We need to figure out how to handle it
- Code: Select all
$lang['gem_preg_singlecolor'] = '/Matches a (\w+) Socket/';
$lang['gem_preg_multicolor'] = '/Matches a (\w+) or (\w+) Socket/';
$lang['gem_preg_meta'] = '/Only fits in a meta gem slot/';
$lang['gem_preg_prismatic'] = '/Matches a Red, Yellow or Blue Socket/';
$lang['gem_colors'] = array(
'red' => 'Red',
'blue' => 'Blue',
'yellow' => 'Yellow',
'green' => 'Green',
'orange' => 'Orange',
'purple' => 'Purple',
'prismatic' => 'Prismatic',
'meta' => 'Meta'
);
All of these strings contribute to gem color matching
So only the top 4 strings need to be accounted for
Only the color names seen in these strings need to be listed and it will be ok as long we we label this section that the 'gem_colors' array should only be used for this matching
I think these strings are also only found on the gems themselves, unsocketed
Now, if both spellings are present in these strings, then we have a problem and need to rewrite this section
This line matches a meta gem
- Code: Select all
elseif( preg_match( $roster->locale->wordings[$this->locale]['gem_preg_meta'], $line ) )
'/Only fits in a meta gem slot/'
This line matches a multi color gem: such as purple, orange, and green
- Code: Select all
elseif( preg_match( $roster->locale->wordings[$this->locale]['gem_preg_multicolor'], $line, $colors ) )
'/Matches a (\w+) or (\w+) Socket/'
This line matches a single color gem
- Code: Select all
elseif( preg_match( $roster->locale->wordings[$this->locale]['gem_preg_singlecolor'], $line, $colors ) )
'/Matches a (\w+) Socket/
This matches a prismatic
- Code: Select all
elseif( preg_match( $roster->locale->wordings[$this->locale]['gem_preg_prismatic'], $line ) )
'/Matches a Red, Yellow or Blue Socket/'