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 

How to translate an include file

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



Joined: 18 Jul 2005
Posts: 8

PostPosted: Mon Jul 18, 2005 9:08 am    Post subject: How to translate an include file Reply with quote

Hi,

I have a third-party library that uses an INC file to declare some common strings. How do I translate that with TsiLang?

I tried adding the file to the project and then "File/Const Section/Without Form..." from the TsiLang Expert but the following dialog ("Translating units without form") does not show my INC file.

I also tried to add one of the PAS files using the INC file to my project. But only the strings contained directly in the pas file show up for translation. The include file is not scanned for translatable strings. To be honest I did not expect this approach to work.

What to do?

Best regards
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Mon Jul 18, 2005 9:21 am    Post subject: Reply with quote

Hello,

Are these strings in INC file declared as VAR/CONST or as resourcestring?
In case they are declared as resource strings then you can use "resource handling" for translate them.
Back to top
View user's profile Send private message
StefanP



Joined: 18 Jul 2005
Posts: 8

PostPosted: Mon Jul 18, 2005 9:34 am    Post subject: Reply with quote

isiticov wrote:
Hello,

Are these strings in INC file declared as VAR/CONST or as resourcestring?
In case they are declared as resource strings then you can use "resource handling" for translate them.


The strings are indeed defined in a resource string section. I will try what you suggest and come back to you if I need further help.

Thanks so far
Back to top
View user's profile Send private message
StefanP



Joined: 18 Jul 2005
Posts: 8

PostPosted: Mon Jul 18, 2005 11:11 am    Post subject: Reply with quote

isiticov wrote:
Hello,

Are these strings in INC file declared as VAR/CONST or as resourcestring?
In case they are declared as resource strings then you can use "resource handling" for translate them.


OK, that works. One thing though. During the use of the Reource strings wizard I got an error message telling me that the OnChangeLanguage property was not valid. Something like that. But, as said before everything works and the event is assigned to a valid event handler.

Thanks again for your prompt support
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