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 

Pb Changing TLabel.caption when Loading SIB with Dispatcher

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



Joined: 14 Jan 2003
Posts: 5

PostPosted: Mon Jan 26, 2004 4:31 pm    Post subject: Pb Changing TLabel.caption when Loading SIB with Dispatcher Reply with quote

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
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2095

PostPosted: Mon Jan 26, 2004 6:20 pm    Post subject: Reply with quote

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
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