Gettext function

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Terry
Posts: 2
Joined: Mon Oct 04, 2004 10:20 pm
Location: Auckland, NZ

Gettext function

Post by Terry »

I'm a little confused by the gettext (StringID : string) call. If a language has no entry for a value, isn't it supposed to return the default (0) language entry?

Cheers
Terry
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

GetTextOrDefault() will always return default (first) language value if no translation available.
GetText() will return default value only if you have in TsiLang's TranslateType = ttGetDefault. By default this property has value ttNoChange in order to prevent changing the UI elements when no translations available.
So just use GetTextOrDefault() isntead of GetText().
Post Reply