move i18n stuff from dlg to plugin.py