Localization FR, Official topic

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

Moderators: zeryl, Teta68

Re: Localization FR, Official topic

Postby Juzam » Fri Oct 06, 2006 6:31 pm

Yes that's the same :

On this :
http://wow.allakhazam.com/db/skill.html ... ocale=frFR

If u clic on "Protection contre le feu supérieure" (Wrong name) u will see "Protection contre le Feu supérieure" (Good name but not the one that are used in the missing recipe code.)

"f" instead of "F"

Have already send a mail to Alakazham but no answer...
Last edited by Juzam on Fri Oct 06, 2006 6:32 pm, edited 1 time in total.
User avatar
Juzam
WR.net Apprentice
WR.net Apprentice
 
Posts: 21
Joined: Wed Aug 09, 2006 10:39 am

Localization FR, Official topic

Postby Corwin_Whitehorn » Tue Oct 24, 2006 4:41 am

Blizzard usually make corrections like that during the updates. A translator nightmare... "Feu" becomes "feu" aso
Image
User avatar
Corwin_Whitehorn
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Fri Aug 18, 2006 6:18 pm

Localization FR, Official topic

Postby luinil » Sun Apr 01, 2007 7:38 pm

I'm using a sort of hash to avoid accentued and case sensitive search.

First creating a function mykey then calling it beffore diff phase.

So basically at the end of missing.php I add
Code: Select all
function mykey( $value ) {
    $t=preg_replace('/[^a-zA-Z]/','-',$value);
    $t=preg_replace('/-(-)+/','-',$t);
    $t=strtolower($t);
    return $t;
}


then replace
Code: Select all
foreach($recipes as $nr => $keys)
{
   $allrecipes[] = $keys['name'];
}

by
Code: Select all
foreach($recipes as $nr => $keys)
{
   $k_tmp=mykey($keys['name']);
   $allrecipes[] = $k_tmp;
}


and
Code: Select all
while($row = $wowdb->fetch_array($results))
{   
   $known[] = $row['recipe_name'];
}

by
Code: Select all
while($row = $wowdb->fetch_array($results))
{   
   $k_tmp=mykey($row['recipe_name']);
   $known[] = $k_tmp;
}


AND finally :
Code: Select all
<td class="membersRow'. (($striping_counter % 2) +1) .'"><a href="'.$link.'"> '.$value.'</a>'.(isset($ptotal) ? $ptotal : "").'</td>

by
Code: Select all
<td class="membersRow'. (($striping_counter % 2) +1) .'"><a href="'.$link.'"> '.$recipes[$key]['name'].'</a>'.(isset($ptotal) ? $ptotal : "").'</td>

Hope this help...

Luinil
luinil
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Mon Jul 24, 2006 11:45 am

Previous

Return to Missing Recipes

Who is online

Users browsing this forum: No registered users and 1 guest

cron