I will explain the problem with examples.
When you have a gem to your inventory, it has the string:
- Code: Select all
"Matches a COLOUR Socket."
And it find the COLOUR in the next array:
//Gems color Array
$lang['gem_colors'] = array(
'red' => 'rojo',
'blue' => 'azul',
'yellow' => 'amarillo',
'green' => 'verde',
'orange' => 'naranja',
'purple' => 'lila',
'prismatic' => 'centelleante',
'meta' => 'Meta'
);
// -- end tooltip parsing
When you have an item without gems but with sockets for put them, it has the strings:
- Code: Select all
COLOUR Socket
And it should find the COLOUR to the line:
- Code: Select all
$lang['tooltip_preg_emptysocket']='/^(Red|Yellow|Blue|Meta) Socket$/';
But... it doesn't do it, it goes to find it to the array:
$lang['gem_colors'] = array(
'red' => 'rojo',
'blue' => 'azul',
'yellow' => 'amarillo',
'green' => 'verde',
'orange' => 'naranja',
'purple' => 'lila',
'prismatic' => 'centelleante',
'meta' => 'Meta'
);
// -- end tooltip parsing
...and like it doesn't match, then it show a php error and it doesn't show the colour icons.
What is the problem?. In spanish, we use a male word in the first string, and a female word in the second, and the colours have diferent names.
- Code: Select all
male (red) -> rojo
- Code: Select all
female (red) -> roja
For the last. If you have an item with gems, it shows the icons perfectly without problems.
You can watch the problem changing for example "red" to "reda" in your array, and see what happend in both cases.