SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gettext function

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
Terry



Joined: 04 Oct 2004
Posts: 2
Location: Auckland, NZ

PostPosted: Mon Oct 18, 2004 2:15 am    Post subject: Gettext function Reply with quote

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
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Mon Oct 18, 2004 4:49 am    Post subject: Reply with quote

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().
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group