Added translate method to controller