this should not be done here , see https://github.com/alchemy-fr/Phraseanet/blob/3.8/lib/Alchemy/Phrasea/Core/Event/Subscriber/PhraseaLocaleSubscriber.php