From 9f7878057f356ba785de26877a660bb025cae31d Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Fri, 11 Mar 2011 00:22:21 +0100 Subject: update source strings --- mod/item.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 5989d0967..9e03e76cd 100644 --- a/mod/item.php +++ b/mod/item.php @@ -419,8 +419,8 @@ function item_post(&$a) { '$body' => strip_tags(bbcode($datarray['body'])) )); - $res = mail($user['email'], $from . t(" commented on your item at ") . $a->config['sitename'], - $email_tpl,t("From: Administrator@") . $a->get_hostname() ); + $res = mail($user['email'], sprintf(t("%s commented on your item at %s"),$from,$a->config['sitename']), + $email_tpl,"From: " . t("Administrator") . "@" . $a->get_hostname() ); } } else { @@ -442,8 +442,8 @@ function item_post(&$a) { '$body' => strip_tags(bbcode($datarray['body'])) )); - $res = mail($user['email'], $from . t(" posted on your profile wall at ") . $a->config['sitename'], - $email_tpl,t("From: Administrator@") . $a->get_hostname() ); + $res = mail($user['email'], sprintf(t("%s posted on your profile wall at %s"),$from, $a->config['sitename']), + $email_tpl,"From: " . t("Administrator@") . "@" . $a->get_hostname() ); } } @@ -486,13 +486,13 @@ function item_post(&$a) { $addr = trim($recip); if(! strlen($addr)) continue; - $disclaimer = '
' . t('This message was sent to you by ') . $a->user['username'] - . t(', a member of the Friendika social network.') . '
'; + $disclaimer = '
' . sprintf(t('This message was sent to you by %s, a member of the Friendika social network.'),$a->user['username']) + . '
'; $disclaimer .= t('You may visit them online at') . ' ' . $a->get_baseurl() . '/profile/' . $a->user['nickname'] . '
'; $disclaimer .= t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . '
'; - $subject = '[Friendika]' . ' ' . $a->user['username'] . ' ' . t('posted an update.'); + $subject = '[Friendika]' . ' ' . sprintf( t('%s posted an update.'),$a->user['username']); $headers = 'From: ' . $a->user['username'] . ' <' . $a->user['email'] . '>' . "\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-Type: text/html; charset=UTF-8' . "\n"; -- cgit v1.2.3 From a7af6df962bad0901611d28450a990831fb25680 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Sun, 13 Mar 2011 13:50:44 +0100 Subject: Fix spaces around t() and tt() --- mod/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 9e03e76cd..2cdfb0d66 100644 --- a/mod/item.php +++ b/mod/item.php @@ -419,7 +419,7 @@ function item_post(&$a) { '$body' => strip_tags(bbcode($datarray['body'])) )); - $res = mail($user['email'], sprintf(t("%s commented on your item at %s"),$from,$a->config['sitename']), + $res = mail($user['email'], sprintf( t("%s commented on your item at %s") ,$from,$a->config['sitename']), $email_tpl,"From: " . t("Administrator") . "@" . $a->get_hostname() ); } } @@ -442,7 +442,7 @@ function item_post(&$a) { '$body' => strip_tags(bbcode($datarray['body'])) )); - $res = mail($user['email'], sprintf(t("%s posted on your profile wall at %s"),$from, $a->config['sitename']), + $res = mail($user['email'], sprintf( t("%s posted on your profile wall at %s") ,$from, $a->config['sitename']), $email_tpl,"From: " . t("Administrator@") . "@" . $a->get_hostname() ); } } -- cgit v1.2.3 From 7df8e18dd1917de9df359094e0ff486f47e4a08d Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 18 Mar 2011 11:02:42 +0100 Subject: Update more strings --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 2cdfb0d66..da317a8c0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -443,7 +443,7 @@ function item_post(&$a) { )); $res = mail($user['email'], sprintf( t("%s posted on your profile wall at %s") ,$from, $a->config['sitename']), - $email_tpl,"From: " . t("Administrator@") . "@" . $a->get_hostname() ); + $email_tpl,"From: " . t("Administrator") . "@" . $a->get_hostname() ); } } -- cgit v1.2.3