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 

Status barīs translation didnīt work!

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



Joined: 21 Sep 2004
Posts: 18

PostPosted: Thu Jun 30, 2005 12:38 pm    Post subject: Status barīs translation didnīt work! Reply with quote

Hi

My program contains a status bar wich Date is displayed.
If I change the language of the program at run-time, the status barīs translation donīt work. If I set up the language on design time, the status barīs translation works fine.

What I could do to make this work? Any idea?

Regards,

Pablo
Back to top
View user's profile Send private message MSN Messenger
Haron



Joined: 11 Mar 2004
Posts: 39

PostPosted: Sat Jul 02, 2005 5:15 pm    Post subject: Reply with quote

I'm absolutely out of ideas why this can happends... Can't try it by myself. But I can offer you temporary solution until support check it... Use Strings section on form, like:
* create string SDate with all translations you need
* assign OnChangeLanguage of TsiLang component on your form to even handler
Code:

procedure TForm1.siLang1ChangeLanguage(
  Sender: TObject);
const
  DatePanel = 1;
begin
  StatusBar.Panels[DatePanel] := siLang1.GetText('SDate');
end;
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Mon Jul 11, 2005 4:28 am    Post subject: Re: Status barīs translation didnīt work! Reply with quote

pablobr wrote:
What I could do to make this work? Any idea?


Looks like there is some "problematic" place in your run-time code. Could you please reproduce the problem on sample simple project? If yes, please, send it to us and we will investigate deeply. Thank you.
Back to top
View user's profile Send private message
pablobr



Joined: 21 Sep 2004
Posts: 18

PostPosted: Thu Oct 27, 2005 5:48 pm    Post subject: Reply with quote

Hi,

StatusBar problems again.

The situation:

I have a StatusBar with some text information on it.
This text is set to the panels on the ONSHOW event of the form. The Tsilang component is loaded on other form (DataModule form).
The user have the option to change the language on run-time. If he change the language, everything on the application get translated except the text on the StatusBar. But, when he changes the language, it saves the new language configuration on a .ini and at the next time that the application is executed, the StatusBar translation works perfectly.

So, how I can get a StatusBar translation (remember that the text is seted on the event ONSHOW, at design time the StatusBar is empty!) to work perfectly?

Hope anyone could help me...

Regards Crying or Very sad
Back to top
View user's profile Send private message MSN Messenger
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri Oct 28, 2005 1:58 pm    Post subject: Reply with quote

You can re-set the StatusBar text in OnChangeLanguage event of TsiLang
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