fix bug with symfony 2.6 with translator