template translation