X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FModPlus%2Fremoteprofileaction.php;h=8e2fcad284518ebb8c9b051f6391dade8426ef5e;hb=0cca861ea7b029cfa8e247e225981158fef831c0;hp=caa5e6fbf36037ada44fb388a10135e4d027978b;hpb=fdcaac365354fb7315263373bae6094eab6aa3c8;p=quix0rs-gnu-social.git diff --git a/plugins/ModPlus/remoteprofileaction.php b/plugins/ModPlus/remoteprofileaction.php index caa5e6fbf3..8e2fcad284 100644 --- a/plugins/ModPlus/remoteprofileaction.php +++ b/plugins/ModPlus/remoteprofileaction.php @@ -1,5 +1,5 @@ profile = Profile::staticGet('id', $id); if (!$this->profile) { - $this->serverError(_('User has no profile.')); + // TRANS: Error message displayed when referring to a user without a profile. + $this->serverError(_m('User has no profile.')); return false; } @@ -41,14 +42,11 @@ class RemoteProfileAction extends ShowstreamAction function title() { - // maybe fixed in 0.9.x - if (!empty($this->profile->fullname)) { - $base = $this->profile->fullname . ' (' . $this->profile->nickname . ') '; - } else { - $base = $this->profile->nickname; - } + $base = $this->profile->getBestName(); $host = parse_url($this->profile->profileurl, PHP_URL_HOST); - return sprintf(_m('%s on %s'), $base, $host); + // TRANS: Remote profile action page title. + // TRANS: %1$s is a username, %2$s is a hostname. + return sprintf(_m('%1$s on %2$s'), $base, $host); } /** @@ -59,7 +57,10 @@ class RemoteProfileAction extends ShowstreamAction $url = $this->profile->profileurl; $host = parse_url($url, PHP_URL_HOST); $markdown = sprintf( - _m('This remote profile is registered on another site; see [%s\'s original profile page on %s](%s).'), + // TRANS: Message on remote profile page. + // TRANS: This message contains Markdown links in the form [description](link). + // TRANS: %1$s is a profile nickname, %2$s is a hostname, %3$s is a URL. + _m('This remote profile is registered on another site; see [%1$s\'s original profile page on %2$s](%3$s).'), $this->profile->nickname, $host, $url); @@ -67,6 +68,7 @@ class RemoteProfileAction extends ShowstreamAction $this->raw($html); if ($this->profile->hasRole(Profile_role::SILENCED)) { + // TRANS: Message on blocked remote profile page. $markdown = _m('Site moderators have silenced this profile, which prevents delivery of new messages to any users on this site.'); $this->raw(common_markup_to_html($markdown)); } @@ -102,5 +104,4 @@ class RemoteProfileAction extends ShowstreamAction { // skip } - -} \ No newline at end of file +}