Localization:zhTW

Quick and easy way to see what recipes your character is missing

Moderators: zeryl, Teta68

Localization:zhTW

Postby hentai_ojisan » Fri Oct 13, 2006 2:16 pm

thanks for Rnmind post about how to fix for French use. it also can work for zhTW(Taiwan).
and sorry for my poor english. XD

change 3 files,too:
localization.php
index.php
missing.php

[1]localization.php
add these:

Code: Select all
$wordings['zhTW']['missingrecipes_addon'] = '失落的配方';
$wordings['zhTW']['mr_curlerror'] = "cURL could not be initialized, or is not installed.";
$wordings['zhTW']['unknownrecipes'] = "尚未學會的配方";
$wordings['zhTW']['professionunknown'] = "Sorry, this character does not know that profession, or knows no recipes at all.";
$wordings['zhTW']['failedretrieve'] = "Sorry, the query failed, and cannot determine what patterns are not known.";
$wordings['zhTW']['profession'] = "專業技能";

$wordings['zhTW']['Alchemy'] = '煉金術';
$wordings['zhTW']['First Aid'] = '急救';
$wordings['zhTW']['Cooking'] = '烹飪';
$wordings['zhTW']['Blacksmithing'] = '鍛造';
$wordings['zhTW']['Enchanting'] = '附魔';
$wordings['zhTW']['LeatherWorking'] = '製皮';
$wordings['zhTW']['Tailoring'] = '裁縫';
$wordings['zhTW']['Engineering'] = '工程學';


[2]index.php
find these 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']);


replace to theae code:

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']);


[3]missing.php
find these 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;
   }


replace to these code:

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;
   }


That's OK, thanks a lot.
Attachments
missingrecipe_zhtw.zip
zhTW Localization files for missingrecipes
(4.27 KiB) Downloaded 301 times
hentai_ojisan
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Fri Jul 14, 2006 10:52 am

Return to Missing Recipes

Who is online

Users browsing this forum: No registered users and 0 guests

cron