fix language switching

due to CakePHP's API changes