rework device files, add .xml .pm translation helper