View Single Post
  #1  
Old 05-12-2013, 09:23 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
language translation

So, I am trying to understand how to use translations on Graal. Maybe someone could help me. This is what I have so far.

folderconfig
PHP Code:
file    translations/*.po
file    translations/en/*.po
file    translations/de/*.po 
serveroptions
PHP Code:
serverlanguage=en
defaultlanguage
=en
translatedlanguages
=es 
script
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
loadtranslation("test");
  
player.chat _("hello");

The file is in translations/es/test.po

Wasn't sure how to use _(), and how to set the language file up.

Also I read, but not well documented, http://www.graal.net/index.php/Creat...slation_System
Reply With Quote