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 change some images according to the selectes language

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



Joined: 11 Jul 2005
Posts: 3

PostPosted: Mon Jul 11, 2005 8:12 am    Post subject: How to change some images according to the selectes language Reply with quote

Hi ,

I have some jpeg images in my application, that I need to change when I switch the language. I did'nt find any way to do it...

Can you please help me ? I need to wotk with Sil files, as I want another person to make the translation, including images.

Rgds
Laurent
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

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

To translate images you can use OnChangeLanguage event and manually load images into needed properties. Images can be translated only manually and cannot be stored in SIL/SIB files Sad
Back to top
View user's profile Send private message
Laurent Desseignes



Joined: 11 Jul 2005
Posts: 3

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

Why not ?

After all, Delphi itself stores the images in the dfm text files... So why shouldn't I be able to do the same ?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

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

SIL files are simple text files and won't be able to hold binary data for images.
Back to top
View user's profile Send private message
Laurent Desseignes



Joined: 11 Jul 2005
Posts: 3

PostPosted: Wed Jul 13, 2005 8:59 am    Post subject: Reply with quote

I understand the sil files are text files...

But if you consider that delphi stores the images in the dfm files, that are also text files... then it is possible !!!!
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Jul 13, 2005 9:44 am    Post subject: Reply with quote

SIL files are not just text files but they are also INI files that hold single line values and other limitations apply to them.
DFM (in text mode) are text files in special format.
But we will investigate what could be improved in this way.
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