Thread: Atlantis
View Single Post
  #16  
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