Language Problem

Dragonfly integration forum

Language Problem

Postby KaguraS » Wed Mar 05, 2008 12:27 pm

I have DF Roster, and I have a little problem with the language.

Because, not all in my guild use the enUS client, the BG Log doesnt show the stats right for every BG.

In esES version Warsong Gulch is called "Garganta Grito de Guerra", my roster it's configured for esES version, then everyone who use the enUS client can't see the stats of the bg.

So if you understand my post :P, how Can I make a multi-language for that?

Can I add more BG to the roster? or tweak something, to make it compatible?

Thanks
User avatar
KaguraS
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Wed Feb 20, 2008 8:44 am

Language Problem

Postby KaguraS » Thu Mar 06, 2008 1:27 pm

Well dont worry, I found myself a solution.

in the localization file esES.php

Find

Code: Select all
$wordings['esES']['warsong_gulch']='Garganta Grito de Guerra'


Added this after
Code: Select all

$wordings
['esES']['alterac_valley2']='Alterac Valley';
$wordings['esES']['arathi_basin2']='Arathi Basin';
$wordings['esES']['warsong_gulch2']='Warsong Gulch'


and in lib\pvp3.php

find

Code: Select all
    $bg_array = array(
        
'alterac_valley',
        
'arathi_basin',
        
'warsong_gulch'


added after
Code: Select all

        
'alterac_valley2',
        
'arathi_basin2',
        
'warsong_gulch2'


now I have 6 BG in the BG log, but at least, I can see the stats for everyone

If you can helpme add a better solution, thank you
User avatar
KaguraS
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Wed Feb 20, 2008 8:44 am

Language Problem

Postby zanix » Thu Mar 06, 2008 11:28 pm

Open lib/pvp3.php
Find (Around Line 325)
Code: Select all
if( $row->data['zone'] == $wordings[$roster_conf['roster_lang']][$bgname] ) 


Replace with
Code: Select all
if( $row->data['zone'] == $wordings[$char->data['clientLocale']][$bgname] ) 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Language Problem

Postby KaguraS » Fri Mar 07, 2008 4:52 am

I had tried it before, but not in that line :þ thanks zanix u r the best ;)
User avatar
KaguraS
WR.net Apprentice
WR.net Apprentice
 
Posts: 40
Joined: Wed Feb 20, 2008 8:44 am

Language Problem

Postby zanix » Fri Mar 07, 2008 5:06 am

Notta problem

I came across this bug when developing Roster 2.0
Last edited by zanix on Fri Mar 07, 2008 5:06 am, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 0 guests

cron