this is from v4.1.1, but i think it is the same in all versions
you find this function in common.ic.php
[code]
function mailnotice($type,$username,$title,$message) {
global $client;
$key = 'dismail'.$type;
$res = sql_query("select id,email,fullname,settings from ".tb()."accounts where username='$username'");
$user = sql_fetch_array($res);
if (!$user['id']) return false;
if ($client['id'] == $user['id']) return false;
$user_settings = unserialize($user['settings']);
if (!$user_settings[$key]) {
@jcow_mail(
$user['email'],
$title,
nl2br(t('Dear ').$user['fullname'].",\r\n ".$message."\r\n").url('home',get_gvar('site_name'))
);
}
}
[/code]
line that is changed:
[code]
nl2br(t('Dear ').$user['fullname'].",\r\n ".$message."\r\n").url('home',get_gvar('site_name'))
[/code]
why ? 1. Dear can be translated, 2. notifications are sent in html format, so \r\n is changed to <br/> |