sure there is a solution. You have to change my code to match what you see in your screenshot.
In my code change:
- Code: Select all
switch($sex)
{
case "Male":
$mainImg = $mainImg . "0-";
break;
case 'Female':
$mainImg = $mainImg . "1-";
break;
}
switch($race)
{
case 'Human':
$mainImg = $mainImg . "1-";
break;
case 'Orc':
$mainImg = $mainImg . "2-";
break;
case 'Dwarf':
$mainImg = $mainImg . "3-";
break;
case 'Night Elf':
$mainImg = $mainImg . "4-";
break;
case 'Undead':
$mainImg = $mainImg . "5-";
break;
case 'Tauren':
$mainImg = $mainImg . "6-";
break;
case 'Gnome':
$mainImg = $mainImg . "7-";
break;
case 'Troll':
$mainImg = $mainImg . "8-";
break;
case 'Blood Elf':
$mainImg = $mainImg . "10-";
break;
case 'Draenei':
$mainImg = $mainImg . "11-";
break;
}
switch($class)
{
case 'Warrior':
$mainImg = $mainImg . "1";
$classImg = $classImg . "1.gif";
break;
case 'Paladin':
$mainImg = $mainImg . "2";
$classImg = $classImg . "2.gif";
break;
case 'Hunter':
$mainImg = $mainImg . "3";
$classImg = $classImg . "3.gif";
break;
case 'Priest':
$mainImg = $mainImg . "5";
$classImg = $classImg . "5.gif";
break;
case 'Mage':
$mainImg = $mainImg . "8";
$classImg = $classImg . "8.gif";
break;
case 'Shaman':
$mainImg = $mainImg . "7";
$classImg = $classImg . "7.gif";
break;
case 'Rogue':
$mainImg = $mainImg . "4";
$classImg = $classImg . "4.gif";
break;
case 'Warlock':
$mainImg = $mainImg . "9";
$classImg = $classImg . "9.gif";
break;
case 'Druid':
$mainImg = $mainImg . "11";
$classImg = $classImg . "11.gif";
break;
}
with the correct translation. For example, Male is Homme, Warrior is Guerrier. Watch the CAPS, variables must be the same way they are stored in database.
Example:
- Code: Select all
switch($sex)
{
case "Homme":
$mainImg = $mainImg . "0-";
break;
case 'Femme':
$mainImg = $mainImg . "1-";
break;
}
This is usefull for everyone having problems with different languages version of wowroster