Translating GUI verbs in Tumbleweed template

Started by Nadarian, Tue 28/07/2020 12:05:47

Previous topic - Next topic

Nadarian

Hi there!

My game is almost ready, but there's still one thing I can't figure out: I already translated the game into the 3 languages I speak, but there's one thing that's not "selftranslating": The GUI verbs.

I read the template pdf instructions in the game folder, but still, I don't understand how can you get the verbs translated when choosing your preferred language in the winsetup.exe. It makes you look into the "guiscript.asc" file, but there's no such file in the folders nor in the editor. It makes you look for this  line:
Code: ags
int lang = eLangEN;
, but I can't find it anywhere in the editor.

So, is it possible to change the language in your GUI by setting your language when running the game?
And then, I have another question: I worked with a language that isn't built in the game. Could I for example modify the verbs in an existing language (french, or portuguese for example) and associate them with the new translation I created (catalan)?


Thanks in advance!!

Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Khris

In your translation source, look for the line that says

GUI_LANGUAGE

Directly below, put de, es, fr, en or it to translate the GUI.

The relevant lines are in Scripts -> Tumbleweed -> TemplateSettings.asc -> game_start

Nadarian

As simple as that!
My translation text file was probably the only place I had left to look for this GUI_LANGUAGE line...!

Ok, with the art in part of the backgrounds pending, I think I'm done scripting!! So happy and so excited to show it and start testing it right now..!


Thanks a lot, Khris! I promise my next game I won't do it all by myself, but next to an expert coder!  :P
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

SMF spam blocked by CleanTalk