From: Mikael Nordfeldth Date: Tue, 1 Mar 2016 22:53:36 +0000 (+0100) Subject: Translation changes, use FancyName in email subject X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99fbb181c1ab318d690f13dad81f6bc8190a89c7;p=quix0rs-gnu-social.git Translation changes, use FancyName in email subject --- diff --git a/classes/Profile.php b/classes/Profile.php index 2bcd1858fe..0e655faa63 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -238,7 +238,7 @@ class Profile extends Managed_DataObject } if (mb_strlen($this->getFullname()) > 0) { - // TRANS: Full name of a profile or group (%1$s) followed by some URI (%2$s) in parentheses. + // TRANS: The "fancy name": Full name of a profile or group (%1$s) followed by some URI (%2$s) in parentheses. return sprintf(_m('FANCYNAME','%1$s (%2$s)'), $this->getFullname(), $uri); } else { return $uri; diff --git a/lib/mail.php b/lib/mail.php index 383e2670cf..42a756ac5d 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -712,8 +712,8 @@ function mail_notify_attn(Profile $rcpt, Notice $notice) } // TRANS: E-mail subject for notice notification. - // TRANS: %1$s is the sending user's long name, %2$s is the adding user's nickname. - $subject = sprintf(_('%1$s (@%2$s) sent a notice to your attention'), $sender->getBestName(), $sender->getNickname()); + // TRANS: %1$s is the "fancy name" for a profile. + $subject = sprintf(_('%1$s sent a notice to your attention'), $sender->getFancyName()); // TRANS: Body of @-reply notification e-mail. // TRANS: %1$s is the sending user's name, $2$s is the StatusNet sitename,