Locale changes at runtime [message #1451057] |
Thu, 23 October 2014 05:09  |
Eclipse User |
|
|
|
Hello,
I'm trying out the method to change language at runtime as described here: http://tomsondev.bestsolution.at/2014/10/13/effeciently-dealing-with-translations-in-an-e4-app-with-the-help-of-java8/.
First of all, it works really great, very nice job !
But I do have one question : can I handle the labels of Application.e4xmi with this method ?
I thought at least the part labels should be manageable with
@Inject MPart part ;
//...
registry.register(part::setLabel, registry::PartNameKey) ;
But this doesn't seem to work. And of course, menus etc. couldn't be done at all like this.
If I use the standard OSGi-resource bundle, I lose the benefit of the at-runtime language change.
Any tips on how to proceed ... ?
Thomas
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26880 seconds