- index.php
- missing.php
- localization.php
First we are going to initialize variables in localization.php.
--> Localization.php:
Simply add these lines juste before the credits variables.
- Code: Select all
$wordings['frFR']['Alchemy'] = 'Alchimie';
$wordings['frFR']['First Aid'] = 'Secourisme';
$wordings['frFR']['Cooking'] = 'Cuisine';
$wordings['frFR']['Blacksmithing'] = 'Forge';
$wordings['frFR']['Enchanting'] = 'Enchantement';
$wordings['frFR']['LeatherWorking'] = 'Travail du cuir';
$wordings['frFR']['Tailoring'] = 'Couture';
$wordings['frFR']['Engineering'] = 'Ingénierie';
Notice, that i'm not sure of the enconding of engineering profession.
I haven't yet some engineer in my roster so i cannot really test.
Then we must edit index.php, to reflect these changes.
--> index.php, Line 23
Change this code:
- Code: Select all
$professions = array(
"Alchemy" => $wordings[$roster_conf['roster_lang']]['Alchemy'],
"Blacksmithing" => $wordings[$roster_conf['roster_lang']]['Blacksmithing'],
"Cooking" => $wordings[$roster_conf['roster_lang']]['Cooking'],
"Enchanting" => $wordings[$roster_conf['roster_lang']]['Enchanting'],
"Engineering" => $wordings[$roster_conf['roster_lang']]['Engineering'],
"Firstaid" => $wordings[$roster_conf['roster_lang']]['First Aid'],
"LeatherWorking" => $wordings[$roster_conf['roster_lang']]['LeatherWorking'],
"Tailoring" => $wordings[$roster_conf['roster_lang']]['Tailoring']);
By this one:
- Code: Select all
$professions = array(
$wordings[$roster_conf['roster_lang']]['Alchemy'] => $wordings[$roster_conf['roster_lang']]['Alchemy'],
$wordings[$roster_conf['roster_lang']]['Blacksmithing'] => $wordings[$roster_conf['roster_lang']]['Blacksmithing'],
$wordings[$roster_conf['roster_lang']]['Cooking'] => $wordings[$roster_conf['roster_lang']]['Cooking'],
$wordings[$roster_conf['roster_lang']]['Enchanting'] => $wordings[$roster_conf['roster_lang']]['Enchanting'],
$wordings[$roster_conf['roster_lang']]['Engineering'] => $wordings[$roster_conf['roster_lang']]['Engineering'],
$wordings[$roster_conf['roster_lang']]['First Aid'] => $wordings[$roster_conf['roster_lang']]['First Aid'],
$wordings[$roster_conf['roster_lang']]['LeatherWorking'] => $wordings[$roster_conf['roster_lang']]['LeatherWorking'],
$wordings[$roster_conf['roster_lang']]['Tailoring'] => $wordings[$roster_conf['roster_lang']]['Tailoring']);
Once this is done, the same changes to missing.php.
--> missing.php, Line 24:
Replace this code:
- Code: Select all
switch($skill)
{
case 'Alchemy':
$url = 'http://wow.allakhazam.com/db/skill.html?line=171';
break;
case 'Blacksmithing':
$url = 'http://wow.allakhazam.com/db/skill.html?line=164';
break;
case 'Cooking':
$url = 'http://wow.allakhazam.com/db/skill.html?line=185';
break;
case 'Enchanting':
$url = 'http://wow.allakhazam.com/db/skill.html?line=333';
break;
case 'Engineering':
$url = 'http://wow.allakhazam.com/db/skill.html?line=202';
break;
case 'Firstaid':
$url = 'http://wow.allakhazam.com/db/skill.html?line=129';
$skill = 'First Aid';
break;
case 'Leatherworking':
$url = 'http://wow.allakhazam.com/db/skill.html?line=165';
break;
case 'Tailoring':
$url = 'http://wow.allakhazam.com/db/skill.html?line=197';
break;
default:
$url ='';
break;
}
By this one:
- Code: Select all
switch($skill)
{
case $wordings[$roster_conf['roster_lang']]['Alchemy']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=171&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['Blacksmithing']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=164&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['Cooking']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=185&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['Enchanting']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=333&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['Engineering']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=202&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['First Aid']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=129&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['LeatherWorking']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=165&locale='.$roster_conf['roster_lang'];
break;
case $wordings[$roster_conf['roster_lang']]['Tailoring']:
$url = 'http://wow.allakhazam.com/db/skill.html?line=197&locale='.$roster_conf['roster_lang'];
break;
default:
$url ='';
break;
}
And now your addon should work for the french datas.