Update translator documentation.

i18n/L10n updates.
Whitespace updates.
This commit is contained in:
Siebrand Mazeland 2011-04-15 15:07:35 +02:00
parent 55b58f0f1f
commit c27b9c0722
14 changed files with 41 additions and 43 deletions

View File

@ -44,7 +44,6 @@ define('GROUPS_PER_MINILIST', 8);
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class GroupMiniList extends GroupList class GroupMiniList extends GroupList
{ {
function show() function show()

View File

@ -4,7 +4,7 @@
* Copyright (C) 2011, StatusNet, Inc. * Copyright (C) 2011, StatusNet, Inc.
* *
* Section for an invite button * Section for an invite button
* *
* PHP version 5 * PHP version 5
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class InviteButtonSection extends Section class InviteButtonSection extends Section
{ {
function showTitle() function showTitle()
@ -54,10 +53,11 @@ class InviteButtonSection extends Section
function showContent() function showContent()
{ {
$this->out->element('a', $this->out->element('a',
array('href' => common_local_url('invite'), array('href' => common_local_url('invite'),
'class' => 'invite_button'), 'class' => 'invite_button'),
_('Invite more colleagues')); // TRANS: Button text for inviting more users to the StatusNet instance.
_m('BUTTON','Invite more colleagues'));
return false; return false;
} }
} }

View File

@ -105,8 +105,8 @@ class PeopletagEditForm extends Form
*/ */
function formLegend() function formLegend()
{ {
// TRANS: Form legend for people tag edit form. // TRANS: Form legend for list edit form.
// TRANS: %s is a people tag. // TRANS: %s is a list.
$this->out->element('legend', null, sprintf(_('Edit list %s'), $this->peopletag->tag)); $this->out->element('legend', null, sprintf(_('Edit list %s'), $this->peopletag->tag));
} }
@ -137,21 +137,21 @@ class PeopletagEditForm extends Form
$this->out->elementStart('li'); $this->out->elementStart('li');
$desclimit = Profile_list::maxDescription(); $desclimit = Profile_list::maxDescription();
if ($desclimit == 0) { if ($desclimit == 0) {
// TRANS: Field title for description of people tag. // TRANS: Field title for description of list.
$descinstr = _('Describe the list or topic.'); $descinstr = _('Describe the list or topic.');
} else { } else {
// TRANS: Field title for description of people tag. // TRANS: Field title for description of list.
// TRANS: %d is the maximum number of characters for the description. // TRANS: %d is the maximum number of characters for the description.
$descinstr = sprintf(_m('Describe the list or topic in %d character.', $descinstr = sprintf(_m('Describe the list or topic in %d character.',
'Describe the list or topic in %d characters.', 'Describe the list or topic in %d characters.',
$desclimit), $desclimit),
$desclimit); $desclimit);
} }
// TRANS: Field label for description of people tag. // TRANS: Field label for description of list.
$this->out->textarea('description', _('Description'), $this->out->textarea('description', _('Description'),
($this->out->arg('description')) ? $this->out->arg('description') : $description, ($this->out->arg('description')) ? $this->out->arg('description') : $description,
$descinstr); $descinstr);
// TRANS: Checkbox label to mark a people tag private. // TRANS: Checkbox label to mark a list private.
$this->out->checkbox('private', _('Private'), $private); $this->out->checkbox('private', _('Private'), $private);
$this->out->elementEnd('li'); $this->out->elementEnd('li');
$this->out->elementEnd('ul'); $this->out->elementEnd('ul');
@ -167,11 +167,11 @@ class PeopletagEditForm extends Form
// TRANS: Button text to save a people tag. // TRANS: Button text to save a people tag.
$this->out->submit('submit', _('Save')); $this->out->submit('submit', _('Save'));
$this->out->submit('form_action-yes', $this->out->submit('form_action-yes',
// TRANS: Button text to delete a people tag. // TRANS: Button text to delete a list.
_m('BUTTON','Delete'), _m('BUTTON','Delete'),
'submit', 'submit',
'delete', 'delete',
// TRANS: Button title to delete a people tag. // TRANS: Button title to delete a list.
_('Delete this list.')); _('Delete this list.'));
} }

View File

@ -103,10 +103,10 @@ class PeopletagGroupNav extends Widget
// People tag timeline // People tag timeline
$this->out->menuItem(common_local_url('showprofiletag', array('tagger' => $user_profile->nickname, $this->out->menuItem(common_local_url('showprofiletag', array('tagger' => $user_profile->nickname,
'tag' => $tag->tag)), 'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel. // TRANS: Menu item in list navigation panel.
_m('MENU','List'), _m('MENU','List'),
// TRANS: Menu item title in people tag navigation panel. // TRANS: Menu item title in list navigation panel.
// TRANS: %1$s is a tag, %2$s is a nickname. // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('%1$s list by %2$s.'), $tag->tag, sprintf(_('%1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'showprofiletag', 'nav_timeline_peopletag'); $action == 'showprofiletag', 'nav_timeline_peopletag');
@ -114,10 +114,10 @@ class PeopletagGroupNav extends Widget
// Tagged // Tagged
$this->out->menuItem(common_local_url('peopletagged', array('tagger' => $user->nickname, $this->out->menuItem(common_local_url('peopletagged', array('tagger' => $user->nickname,
'tag' => $tag->tag)), 'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel. // TRANS: Menu item in list navigation panel.
_m('MENU','Listed'), _m('MENU','Listed'),
// TRANS: Menu item title in people tag navigation panel. // TRANS: Menu item title in list navigation panel.
// TRANS: %1$s is a tag, %2$s is a nickname. // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('%1$s list by %2$s.'), $tag->tag, sprintf(_('%1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'peopletagged', 'nav_peopletag_tagged'); $action == 'peopletagged', 'nav_peopletag_tagged');
@ -125,10 +125,10 @@ class PeopletagGroupNav extends Widget
// Subscribers // Subscribers
$this->out->menuItem(common_local_url('peopletagsubscribers', array('tagger' => $user->nickname, $this->out->menuItem(common_local_url('peopletagsubscribers', array('tagger' => $user->nickname,
'tag' => $tag->tag)), 'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel. // TRANS: Menu item in list navigation panel.
_m('MENU','Subscribers'), _m('MENU','Subscribers'),
// TRANS: Menu item title in people tag navigation panel. // TRANS: Menu item title in list navigation panel.
// TRANS: %1$s is a tag, %2$s is a nickname. // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('Subscribers to %1$s list by %2$s.'), $tag->tag, sprintf(_('Subscribers to %1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'peopletagsubscribers', 'nav_peopletag_subscribers'); $action == 'peopletagsubscribers', 'nav_peopletag_subscribers');
@ -140,8 +140,8 @@ class PeopletagGroupNav extends Widget
'tag' => $tag->tag)), 'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel. // TRANS: Menu item in people tag navigation panel.
_m('MENU','Edit'), _m('MENU','Edit'),
// TRANS: Menu item title in people tag navigation panel. // TRANS: Menu item title in list navigation panel.
// TRANS: %s is a tag. // TRANS: %s is a list.
sprintf(_('Edit %s list by you.'), $tag->tag, sprintf(_('Edit %s list by you.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'editpeopletag', 'nav_peopletag_edit'); $action == 'editpeopletag', 'nav_peopletag_edit');

View File

@ -192,9 +192,9 @@ class PeopletagListItem extends Widget
$this->out->element('a', array('href' => $this->out->element('a', array('href' =>
common_local_url('editpeopletag', array('tagger' => $this->profile->nickname, common_local_url('editpeopletag', array('tagger' => $this->profile->nickname,
'tag' => $this->peopletag->tag)), 'tag' => $this->peopletag->tag)),
// TRANS: Title for link to edit people tag settings. // TRANS: Title for link to edit list settings.
'title' => _('Edit list settings.')), 'title' => _('Edit list settings.')),
// TRANS: Text for link to edit people tag settings. // TRANS: Text for link to edit list settings.
_('Edit')); _('Edit'));
$this->out->elementEnd('li'); $this->out->elementEnd('li');
} }

View File

@ -78,7 +78,7 @@ class PeopletagNav extends Menu
_m('MENU','List Subscriptions'), _m('MENU','List Subscriptions'),
// TRANS: Tooltip for menu item in the group navigation page. // TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group. // TRANS: %s is the nickname of the group.
sprintf(_m('TOOLTIP','Lists subscribed to by %s'), $nickname), sprintf(_m('TOOLTIP','Lists subscribed to by %s.'), $nickname),
$action_name == 'peopletagsubscriptions', $action_name == 'peopletagsubscriptions',
'nav_list_group'); 'nav_list_group');
$this->out->menuItem(common_local_url('peopletagsforuser', array('nickname' => $this->out->menuItem(common_local_url('peopletagsforuser', array('nickname' =>
@ -87,7 +87,7 @@ class PeopletagNav extends Menu
sprintf(_m('MENU','Lists with %s'), $nickname), sprintf(_m('MENU','Lists with %s'), $nickname),
// TRANS: Tooltip for menu item in the group navigation page. // TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group. // TRANS: %s is the nickname of the group.
sprintf(_m('TOOLTIP','Lists with %s'), $nickname), sprintf(_m('TOOLTIP','Lists with %s.'), $nickname),
$action_name == 'peopletagsforuser', $action_name == 'peopletagsforuser',
'nav_lists_with'); 'nav_lists_with');
$this->out->menuItem(common_local_url('peopletagsbyuser', array('nickname' => $this->out->menuItem(common_local_url('peopletagsbyuser', array('nickname' =>
@ -96,7 +96,7 @@ class PeopletagNav extends Menu
sprintf(_m('MENU','Lists by %s'), $nickname), sprintf(_m('MENU','Lists by %s'), $nickname),
// TRANS: Tooltip for menu item in the group navigation page. // TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group. // TRANS: %s is the nickname of the group.
sprintf(_m('TOOLTIP','Lists by %s'), $nickname), sprintf(_m('TOOLTIP','Lists by %s.'), $nickname),
$action_name == 'peopletagsbyuser', $action_name == 'peopletagsbyuser',
'nav_lists_by'); 'nav_lists_by');
Event::handle('EndGroupGroupNav', array($this)); Event::handle('EndGroupGroupNav', array($this));

View File

@ -65,8 +65,8 @@ class PeopletagsBySubsSection extends PeopletagSection
function title() function title()
{ {
// TRANS: Title for section contaning people tags with the most subscribers. // TRANS: Title for section contaning lists with the most subscribers.
return _('Lists with most subscribers'); return _('Popular lists');
} }
function divId() function divId()

View File

@ -83,7 +83,6 @@ class PeopletagSection extends Section
class PeopletagSectionItem extends PeopletagListItem class PeopletagSectionItem extends PeopletagListItem
{ {
function showStart() function showStart()
{ {
} }
@ -121,8 +120,8 @@ class PeopletagSectionItem extends PeopletagListItem
function showTag() function showTag()
{ {
// TRANS: Tag summary. %1$d is the number of users tagged with the tag, // TRANS: List summary. %1$d is the number of users in the list,
// TRANS: %2$d is the number of subscribers to the tag. // TRANS: %2$d is the number of subscribers to the list.
$title = sprintf(_('Listed: %1$d Subscribers: %2$d'), $title = sprintf(_('Listed: %1$d Subscribers: %2$d'),
$this->peopletag->taggedCount(), $this->peopletag->taggedCount(),
$this->peopletag->subscriberCount()); $this->peopletag->subscriberCount());

View File

@ -67,8 +67,7 @@ class PeopletagsForUserSection extends PeopletagSection
if (!empty($user) && $this->profile->id == $user->id) { if (!empty($user) && $this->profile->id == $user->id) {
return sprintf(_('Lists with you')); return sprintf(_('Lists with you'));
} }
// TRANS: Title for page that displays // TRANS: Title for page that displays which people tags a user has been tagged with.
// which people tags a user has been tagged with.
// TRANS: %s is a profile name. // TRANS: %s is a profile name.
return sprintf(_('Lists with %s'), $this->profile->getBestName()); return sprintf(_('Lists with %s'), $this->profile->getBestName());
} }

View File

@ -62,7 +62,7 @@ class PeopletagSubscriptionsSection extends PeopletagSection
function title() function title()
{ {
// TRANS: Title for page that displays people tags a user has subscribed to. // TRANS: Title for page that displays lists a user has subscribed to.
return _('List subscriptions'); return _('List subscriptions');
} }

View File

@ -52,8 +52,8 @@ class PersonalTagCloudSection extends TagCloudSection
function title() function title()
{ {
// TRANS: Title for personal tag cloud section. %s is a user nickname. // TRANS: Title for personal tag cloud section.
return sprintf(_('Tags'), $this->user->nickname); return _m('TITLE','Tags');
} }
function getTags() function getTags()

View File

@ -293,9 +293,9 @@ class ProfileAction extends OwnerDesignAction
array('nickname' => $this->profile->nickname)); array('nickname' => $this->profile->nickname));
$this->elementStart('h2'); $this->elementStart('h2');
// TRANS: H2 text for user list membership statistics.
$this->element('a', $this->element('a',
array('href' => $url), array('href' => $url),
// TRANS: H2 text for user list membership statistics.
_('Lists')); _('Lists'));
$this->text(' '); $this->text(' ');
$this->text($lists->N); $this->text($lists->N);

View File

@ -854,7 +854,7 @@ class OStatusPlugin extends Plugin
$oprofile = Ostatus_profile::staticGet('peopletag_id', $peopletag->id); $oprofile = Ostatus_profile::staticGet('peopletag_id', $peopletag->id);
if ($oprofile) { if ($oprofile) {
if (!$oprofile->subscribe()) { if (!$oprofile->subscribe()) {
// TRANS: Exception thrown when setup of remote people tag subscription fails. // TRANS: Exception thrown when setup of remote list subscription fails.
throw new Exception(_m('Could not set up remote list subscription.')); throw new Exception(_m('Could not set up remote list subscription.'));
} }
@ -875,7 +875,7 @@ class OStatusPlugin extends Plugin
// TRANS: Title for remote follow list. // TRANS: Title for remote follow list.
$act->title = _m('TITLE','Follow list'); $act->title = _m('TITLE','Follow list');
// TRANS: Success message for remote list follow through OStatus. // TRANS: Success message for remote list follow through OStatus.
// TRANS: %1$s is the subscriber name, %2$s the prople tag, %3$s is the tagger's name. // TRANS: %1$s is the subscriber name, %2$s is the list, %3$s is the tagger's name.
$act->content = sprintf(_m("%1$s is now following people listed in %2$s by %3$s."), $act->content = sprintf(_m("%1$s is now following people listed in %2$s by %3$s."),
$sub->getBestName(), $sub->getBestName(),
$oprofile->getBestName(), $oprofile->getBestName(),

View File

@ -169,6 +169,7 @@ class OStatusPeopletagAction extends OStatusSubAction
function getInstructions() function getInstructions()
{ {
// TRANS: Instructions for OStatus list subscription form.
return _m('You can subscribe to lists from other supported sites. Paste the lists\'s URI below:'); return _m('You can subscribe to lists from other supported sites. Paste the lists\'s URI below:');
} }