Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 12-17-2012, 06:43 PM
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
Quote:
Originally Posted by Crow View Post
Yup, that's where it was. This is the folder config stuff for translations on Atlantis:
PHP Code:
file    translations/*.po
file    translations/en/*.po
file    translations/de/*.po 
I believe clientside translation files were put into levels/translations/*, and serverside ones in their respective sub folders. Then, in the server options, we have this:
PHP Code:
serverlanguage=en
defaultlanguage
=en
translatedlanguages
=de 
Finally, in a system WNPC:
PHP Code:
loadTranslation("atlantis"); 
The rest of the magic is done by Graal and the _() function.
so would it work like this?

translatedlanguages=de,fr,more languages

and for loadTranslation("atlantis"); thats the name of the po file, right? im under the impression that you only need the loadTranslations once, and it will load for any language set?
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 12:13 PM.


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