Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] Locale changes at runtime - update

Hi everybody,

with the help of Tom regarding the internals of the application model and more, I was finally able to add the support for Locale changes at runtime to the application model.


This is the ticket for the enhancement:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423991

These are the Gerrit changes containing my contribution:
https://git.eclipse.org/r/#/c/19743/
https://git.eclipse.org/r/#/c/19746/

I added the ILocaleChangeService that can be injected and used to change the Locale.
I removed all getLocalizedXxx() methods in the application model and replaced them with corresponding attributes.
I modified the renderers to listen for the LOCALIZED events.

I attached an example project to show the new message extension and the locale changes at runtime in the application model. I will push this example to GitHub if my contribution gets accepted.

Hope you like it.

Greez,
Dirk

Attachment: dynamic_translation_example.zip
Description: Zip archive


Back to the top