misc: improve i18n tools
ui: add window restore support