Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lemonldap-ng
lemonldap-ng
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 260
    • Issues 260
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LemonLDAP NG
  • lemonldap-nglemonldap-ng
  • Issues
  • #1033

Closed
Open
Opened Jun 06, 2016 by Julian Layen@julianbrom

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;

TEST

Assignee
Assign to
2.0.0
Milestone
2.0.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: lemonldap-ng/lemonldap-ng#1033