remove some complexity from localization's translate method