Fix various variable referencing problems in translations.