rework translation to use xgettext instead of deprecated pygettext and also add support for translation of popups.xml