How to change some images according to the selectes language

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Laurent Desseignes
Posts: 3
Joined: Mon Jul 11, 2005 7:36 am

How to change some images according to the selectes language

Post by Laurent Desseignes »

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
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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 :(
Best regards,
Igor Siticov.
Laurent Desseignes
Posts: 3
Joined: Mon Jul 11, 2005 7:36 am

Post by Laurent Desseignes »

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 ?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

SIL files are simple text files and won't be able to hold binary data for images.
Best regards,
Igor Siticov.
Laurent Desseignes
Posts: 3
Joined: Mon Jul 11, 2005 7:36 am

Post by Laurent Desseignes »

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 !!!!
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
Post Reply