Translation changes, use FancyName in email subject

This commit is contained in:
Mikael Nordfeldth 2016-03-01 23:53:36 +01:00
parent 4abb3f19bf
commit 99fbb181c1
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,