From: Siebrand Mazeland Date: Sun, 24 Apr 2011 17:53:28 +0000 (+0200) Subject: Fix incorrect parameter in sprintf(). Spotted by Giftpflanze. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f70569ddb5b109bdc18fce033bf38bf00247871d;p=quix0rs-gnu-social.git Fix incorrect parameter in sprintf(). Spotted by Giftpflanze. Update translator documentation. --- diff --git a/plugins/EmailSummary/siteemailsummaryhandler.php b/plugins/EmailSummary/siteemailsummaryhandler.php index 3369a5a703..37e1a227f3 100644 --- a/plugins/EmailSummary/siteemailsummaryhandler.php +++ b/plugins/EmailSummary/siteemailsummaryhandler.php @@ -44,7 +44,6 @@ if (!defined('STATUSNET')) { */ class SiteEmailSummaryHandler extends QueueHandler { - /** * Return transport keyword which identifies items this queue handler * services; must be defined for all subclasses. diff --git a/plugins/EmailSummary/useremailsummaryhandler.php b/plugins/EmailSummary/useremailsummaryhandler.php index 316e09d5b7..dca1be24bc 100644 --- a/plugins/EmailSummary/useremailsummaryhandler.php +++ b/plugins/EmailSummary/useremailsummaryhandler.php @@ -181,6 +181,7 @@ class UserEmailSummaryHandler extends QueueHandler $out->text(' '); $out->element('a', array('href' => $convurl.'#notice-'.$notice->id), + // TRANS: Link text for link to conversation view. _m('in context')); } } @@ -191,9 +192,11 @@ class UserEmailSummaryHandler extends QueueHandler $out->elementEnd('table'); - $out->raw(sprintf(_m('

change your email settings for %2s

'), + // TRANS: Link text for link to e-mail settings. + // TRANS: %1$s is a link to the e-mail settings, %2$s is the StatusNet sitename. + $out->raw("

" . sprintf(_m('change your email settings for %2$s'), common_local_url('emailsettings'), - common_config('site', 'name'))); + common_config('site', 'name'))."

"); $out->elementEnd('div'); @@ -201,6 +204,7 @@ class UserEmailSummaryHandler extends QueueHandler // FIXME: do something for people who don't like HTML email + // TRANS: Subject for e-mail. mail_to_user($user, _m('Updates from your network'), $body, array('Content-Type' => 'text/html; charset=UTF-8'));