Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Shadow on Fri 21/11/2003 16:46:07

Title: Translation of the GUI
Post by: Shadow on Fri 21/11/2003 16:46:07
I need a german translation of the MI-GUI. How can I translate the script, what do I need to edit?
Title: Re:Translation of the GUI
Post by: Scummbuddy on Fri 21/11/2003 18:33:51
Wait, do you want an english version of the MI GUIs, or do you want a German version, because both are available, but made by different people.

I'm sorry, now that  I did a search, I don't think there is a german scumm GUI to download. Some people have them, but I can't find a page with one for you.

If only someone had some sort of giant AGS resource page... and it was updated with everyones contributions....
Title: Re:Translation of the GUI
Post by: SSH on Fri 21/11/2003 19:05:53
If you look in the global script once you ahve started a game with the templates, you will see that Proskito put in stuff for Spanish translations, so just add in stuff for German... search for "translation" or "Spanish" int he global script.
Title: Re:Translation of the GUI
Post by: Shadow on Fri 21/11/2003 21:17:46
How do I activate this translation, after I found it in the script ????
Title: Re:Translation of the GUI
Post by: Scummbuddy on Sat 22/11/2003 05:55:14
you open up a browser window of altavista's babel fish, highlight text in the ags editor, and put it in the convertor, get what it translates, fix the semiright translation to correct grammar, and then paste it over the old words in the ags editor.
Title: Re:Translation of the GUI
Post by: Shadow on Sat 22/11/2003 16:37:56
Yes, but what do I have to put into the Script, so that he uses the Translation?!
Title: Re:Translation of the GUI
Post by: Proskrito on Sat 22/11/2003 20:21:40
if you cant wait to the new version i´ll be uploading today or tomorrow that makes that thing more understandable:
if you want the game not to be in english by default, you could modify the Translate function as this:

/**/function Translate(string what){
/**/
/**/ //This is used only if there are any translations
/**/  string translation;
/**/  GetTranslationName(translation);

if (IsTranslationAvailable()==0){ // if no translation file is being used
   SetTranslation(what,"walk to","ir a");
   SetTranslation(what,"pick up","coger");
   SetTranslation(what,"open","abrir");
   .......
}
else if (IsTranslationAvailable()==1){
   if (StrCaseComp(translation..... // the translations for other languages...

that is, changing 'ir a', 'coger' and 'abrir' and so with the words in your language.

EDIT:
or, you could also make your game directly in your language. A fast way to do it would be dumping the script to a txt file (from the 'game' menu), open it in a text editor that allows a 'replace all' kind of function, and then replace every "walk to" with the words in you language, "look at", "use".... every verb or preposition used, and then loading the script back to AGS (after making a back up ;) ).
That way instead of if (UsedMode("look at")) you would use the word in your lang, and the same for setting modes and so on.
However, you could also replace them one by one, but that would be boring ; )

I hope i make any sense.  :)
Title: Re:Translation of the GUI
Post by: Shadow on Sun 23/11/2003 10:44:21
Yes, thank you Proskito I think I got it.