Translation of the GUI

Started by Shadow, Fri 21/11/2003 16:46:07

Previous topic - Next topic

Shadow

I need a german translation of the MI-GUI. How can I translate the script, what do I need to edit?

Scummbuddy

#1
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....
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SSH

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.
12

Shadow

How do I activate this translation, after I found it in the script ????

Scummbuddy

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.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Shadow

Yes, but what do I have to put into the Script, so that he uses the Translation?!

Proskrito

#6
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:
Code: ags

/**/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.  :)

Shadow

Yes, thank you Proskito I think I got it.

SMF spam blocked by CleanTalk