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
Status bar´s translation didn´t work!
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
* 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!
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.pablobr wrote:What I could do to make this work? Any idea?
Best regards,
Igor Siticov.
Igor Siticov.
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
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
