The advantage is that the menu entries are generated on demand, so they'll always be up to date irt language.
I think it would be better if the options_handler was in charge of showing the dialog too.
It would allow in-app menus and it will also avoid the careless unbounded copying.
But this first step preserves the previous behavior.