svn[1377] gem_colours

Posts from previous Beta sessions

svn[1377] gem_colours

Postby maqjav » Tue Oct 09, 2007 2:02 am

At the end i found the problem with the locales and the gems colours.
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.
Last edited by maqjav on Tue Oct 09, 2007 6:36 am, edited 2 times in total.
maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron