With some help from @dittaeva I got the translations working. And this code seems to work fine, so I am guessing it is ok.