Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.