Use getBestName() instead of nickname per FIXMEs.
Update translator documentation.
This commit is contained in:
parent
70827f3379
commit
436068dc0d
|
@ -211,25 +211,23 @@ class ShowgroupAction extends GroupAction
|
||||||
function showAnonymousMessage()
|
function showAnonymousMessage()
|
||||||
{
|
{
|
||||||
if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
|
if (!(common_config('site','closed') || common_config('site','inviteonly'))) {
|
||||||
// @todo FIXME: use group full name here if available instead of (uglier) primary alias.
|
|
||||||
// TRANS: Notice on group pages for anonymous users for StatusNet sites that accept new registrations.
|
// TRANS: Notice on group pages for anonymous users for StatusNet sites that accept new registrations.
|
||||||
// TRANS: **%s** is the group alias, %%%%site.name%%%% is the site name,
|
// TRANS: %s is the group name, %%%%site.name%%%% is the site name,
|
||||||
// TRANS: %%%%action.register%%%% is the URL for registration, %%%%doc.help%%%% is a URL to help.
|
// TRANS: %%%%action.register%%%% is the URL for registration, %%%%doc.help%%%% is a URL to help.
|
||||||
// TRANS: This message contains Markdown links. Ensure they are formatted correctly: [Description](link).
|
// TRANS: This message contains Markdown links. Ensure they are formatted correctly: [Description](link).
|
||||||
$m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
|
$m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
|
||||||
'based on the Free Software [StatusNet](http://status.net/) tool. Its members share ' .
|
'based on the Free Software [StatusNet](http://status.net/) tool. Its members share ' .
|
||||||
'short messages about their life and interests. '.
|
'short messages about their life and interests. '.
|
||||||
'[Join now](%%%%action.register%%%%) to become part of this group and many more! ([Read more](%%%%doc.help%%%%))'),
|
'[Join now](%%%%action.register%%%%) to become part of this group and many more! ([Read more](%%%%doc.help%%%%))'),
|
||||||
$this->group->nickname);
|
$this->group->getBestName());
|
||||||
} else {
|
} else {
|
||||||
// @todo FIXME: use group full name here if available instead of (uglier) primary alias.
|
|
||||||
// TRANS: Notice on group pages for anonymous users for StatusNet sites that accept no new registrations.
|
// TRANS: Notice on group pages for anonymous users for StatusNet sites that accept no new registrations.
|
||||||
// TRANS: **%s** is the group alias, %%%%site.name%%%% is the site name,
|
// TRANS: %s is the group name, %%%%site.name%%%% is the site name,
|
||||||
// TRANS: This message contains Markdown links. Ensure they are formatted correctly: [Description](link).
|
// TRANS: This message contains Markdown links. Ensure they are formatted correctly: [Description](link).
|
||||||
$m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
|
$m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
|
||||||
'based on the Free Software [StatusNet](http://status.net/) tool. Its members share ' .
|
'based on the Free Software [StatusNet](http://status.net/) tool. Its members share ' .
|
||||||
'short messages about their life and interests. '),
|
'short messages about their life and interests. '),
|
||||||
$this->group->nickname);
|
$this->group->getBestName());
|
||||||
}
|
}
|
||||||
$this->elementStart('div', array('id' => 'anon_notice'));
|
$this->elementStart('div', array('id' => 'anon_notice'));
|
||||||
$this->raw(common_markup_to_html($m));
|
$this->raw(common_markup_to_html($m));
|
||||||
|
|
Loading…
Reference in New Issue