Hello all,
I have implemented this fix but I have changed a little bit the code so that you don't have a specific language to use in the if condition. I have also added the special cases of Warlock and Paladin.
Here is what I have done for french:
- In
frFR.php (just after the line
- Code: Select all
$wordings['frFR']['PvPRankNone']=...
) add the line:
- Code: Select all
$wordings['frFR']['Riding'] = 'Monte';
- in
frFR.php, add the array:
- Code: Select all
$wordings['frFR']['riding_iconArray'] = array(
'Elfe de la nuit'=>'Ability_Mount_WhiteTiger',
'Humain'=>'Ability_Mount_RidingHorse',
'Nain'=>'Ability_Mount_MountainRam',
'Gnome'=>'Ability_Mount_MechaStrider',
'Mort-Vivant'=>'Ability_Mount_Undeadhorse',
'Troll'=>'Ability_Mount_Raptor',
'Tauren'=>'Ability_Mount_Kodo_03',
'Orc'=>'Ability_Mount_BlackDireWolf',
'Paladin'=>'Ability_Mount_Dreadsteed',
'Démoniste'=>'Ability_Mount_NightmareHorse'
);
- in
memberlist.php in the main query, just before
- Code: Select all
'`players`.`RankName`, '.
, add the line:
- Code: Select all
'`players`.`race`, '.
- in
memberlist.php, in the function tradeskill_icons, change the line:
- Code: Select all
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_iconArray'][$r_prof['skill_name']];
with:
- Code: Select all
if($r_prof['skill_name'] == $wordings[$row['clientLocale']]['Riding'])
if($row['class']==$wordings[$row['clientLocale']]['Paladin'] || $row['class']==$wordings[$row['clientLocale']]['Warlock'])
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['riding_iconArray'][$row['class']];
else
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['riding_iconArray'][$row['race']];
else
$skill_image = 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_iconArray'][$r_prof['skill_name']];
Then if you want it for us or de or whatever language, only the localization file needs to be changed.
For enUS:
- In
enUS.php (just after the line
- Code: Select all
$wordings['enUS']['PvPRankNone']=...
) add the line:
- Code: Select all
$wordings['enUS']['Riding'] = 'Riding';
- in
enUS.php, add the array:
- Code: Select all
$wordings['enUS']['riding_iconArray'] = array(
'Night Elf'=>'Ability_Mount_WhiteTiger',
'Human'=>'Ability_Mount_RidingHorse',
'Dwarf'=>'Ability_Mount_MountainRam',
'Gnome'=>'Ability_Mount_MechaStrider',
'Undead'=>'Ability_Mount_Undeadhorse',
'Troll'=>'Ability_Mount_Raptor',
'Tauren'=>'Ability_Mount_Kodo_03',
'Orc'=>'Ability_Mount_BlackDireWolf',
'Paladin'=>'Ability_Mount_Dreadsteed',
'Warlock'=>'Ability_Mount_NightmareHorse'
);
For deDE:
- In
deDE.php (just after the line
- Code: Select all
$wordings['deDE']['PvPRankNone']=...
) add the line:
- Code: Select all
$wordings['deDE']['Riding'] = 'Reiten';
- In
deDE.php, add the array:
- Code: Select all
$wordings['deDE']['Riding'] = array(
'Nachtelf'=>'Ability_Mount_WhiteTiger',
'Human'=>'Ability_Mount_RidingHorse',
'Zwerg'=>'Ability_Mount_MountainRam',
'Gnom'=>'Ability_Mount_MechaStrider',
'Untoter'=>'Ability_Mount_Undeadhorse',
'Troll'=>'Ability_Mount_Raptor',
'Tauren'=>'Ability_Mount_Kodo_03',
'Orc'=>'Ability_Mount_BlackDireWolf',
'Paladin'=>'Ability_Mount_Dreadsteed',
'Hexenmeister'=>'Ability_Mount_NightmareHorse'
);
Hopes it will be integrated in the main branch.
Regards.
Romish