How to translate textbox?

Started by Sledgy, Fri 01/08/2014 17:55:05

Previous topic - Next topic

Sledgy

Can some new AGS engine do it?


It used extra script - Parser.asc with lines as

Code: ags
if (S=="look") Display("Look command");



I need to translate 'look' to 'smotri' (for ex). I can translate Display's text via TRA, but I can't do it with 'look', although this word exists in TRS

Bug?

Crimson Wizard

#1
Use "GetTranslation":
Code: ags

if (S==GetTranslation("look")) Display("Look command");


Although, in my opinion, this direct approach does not work well for parsers, because every language may have different number of synonims. I'd rather implement some kind of dictionary system and use numeric IDs to define action... Just a thought.

SMF spam blocked by CleanTalk