diff options
author | rub <rub@piwigo.org> | 2007-03-15 23:20:41 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-15 23:20:41 +0000 |
commit | 6d2ea02a9591a219f5964ecc98ffa3f7796039fa (patch) | |
tree | 81caf2c1745f31910d61ae2dcce316f657ca7f6c /include/functions_comment.inc.php | |
parent | d98c48bc6e0e5ab7de21e5252889270ecdea6c89 (diff) |
Add new translation functions.inc.php
Translate subject of information mail.
Notification mails are sent on the default language.
No mail is sent to the author witch are not done actions
git-svn-id: http://piwigo.org/svn/trunk@1908 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_comment.inc.php | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php index 9db0a4c17..1a894b69d 100644 --- a/include/functions_comment.inc.php +++ b/include/functions_comment.inc.php @@ -197,28 +197,27 @@ INSERT INTO '.COMMENTS_TABLE.' $del_url = get_absolute_root_url().'comments.php?delete='.$comm['id']; - $content = - 'Author: '.$comm['author']."\n" - .'Comment: '.$comm['content']."\n" - .get_block_mail_admin_info() - .'Delete: '.$del_url."\n"; + $keyargs_content = array + ( + get_l10n_args('Author: %s', $comm['author']), + get_l10n_args('Comment: %s', $comm['content']), + get_l10n_args('', ''), + get_l10n_args('Delete: %s', $del_url) + ); if ($comment_action!='validate') { - $content .= - 'Validate: ' - .get_absolute_root_url().'comments.php?validate='.$comm['id']; + $keyargs_content[] = + get_l10n_args('', ''); + $keyargs_content[] = + get_l10n_args('Validate: %s', + get_absolute_root_url().'comments.php?validate='.$comm['id']); } - pwg_mail + pwg_mail_notification_admins ( - format_email('administrators', get_webmaster_mail_address()), - array - ( - 'subject' => 'PWG comment by '.$comm['author'], - 'content' => $content, - 'Bcc' => get_administrators_email() - ) + get_l10n_args('Comment by %s', $comm['author']), + $keyargs_content ); } } |