Well as far as I can see: getDescriptionOfCommand() calls getCommandForID() which goes through commands list. I do not see it to trigger any refresh action...
Anyway those commands are defined in my MainWindow.cpp in the overriden getCommandInfo() like this:
void MainWindow::getCommandInfo(const CommandID commandID, ApplicationCommandInfo& result)
const String category("General");
TRANS("Saves the current project"),
result.defaultKeypresses.add(KeyPress('s', ModifierKeys::commandModifier, 0));
If I put a breakpoint in there after I switch the language, I can see that TRANS macro returns the correct "other language" strings. But the button tooltip stays the same.
And one more tooltip related question i you don't mind: When i assign the tooltip to modal window's components they are still shown on the main window, that means behind the modal window, so they are not visible at all (unless they are too long to hide behond the modal window). If I create a new TooltipWindow for the modal window I do, of course, end up with 2 tooltips being shown at the same time (as the docs for the TooltipWindow state). What is the solution here?