Translating

Started by Vincent, Mon 31/03/2014 22:50:13

Previous topic - Next topic

Vincent

Good Evening To All AGSer,

I Have Another Umpteenth Question For You...
For Me It Is The First Time I'd Love To Do A Translation In AGS.

How Can I Implement A Translation ?!
Could Someone Suggest Me How To Do That ?
Or, Could Someone Give Me A Practical Example ?!

Thanks In Advance Guys, :)
Ciao Khris

selmiak

Do you want to translate your own game or someone elses game? If you want to translate your own game it's all in the manual, you generate a translation file, translate it line after line and then compile the game and AGS creates a translation file you can select via the winsetup. If you want to translate an already existing game your best strategy is to contact the author of the game and if the author likes the game in question translated you will probably receive this file you translate line after line and there you go.

Vincent

Thanks selmiak for answering.
I would like to translate one of the game that I did before.
I think I understand.
What do you mean exactly with generate a translation file ?




selmiak

at the bottom of the project tree rightclick on translations and give the new language a name that the native speakers will also understand and after some more confirmations AGS creates the new file that wants to be translated in the game files directory with the name you gave it.

Vincent

Okay I see
After generate the translation file,
it can be chosen within the game or it can be selected only via winsetup ?

Crimson Wizard

How to change translation in game: look for "Game.ChangeTranslation" and "Game.IsTranslationAvailable" in the manual.

Vincent

Thanks Crimson Wizard for answering.
In this game i should do a translation only for one language, Italian.
So the new line should be written earlier than the original ?

Code: ags

//Example
InventoryItem *item = InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
if (mouse.Mode == eModeUseinv)
{
    if (item.IsInteractionAvailable(eModeUseinv))
    {
      item.RunInteraction(eModeUseinv);
    }
    else
    {
      player.ActiveInventory = null;
      player.Think("(They Won't Work Together)");	
    }
}

Ghost

Quote from: VinVin on Wed 02/04/2014 23:49:09
So the new line should be written earlier than the original ?

I think you misunderstood the concept of a translation file; you don't need to provide translations within the game's script ;)

Create a translation file, as selmiak explained.
Now open that file with a plain text editor (I recommend NotePad++).
You will find all your original game's text in there, with empy lines in between.
To make a translation, just write the translated text into the empty line UNDER the original line.
Then rename the trs file into Italian.trs.
Import it into AGS.
NOW you have a working translation.

Vincent

oh, I was understanding very wrong.
I am sorry, i need to try this for more.

Thanks Ghost For Answering.

SpeechCenter

For external editing see if this tool helps http://www.adventuregamestudio.co.uk/forums/index.php?topic=46417.0
The Speech Center plugin also has translation editing, amongst other things http://www.adventuregamestudio.co.uk/forums/index.php?topic=45622.0

Vincent

Thanks SpeechCenter For Showing.
I'll Watch Them Both About Now.

SMF spam blocked by CleanTalk