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.
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.
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.




Mattie posted on 2008-03-05 15:56:00