Page 1 of 1

How to change some images according to the selectes language

Posted: Mon Jul 11, 2005 8:12 am
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

Posted: Mon Jul 11, 2005 8:26 am
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 :(

Posted: Mon Jul 11, 2005 8:44 am
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 ?

Posted: Mon Jul 11, 2005 11:14 am
by isiticov
SIL files are simple text files and won't be able to hold binary data for images.

Posted: Wed Jul 13, 2005 8:59 am
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 !!!!

Posted: Wed Jul 13, 2005 9:44 am
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.