Status bar´s translation didn´t work!

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
pablobr
Posts: 18
Joined: Tue Sep 21, 2004 6:09 pm

Status bar´s translation didn´t work!

Post by pablobr »

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
Haron
Posts: 39
Joined: Thu Mar 11, 2004 6:29 am

Post by Haron »

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: Select all

procedure TForm1.siLang1ChangeLanguage(
  Sender: TObject);
const
  DatePanel = 1;
begin
  StatusBar.Panels[DatePanel] := siLang1.GetText('SDate');
end;
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Re: Status bar´s translation didn´t work!

Post by isiticov »

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.
Best regards,
Igor Siticov.
pablobr
Posts: 18
Joined: Tue Sep 21, 2004 6:09 pm

Post by pablobr »

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 :cry:
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

You can re-set the StatusBar text in OnChangeLanguage event of TsiLang
Best regards,
Igor Siticov.
Post Reply