diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 402b82130..272b4b887 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -1019,18 +1019,15 @@ function pwg_generate_reset_password_mail($username, $password_link, $gallery_ti { set_make_full_url(); - $message = l10n('Someone requested that the password be reset for the following user account:') . "\r\n\r\n"; - $message.= l10n( - 'Username "%s" on gallery %s', - $username, - get_gallery_home_url() - ); - $message.= "\r\n\r\n"; - $message.= l10n('To reset your password, visit the following address:') . "\r\n"; - $message.= $password_link . "\r\n"; + $message = '
'; + $message = l10n('Someone requested that the password be reset for the following user account:')." ".$username.'
'; + $message.= ''.l10n('To reset your password, visit the following address:'); + $message.= ' '.l10n('Change my password').'
'; + $message.= ''.$password_link.'
'; + $message.= ''; $message.= l10n('This link is valid for %s. After this time, you will need to request a new link.', $remaining_time); - $message.= "\r\n\r\n"; - $message.= l10n('If this was a mistake, just ignore this email and nothing will happen.')."\r\n"; + $message.= " "; + $message.= l10n('If this was a mistake, just ignore this email and nothing will happen.').'
'; unset_make_full_url(); @@ -1039,7 +1036,7 @@ function pwg_generate_reset_password_mail($username, $password_link, $gallery_ti return array( 'subject' => '['.$gallery_title.'] '.l10n('Password Reset'), 'content' => $message, - 'content_format' => 'text/plain', + 'content_format' => 'text/html', ); } @@ -1058,18 +1055,15 @@ function pwg_generate_set_password_mail($username, $set_password_link, $gallery_ { set_make_full_url(); - $message = l10n('Someone requested that the password be set for the following user account:') . "\r\n\r\n"; - $message.= l10n( - 'Username "%s" on gallery %s', - $username, - get_gallery_home_url() - ); - $message.= "\r\n\r\n"; - $message.= l10n('To set your password, visit the following address:') . "\r\n"; - $message.= $set_password_link . "\r\n"; + $message = ''; + $message.= l10n('A photo library administrator has created the following account for you:')." ".$username.'
'; + $message.= ''.l10n('To set your password, visit the following address:'); + $message.= ' '.l10n('Activate').'
'; + $message.= ''.$set_password_link.'
'; + $message.= ''; $message.= l10n('This link is valid for %s. After this time, you will need to request a new link.', $remaining_time); - $message.= "\r\n\r\n"; - $message.= l10n('If this was a mistake, just ignore this email and nothing will happen.')."\r\n"; + $message.= " "; + $message.= l10n('If this was a mistake, just ignore this email and nothing will happen.') . '
'; unset_make_full_url(); @@ -1078,7 +1072,7 @@ function pwg_generate_set_password_mail($username, $set_password_link, $gallery_ return array( 'subject' => l10n('Welcome to ') . '['.$gallery_title.']', 'content' => $message, - 'content_format' => 'text/plain', + 'content_format' => 'text/html', ); } diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 8a1731ea7..ab472d597 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -1405,5 +1405,5 @@ $lang['Read the release note'] = 'Read the release note'; $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['Someone requested that the password be set for the following user account:'] = 'Someone requested that the password be set for the following user account:'; +$lang['A photo library administrator has created the following account for you:'] = 'A photo library administrator has created the following account for you:'; // 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 260cf2518..0983cc980 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -1406,6 +1406,6 @@ $lang['What\'s new in version %s'] = 'Quoi de neuf dans Piwigo %s ?'; $lang['Read the release note'] = 'Lire la note de version'; $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['Someone requested that the password be set for the following user account:'] = 'Quelqu\'un a demandé que le mot de passe soit défini pour l\'utilisateur suivant:'; +$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 :'; // Leave this line empty