From 0645372570ec2c20d7678fb3a6db267a9b09fc5f Mon Sep 17 00:00:00 2001 From: Linty Date: Thu, 19 Dec 2024 16:40:38 +0100 Subject: [PATCH] fixes #2287 add a new language key --- include/functions_mail.inc.php | 3 ++- language/en_UK/admin.lang.php | 1 + language/fr_FR/admin.lang.php | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 272b4b887..b8babadfd 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -1068,9 +1068,10 @@ function pwg_generate_set_password_mail($username, $set_password_link, $gallery_ unset_make_full_url(); $message = trigger_change('render_lost_password_mail_content', $message); + $subject = l10n('Welcome to %s', $gallery_title); return array( - 'subject' => l10n('Welcome to ') . '['.$gallery_title.']', + 'subject' => $subject, 'content' => $message, 'content_format' => 'text/html', ); diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 0834eed9a..407a45294 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -1406,4 +1406,5 @@ $lang['Ok, got it!'] = 'Ok, got it!'; $lang['This link is valid for %s. After this time, you will need to request a new link.'] = 'This link is valid for %s. After this time, you will need to request a new link.'; $lang['To set your password, visit the following address:'] = 'To set your password, visit the following address:'; $lang['A photo library administrator has created the following account for you:'] = 'A photo library administrator has created the following account for you:'; +$lang['Welcome to %s'] = 'Welcome to %s'; // Leave this line empty \ No newline at end of file diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 18db0a73e..1be60b160 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -1408,4 +1408,5 @@ $lang['Ok, got it!'] = 'Ok, j\'ai compris!'; $lang['This link is valid for %s. After this time, you will need to request a new link.'] = 'Ce lien est valide pendant %s. Passé ce délai, vous devrez demander un nouveau lien.'; $lang['To set your password, visit the following address:'] = 'Pour définir votre mot de passe, rendez-vous à l\'adresse suivante :'; $lang['A photo library administrator has created the following account for you:'] = 'Un administrateur de la photothèque vous a créé le compte suivant :'; +$lang['Welcome to %s'] = 'Bienvenue sur %s'; // Leave this line empty