Translate mail subject - forgotten password
Hello,
I need to translate the mails about " forgotten password " in the manager unfortunately it is not possible to translate mail subjet in multiple languages. How I can do to change the subject for each language ?
I modified the following file to change the subject but it does not work well :
/usr/share/perl5/Lemonldap/NG/Portal/MailReset.pm
line 310 :
TEST
my $subject = $self->{mailConfirmSubject};
my $subject; my $a = substr($ENV{HTTP_ACCEPT_LANGUAGE}, 0, 2); if ( $a == "fr" ) { $subject = "Espace PRO Zodiac : Demande de re-initialisation de mot de passe"; } if ( $a == "en" ) { $subject = "Zodiac Espace PRO : password modification request"; } if ( $a ==" it" ) { $subject = "Zodiac Area PRO: modifica della password richiesta"; } if ( $a == "pt" ) { $subject = "Espaço PRO Zodiac : pedido de alteração da contra-senha"; } if ( $a =="es" ) { $subject = "Zodiac Espacio PRO : solicitud de modificación de contraseña"; } if ( $a == "nl" ) { $subject = "Zodiac Espace PRO : Boekingsverzoek reset van het wachtwoord"; } if ( $a == "de" ) { $subject = "Zodiac Händlerbereich: Anfrage zur Passwortänderung"; } $subject .= $a;