Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-17-2012, 06:21 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by callimuc View Post
regarding the textbox script, they wanted to use graals translation thingy
Indeed. Plan was English + German. Not sure if N-Pulse's bush is really taken from Dusty though, might really just be a LttP remake; we'll see. If they take any graphics from Atlantis, I'll know
Reply With Quote
  #2  
Old 12-17-2012, 06:23 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
Indeed. Plan was English + German. Not sure if N-Pulse's bush is really taken from Dusty though, might really just be a LttP remake; we'll see. If they take any graphics from Atlantis, I'll know
Alot of time they would tell me if they changed the color's around it was not copying.. it really looks like Dusties remake of lttp tho..

But your saying that the Graal Translation didn't work? And how does that work exactly? Is it some sort of scripting for translation or doe's graal attempt to translate it all itself ?
Reply With Quote
  #3  
Old 12-17-2012, 06:26 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
But your saying that the Graal Translation didn't work?
I did? I don't think so It does work. You just provide all translation files, and if it can't find any for the selected client language, it will default to the original input text. I can provide more details on the system later, bit busy right now.
Reply With Quote
  #4  
Old 12-17-2012, 06:34 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
callimuc, threw you some Rep ++... thanks for the information, it is very useful. crow, I think I rep you to much also.. lmao because ALOT of people I cannot rep... fccmike, crono, u, dusty... i mean wow I must rep ++ alot.. xD

Quote:
Originally Posted by Crow View Post
I did? I don't think so It does work. You just provide all translation files, and if it can't find any for the selected client language, it will default to the original input text. I can provide more details on the system later, bit busy right now.
Sorry read wrong post, I was reading how callimuc said "they wanted to" and assumed that it was saying it didn't work.

That's neat. Tho does graal have languages anymore?

Edit: It does.. didn't it used to be on the first screen that poped up where you entered in your login info?
Reply With Quote
  #5  
Old 12-17-2012, 06:38 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
Edit: It does.. didn't it used to be on the first screen that poped up where you entered in your login info?
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 (file names for translations were atlantis_en.po and atlantis_de.po, and just atlantis.po for serverside ones):
PHP Code:
loadTranslation("atlantis"); 
The rest of the magic is done by Graal and the _() function.
Reply With Quote
  #6  
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
  #7  
Old 12-17-2012, 06:53 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
so would it work like this?

translatedlanguages=de,fr,more languages
It should!


Quote:
Originally Posted by scriptless View Post
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?
It's the name of the translation file, yes. I just now wonder if it automatically appends the underscore and language domain (the two characters used to shorten the language) or the files without the language domain appended were for clientside translations after all.. well, just give it a shot! RC should also output some nifty messages when uploading the serverside translation files. If that hasn't been removed, that is.
Reply With Quote
  #8  
Old 12-17-2012, 06:29 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by scriptless View Post
Alot of time they would tell me if they changed the color's around it was not copying.. it really looks like Dusties remake of lttp tho..

But your saying that the Graal Translation didn't work? And how does that work exactly? Is it some sort of scripting for translation or doe's graal attempt to translate it all itself ?
well you can have a translation by doing something like
PHP Code:
echo( _("hello") ); 
which would translate it into the clients language being set (i think changeable through the f3 options but im not sure since i have only been using this on iEra even though the translations are never updated)

im not too sure if there are any guidelines for uploading the translations, but in case you want to see how the file would have to look like, simply check your graal folder - levels - translations and open one of those .po files with a text editor
__________________
MEEP!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:52 AM.


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