Page 1 of 1
Doubt about .SIL files
Posted: Wed Jun 22, 2005 6:38 pm
by pablobr
Hi again
Let me describe a situation:
Example: I have 3 labels, and 2 buttons on my form. Done! Let´s supose this is my project!
Now I save a .SIL file from the project. Good!
But, few hours later, I decided that the 2º Label is useless and deleted it.
What I need to do to "update" my .SIL file?
Ps: Actually, I save the project again and subescribe my .SIL file. But it keep´s all the deleted "objects" and strings from my application.
Any help would be welcome,
Best regards,
Pablo
Posted: Wed Jun 22, 2005 6:46 pm
by isiticov
You can use one of the following ways:
1. To use SIB files (much faster and always contain only actual data)- preferrable

2. To save SIL file each time under different name
3. Firstly load whole SIL file to the
whole project; delete existing SIL file and create new one from the
whole project.
Hmmmm...
Posted: Wed Jun 22, 2005 6:49 pm
by pablobr
I just read about SIB files, but don´t know anything about then... lol
Will try to learn how to use it.
Any demo or suggestion??
Thanks
testing...
Posted: Wed Jun 22, 2005 7:40 pm
by pablobr
im doing some tests now saving my project into a .SIB file....
and i´m liking...
but the same doubt persist, if i delete an object , loading all the translation from the old .sib file into the new one and then saving again is the only way to get my .sib file updated?
thanks
Posted: Thu Jun 23, 2005 2:57 am
by isiticov
No, when saving to SIB file only "actual" (currently presented) objects translations will be stored.
Under DEMO folder there is SIBperLanguage folder, which includes demo on loading SIB files.
I know about that ...
Posted: Thu Jun 23, 2005 11:26 am
by pablobr
I know about that, but lets supose I translated my .SIB file at the SIL Editor, not in Delphi.
I have 3 labels with their captions all translated.
Then I deleted 1 label. If I save a .SIB file I´ll lose my translations from the others 2 labels, do you got my point?
I want to know how I can update my "already translated" .SIB file?
Regards,
Pablo
Posted: Thu Jun 23, 2005 12:26 pm
by isiticov
Then the only way: at first load translated SIB and later save to create updated.
I tried it already...
Posted: Thu Jun 23, 2005 2:05 pm
by pablobr
I tried it already without success...
When I press "Load from..." at Translation Editor, it only have the option to load from .SIL or *. all files (I select all files and it´s Ok), but when I load the .SIB file it replaces everything with "empty data". My .SIB file gets empty, all properties is gone... dont know why!
Regards,
Pablo
Posted: Thu Jun 23, 2005 2:22 pm
by isiticov
Did you upgrade to version 6.0 released recently? In v. 6.0 Translation Editor is able to load/save from/to SIB files. Otherwise just use TsiLang Expert: select form in Expert's list and click on toolbar Load Form button.
Thanks
Posted: Thu Jun 23, 2005 4:44 pm
by pablobr
Think that my problem´s are gone now...
Thank´s for the fast support !
