Page 1 of 1

Status bar´s translation didn´t work!

Posted: Thu Jun 30, 2005 12:38 pm
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

Posted: Sat Jul 02, 2005 5:15 pm
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;

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

Posted: Mon Jul 11, 2005 4:28 am
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.

Posted: Thu Oct 27, 2005 5:48 pm
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:

Posted: Fri Oct 28, 2005 1:58 pm
by isiticov
You can re-set the StatusBar text in OnChangeLanguage event of TsiLang