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 

runtime translation of strings

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



Joined: 22 Aug 2007
Posts: 4

PostPosted: Thu Aug 23, 2007 7:32 am    Post subject: runtime translation of strings Reply with quote

sorry, but is there a simple way to take advantage of translated strings stored in sib file (i load it ad runtime) to dynamically traslate a string ?

I try to explain better:

in hundreds of point in my source code I generated message that I stored in my database in an EventLog table.
I defined a function that receive stings to store in the database table.
In the table I want to both native language (italian) description and current language description (this is to allow me to undestand what is happend, for instance, in a greek installation of my software).

so I have several points of the type

Somestring:= silang.gettextordefault(IDS_.....);
AddLog(SomeString);


In function AddLog i want to get back the native language string corresponding to IDS_.... to store in the table both descriptions.

How can I do ?

thanks for the help
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Aug 23, 2007 9:33 am    Post subject: Reply with quote

You can try the following:

SomeString := siLang1.GetStringValue(siLang1.Strings, 'IDS_...', INDEX_OF_ITALIAN);
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