Compact temporary translations migration code in templates