change how to substitue vars in translation