Question about AGS translations

Started by InCreator, Mon 10/01/2005 12:29:35

Previous topic - Next topic

InCreator

I wanted to ask (and supposed it's the right forum for this):

How does engine handle translation files? Is there some variable containing translation textfile's name passed to game?

For example, I have some GUI icons. With text over them (drawn, not gui elements). If I'd draw several copies of GUI verb icons with different languages, is there any way to make game change them according to the language selected from game setup?

I know how to change, but just don't know can I, or how to check which translation file is in the use at the moment.

I hope my question is understandable...  :P

Rui 'Trovatore' Pires

Yeah. You have a thingie called IsTranslationAvailable. There's also one to find out WHICH translation it's being used. In game.start, you can change the graphics according to the results of the check.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

InCreator

Oh. That function.
Thanks.

...

*feeling really, really n00b now

Proskrito

that function will tell you if you are using a translation file or not, but if several translations are available you'll have to use GetTranslationName to find which one is currently being used

Rui 'Trovatore' Pires

Yeah, GetTranslationName. THAT's the one I meant by
QuoteThere's also one to find out WHICH translation it's being used.
Thanks.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

SMF spam blocked by CleanTalk