git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 518832da authored by Siebrand Mazeland's avatar Siebrand Mazeland

Document messages for which clarification was requested.

parent c15549ff
...@@ -112,10 +112,12 @@ class AllrssAction extends Rss10Action ...@@ -112,10 +112,12 @@ class AllrssAction extends Rss10Action
$c = array('url' => common_local_url('allrss', $c = array('url' => common_local_url('allrss',
array('nickname' => array('nickname' =>
$user->nickname)), $user->nickname)),
// TRANS: Message is used as link title. %s is a user nickname.
'title' => sprintf(_('%s and friends'), $user->nickname), 'title' => sprintf(_('%s and friends'), $user->nickname),
'link' => common_local_url('all', 'link' => common_local_url('all',
array('nickname' => array('nickname' =>
$user->nickname)), $user->nickname)),
// TRANS: Message is used as link description. %1$s is a username, %2$s is a site name.
'description' => sprintf(_('Updates from %1$s and friends on %2$s!'), 'description' => sprintf(_('Updates from %1$s and friends on %2$s!'),
$user->nickname, common_config('site', 'name'))); $user->nickname, common_config('site', 'name')));
return $c; return $c;
......
...@@ -87,6 +87,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction ...@@ -87,6 +87,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction
parent::handle($args); parent::handle($args);
$sitename = common_config('site', 'name'); $sitename = common_config('site', 'name');
// TRANS: Message is used as a title. %s is a site name.
$title = sprintf(_("%s groups"), $sitename); $title = sprintf(_("%s groups"), $sitename);
$taguribase = TagURI::base(); $taguribase = TagURI::base();
$id = "tag:$taguribase:Groups"; $id = "tag:$taguribase:Groups";
......
...@@ -116,6 +116,7 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction ...@@ -116,6 +116,7 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
$id = "tag:$taguribase:FriendsTimeline:" . $this->user->id; $id = "tag:$taguribase:FriendsTimeline:" . $this->user->id;
$subtitle = sprintf( $subtitle = sprintf(
// TRANS: Message is used as a subtitle. %1$s is a user nickname, %2$s is a site name.
_('Updates from %1$s and friends on %2$s!'), _('Updates from %1$s and friends on %2$s!'),
$this->user->nickname, $this->user->nickname,
$sitename $sitename
......
...@@ -117,6 +117,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction ...@@ -117,6 +117,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction
$id = "tag:$taguribase:HomeTimeline:" . $this->user->id; $id = "tag:$taguribase:HomeTimeline:" . $this->user->id;
$subtitle = sprintf( $subtitle = sprintf(
// TRANS: Message is used as a subtitle. %1$s is a user nickname, %2$s is a site name.
_('Updates from %1$s and friends on %2$s!'), _('Updates from %1$s and friends on %2$s!'),
$this->user->nickname, $sitename $this->user->nickname, $sitename
); );
......
...@@ -87,10 +87,12 @@ class ConfirmaddressAction extends Action ...@@ -87,10 +87,12 @@ class ConfirmaddressAction extends Action
} }
$type = $confirm->address_type; $type = $confirm->address_type;
if (!in_array($type, array('email', 'jabber', 'sms'))) { if (!in_array($type, array('email', 'jabber', 'sms'))) {
// TRANS: Server error for an unknow address type, which can be 'email', 'jabber', or 'sms'.
$this->serverError(sprintf(_('Unrecognized address type %s.'), $type)); $this->serverError(sprintf(_('Unrecognized address type %s.'), $type));
return; return;
} }
if ($cur->$type == $confirm->address) { if ($cur->$type == $confirm->address) {
// TRANS: Client error for an already confirmed email/jabbel/sms address.
$this->clientError(_('That address has already been confirmed.')); $this->clientError(_('That address has already been confirmed.'));
return; return;
} }
......
...@@ -59,6 +59,7 @@ class DesignadminpanelAction extends AdminPanelAction ...@@ -59,6 +59,7 @@ class DesignadminpanelAction extends AdminPanelAction
function title() function title()
{ {
// TRANS: Message used as title for design settings for the site.
return _('Design'); return _('Design');
} }
...@@ -454,6 +455,7 @@ class DesignAdminPanelForm extends AdminForm ...@@ -454,6 +455,7 @@ class DesignAdminPanelForm extends AdminForm
$this->out->element('label', array('for' => 'design_background-image_on', $this->out->element('label', array('for' => 'design_background-image_on',
'class' => 'radio'), 'class' => 'radio'),
// TRANS: Used as radio button label to add a background image.
_('On')); _('On'));
$attrs = array('name' => 'design_background-image_onoff', $attrs = array('name' => 'design_background-image_onoff',
...@@ -470,6 +472,7 @@ class DesignAdminPanelForm extends AdminForm ...@@ -470,6 +472,7 @@ class DesignAdminPanelForm extends AdminForm
$this->out->element('label', array('for' => 'design_background-image_off', $this->out->element('label', array('for' => 'design_background-image_off',
'class' => 'radio'), 'class' => 'radio'),
// TRANS: Used as radio button label to not add a background image.
_('Off')); _('Off'));
$this->out->element('p', 'form_guide', _('Turn background image on or off.')); $this->out->element('p', 'form_guide', _('Turn background image on or off.'));
$this->unli(); $this->unli();
......
...@@ -135,8 +135,10 @@ class groupRssAction extends Rss10Action ...@@ -135,8 +135,10 @@ class groupRssAction extends Rss10Action
$c = array('url' => common_local_url('grouprss', $c = array('url' => common_local_url('grouprss',
array('nickname' => array('nickname' =>
$group->nickname)), $group->nickname)),
// TRANS: Message is used as link title. %s is a user nickname.
'title' => sprintf(_('%s timeline'), $group->nickname), 'title' => sprintf(_('%s timeline'), $group->nickname),
'link' => common_local_url('showgroup', array('nickname' => $group->nickname)), 'link' => common_local_url('showgroup', array('nickname' => $group->nickname)),
// TRANS: Message is used as link description. %1$s is a username, %2$s is a site name.
'description' => sprintf(_('Updates from members of %1$s on %2$s!'), 'description' => sprintf(_('Updates from members of %1$s on %2$s!'),
$group->nickname, common_config('site', 'name'))); $group->nickname, common_config('site', 'name')));
return $c; return $c;
......
...@@ -59,8 +59,10 @@ class UsergroupsAction extends OwnerDesignAction ...@@ -59,8 +59,10 @@ class UsergroupsAction extends OwnerDesignAction
function title() function title()
{ {
if ($this->page == 1) { if ($this->page == 1) {
// TRANS: Message is used as a page title. %s is a nick name.
return sprintf(_('%s groups'), $this->user->nickname); return sprintf(_('%s groups'), $this->user->nickname);
} else { } else {
// TRANS: Message is used as a page title. %1$s is a nick name, %2$d is a page number.
return sprintf(_('%1$s groups, page %2$d'), return sprintf(_('%1$s groups, page %2$d'),
$this->user->nickname, $this->user->nickname,
$this->page); $this->page);
......
...@@ -90,8 +90,10 @@ class UserrssAction extends Rss10Action ...@@ -90,8 +90,10 @@ class UserrssAction extends Rss10Action
$c = array('url' => common_local_url('userrss', $c = array('url' => common_local_url('userrss',
array('nickname' => array('nickname' =>
$user->nickname)), $user->nickname)),
// TRANS: Message is used as link title. %s is a user nickname.
'title' => sprintf(_('%s timeline'), $user->nickname), 'title' => sprintf(_('%s timeline'), $user->nickname),
'link' => $profile->profileurl, 'link' => $profile->profileurl,
// TRANS: Message is used as link description. %1$s is a username, %2$s is a site name.
'description' => sprintf(_('Updates from %1$s on %2$s!'), 'description' => sprintf(_('Updates from %1$s on %2$s!'),
$user->nickname, common_config('site', 'name'))); $user->nickname, common_config('site', 'name')));
return $c; return $c;
......
...@@ -63,6 +63,7 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed ...@@ -63,6 +63,7 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed
$sitename = common_config('site', 'name'); $sitename = common_config('site', 'name');
$subtitle = sprintf( $subtitle = sprintf(
// TRANS: Message is used as a subtitle. %1$s is a user nickname, %2$s is a site name.
_('Updates from %1$s on %2$s!'), _('Updates from %1$s on %2$s!'),
$group->nickname, $group->nickname,
$sitename $sitename
......
...@@ -69,6 +69,7 @@ class AtomUserNoticeFeed extends AtomNoticeFeed ...@@ -69,6 +69,7 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
$sitename = common_config('site', 'name'); $sitename = common_config('site', 'name');
$subtitle = sprintf( $subtitle = sprintf(
// TRANS: Message is used as a subtitle. %1$s is a user nickname, %2$s is a site name.
_('Updates from %1$s on %2$s!'), _('Updates from %1$s on %2$s!'),
$user->nickname, $sitename $user->nickname, $sitename
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment