Fix language change in Minimal/Compact mode after eb137b5

Also don't attach menu in those modes.
Factorize some code.