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 

Hard-Coded Strings, Captions, and Hints

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



Joined: 25 Oct 2011
Posts: 3

PostPosted: Tue Dec 13, 2011 7:42 pm    Post subject: Hard-Coded Strings, Captions, and Hints Reply with quote

I have a DataModule with Dispatcher and TsiLang and all other forms have TsiLangLinked with common container and dispatcher set appropriately. On all these forms, I ran the "Const Section - With form..." to identify all strings and I end up with many of these forms having the same string defined (ie. String str = "some string").

1. Is there a way that the tsi component can automatically detect the string "some string" and put it in the TsiLang on the DataModule or somehow grab it from a single location? Right now I'm grabbing the translation from the dictionary manager.

2. What's the best way to implement a common container for the captions and hints?

Thank you.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Dec 14, 2011 11:26 am    Post subject: Reply with quote

Hello,

1. The only way for this case is to extract all of these hard-coded strings into separate unit and then use Const Section - Without form to translate them. In this was all of them will be palced into one data module as well as there won't be duplicates as TsiLang Expert automatically detects already translated terms.

2. Captions and hints are quite form-related so they all will be stored in separated untis. So I doubt there is anything possible to implement as "common container".
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