View previous topic :: View next topic |
Author |
Message |
rhodan
Joined: 14 Jan 2003 Posts: 5
|
Posted: Mon Jan 26, 2004 4:31 pm Post subject: Pb Changing TLabel.caption when Loading SIB with Dispatcher |
|
|
Hi,
TsiLang : v5.2.5
Delphi 7 Pro
I'm using a external SIB File.
It's loaded during MainForm Create by TsiLangDispatcher. All Translation in the main form are right but in others forms managed with a TsiLangLinked TLabel.Caption are not translated by SIB file and keeps their original content (each TsiLangLinked uses the TsiLangDispatcher).
Note : Language Switch works fine.
Is there specific manipulation to realize in TsiLangLinked component when loading a SIB from TsiLangDispatcher?
Rhodan |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Mon Jan 26, 2004 6:20 pm Post subject: |
|
|
This looks like the forms which have problems with translating are created later than SIB file loaded. In order to load SIB file for all forms even for run-time created you should:
1. Either set FileName property of TsiLangDispatcher to your SIB file name.
2. Or use OnLinkToDispatcher event to load SIB file to currently linking component to TsiLangDispatcher:
Code: |
procedure TForm1.siLangDispatcher1LinkToDispatcher(Sender: TObject;
ASiLang: TsiCustomLang);
begin
ASiLang.LoadAllFromBinaryFile('YOURSIBFILE.SIB');
end;
|
Hope this helps.[/code] |
|
Back to top |
|
 |
|