Generalize translation script

(I'm planning to do a Norwegian translation)