featurelist.orgfeaturelist.org
 
U
D
2 points - posted 260 days ago by Omega_K2 - status: Rejected - 4 comments watch embed this
I think it would be very useful if there is a language variable for the console (admins can choose the language in their xa.cfg). So some console messages could be translated, too.

Mattie posted on 2008-03-05 15:56:00
EventScripts should be using eventscripts_language for the default server language and XA should respect that (I assume). Does this not work?

Omega_K2 posted on 2008-03-05 16:35:04
Hm.. Well, I tried to use playerlib (the one released with 2.0.0.247) to retrieve the language of the server:<br><br>

console = playerlib.getPlayer(0)<br><br>

But I'll get this error:<br><br>

UseridError: 0 is an invalid userid<br><br>

I wanted to use it for the language localisation helper. So this won't work for me:<br><br>

xalng("console", tokens, console.get('lang'))<br><br>

On the other hand I didn't know that eventscriptslauguage does exist anyway. I'll use es.getString(eventscriptslanguage) instead.. thank you.

mback2k posted on 2008-04-19 00:35:17
Maybe playerlib should support a method to just get the language by userid and also allow 0 to be submitted as console?

Mattie posted on 2008-04-19 01:21:12
Why? Just use eventscripts_language?