Of course setCurrentMappings() changes the current mapping in the LocalisedStrings instance but i was wondering if there was a way to force the whole app to repaint itself in one shot instead of calling repaint() on every concerned component…?
In fact, i had tried this but it seemed not to work with my MenuBarComponent…
I just realized menu bar texts had to be invalidated by calling MenuBarModel::menuItemsChanged() ! Sorry for the inconvenience
And what about any other TopLevelWindow (e.g. AlertWindow or DialogWindow) which can be displayed when changing of language? No other way than calling repaint on each one ?
Not much point calling repaint on an AlertWindow, you’d need give it an updated string to display. Likewise a lot of components that just show some text that you’ve previously given it.