From: Brion Vibber <brion@pobox.com>
Date: Tue, 20 Apr 2010 11:52:18 +0000 (+0200)
Subject: Merge branch 'master' of gitorious.org:statusnet/mainline into testing
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=61098faf5dd2685ea00c110bb4a3c871da17a300;p=quix0rs-gnu-social.git

Merge branch 'master' of gitorious.org:statusnet/mainline into testing
---

61098faf5dd2685ea00c110bb4a3c871da17a300
diff --cc lib/mail.php
index c38d9f2f50,d73603694d..5fc584e28a
--- a/lib/mail.php
+++ b/lib/mail.php
@@@ -636,17 -620,17 +636,17 @@@ function mail_notify_attn($user, $notic
  
      $bestname = $sender->getBestName();
  
-     common_init_locale($user->language);
+     common_switch_locale($user->language);
  
 -        if ($notice->conversation != $notice->id) {
 -                $conversationEmailText = "The full conversation can be read here:\n\n".
 -                                                                 "\t%5\$s\n\n ";
 -                $conversationUrl            = common_local_url('conversation',
 -                                 array('id' => $notice->conversation)).'#notice-'.$notice->id;
 -        } else {
 -                $conversationEmailText = "%5\$s";
 -                $conversationUrl = null;
 -        }
 +    if ($notice->hasConversation()) {
 +        $conversationUrl = common_local_url('conversation',
 +                         array('id' => $notice->conversation)).'#notice-'.$notice->id;
 +        // TRANS: Line in @-reply notification e-mail. %s is conversation URL.
 +        $conversationEmailText = sprintf(_("The full conversation can be read here:\n\n".
 +                                           "\t%s"), $conversationUrl) . "\n\n";
 +    } else {
 +        $conversationEmailText = '';
 +    }
  
      $subject = sprintf(_('%s (@%s) sent a notice to your attention'), $bestname, $sender->nickname);