576 views
in GUI Development by
Hi,

I have to change the language in run-time.

The user has a drop down - contains list of languages.

*I want that when the user chose a language, the language will be changed Immediately(now- the language changed just when I exit this screen and I enter again.)

In addition, not all the strings change.

*If I changed the language not in run time. - before I start running(I select on the EmbWiz drop down) - I see that the language was changed, but on the LCD I see the default - Why??

Thanks,

Michal.

1 Answer

0 votes
by

Hi Michal,

first of all, let me refer to the article Managing localization - which explains all details about multilingual applications.

If the currently visible component (e.g. a menu, a panel) should change its appearance immediately when the language get changed, you need to set the attribute MultiLingual of the involved component class(es) to 'true'. This causes Embedded Wizard to generate additional code for an immediate re-initialization, without the need to re-initialize your UI components manually.

Best regards,

Manfred

by

Thanks for your reply but I still have a problem.

I set the attribute MultiLingual to "true". - the components that located in a content screen - were changed, but the texts in the "Header" - were not changed.

The strings in the header change only when the program enter to slot that changes the title.(if I exit and enter again -> the title is changing) - I want that the header will be changed without going to that slot.

I hope you understand...

A screen list attached.

pic 1: After changing language.

pic 2: After changing content.

pic 3: After changing category.

Thanks,

Michal.


by

Please ensure that the attribute 'MultiLingual' is also set to embedded components with multilingual content. 

If you assign the content of the header programmatically, then Embedded Wizard cannot generate code to reinitialize the content automatically after the language has changed. In this case you need to react programmatically on the language change and reintialize the content by your code.

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...