Page 1 of 1

Gettext function

Posted: Mon Oct 18, 2004 2:15 am
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

Posted: Mon Oct 18, 2004 4:49 am
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().