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/invite.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mod/invite.php') diff --git a/mod/invite.php b/mod/invite.php index f67432746..e3662d758 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -25,21 +25,21 @@ function invite_post(&$a) { $recip = trim($recip); if(! valid_email($recip)) { - notice( $recip . t(' : ') . t('Not a valid email address.') . EOL); + notice( sprintf( t('%s : Not a valid email address.'), $recip) . EOL); continue; } - $res = mail($recip, t('Please join my network on ') . $a->config['sitename'], + $res = mail($recip, sprintf(t('Please join my network on %s'), $a->config['sitename']), $message, "From: " . $a->user['email']); if($res) { $total ++; } else { - notice( $recip . t(' : ') . t('Message delivery failed.') . EOL); + notice( sprintf( t('%s : Message delivery failed.'), $recip) . EOL); } } - notice( $total . t(' messages sent.') . EOL); + notice( sprintf(tt("%d message sent.", "%d messages sent.", $total), $total) . EOL); return; } @@ -57,7 +57,7 @@ function invite_content(&$a) { '$invite' => t('Send invitations'), '$addr_text' => t('Enter email addresses, one per line:'), '$msg_text' => t('Your message:'), - '$default_message' => t('Please join my social network on ') . $a->config['sitename'] . "\r\n" . "\r\n" + '$default_message' => sprintf(t('Please join my social network on %s'), $a->config['sitename']) . "\r\n" . "\r\n" . t('To accept this invitation, please visit:') . "\r\n" . "\r\n" . $a->get_baseurl() . "\r\n" . "\r\n" . t('Once you have registered, please connect with me via my profile page at:') . "\r\n" . "\r\n" . $a->get_baseurl() . '/profile/' . $a->user['nickname'] , -- 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/invite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/invite.php') diff --git a/mod/invite.php b/mod/invite.php index e3662d758..84fa978ad 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -39,7 +39,7 @@ function invite_post(&$a) { } } - notice( sprintf(tt("%d message sent.", "%d messages sent.", $total), $total) . EOL); + notice( sprintf( tt("%d message sent.", "%d messages sent.", $total) , $total) . EOL); return; } -- cgit v1.2.3