Complete "people tag" to "list" in UI messages.

Update translator documentation accordingly.

Probably a few cases left where "tag[ged[" has to be replaced by "list[ed]".
This commit is contained in:
Siebrand Mazeland
2011-04-17 20:08:03 +02:00
parent 25e38ebeca
commit 4ab995dd1e
30 changed files with 132 additions and 132 deletions

View File

@@ -885,8 +885,8 @@ class OStatusPlugin extends Plugin
return true;
} else {
$oprofile->garbageCollect();
// TRANS: Exception thrown when subscription of remote people tag fails.
throw new Exception(_m('Failed subscribing to remote people tag.'));
// TRANS: Exception thrown when subscription to remote list fails.
throw new Exception(_m('Failed subscribing to remote list.'));
}
}
}
@@ -922,7 +922,7 @@ class OStatusPlugin extends Plugin
$act->object = $oprofile->asActivityObject();
$act->time = time();
$act->title = _m('Unfollow people tag');
$act->title = _m('Unfollow list');
$act->content = sprintf(_m('%1$s stopped following the list %2$s by %3$s.'),
$sub->getBestName(),
$oprofile->getBestName(),

View File

@@ -104,9 +104,9 @@ class OStatusInitAction extends Action
// TRANS: Button text to join a group.
$submit = _m('BUTTON','Join');
} else if ($this->peopletag && $this->tagger) {
// TRANS: Form legend. %1$s is a people tag, %2$s is a tagger's name.
$header = sprintf(_m('Subscribe to people tagged %1$s by %2$s'), $this->peopletag, $this->tagger);
// TRANS: Button text to subscribe to a people tag.
// TRANS: Form legend. %1$s is a list, %2$s is a tagger's name.
$header = sprintf(_m('Subscribe to list %1$s by %2$s'), $this->peopletag, $this->tagger);
// TRANS: Button text to subscribe to a list.
$submit = _m('BUTTON','Subscribe');
// TRANS: Button text.
} else {
@@ -167,7 +167,7 @@ class OStatusInitAction extends Action
$this->connectWebfinger($this->profile);
} else {
// TRANS: Client error.
$this->clientError(_m("Must provide a remote profile."));
$this->clientError(_m('Must provide a remote profile.'));
}
}
@@ -218,7 +218,7 @@ class OStatusInitAction extends Action
return common_local_url('userbyid', array('id' => $user->id));
} else {
// TRANS: Client error.
$this->clientError("No such user.");
$this->clientError(_m('No such user.'));
}
} else if ($this->group) {
$group = Local_group::staticGet('nickname', $this->group);
@@ -226,12 +226,12 @@ class OStatusInitAction extends Action
return common_local_url('groupbyid', array('id' => $group->group_id));
} else {
// TRANS: Client error.
$this->clientError("No such group.");
$this->clientError(_m('No such group.'));
}
} else if ($this->peopletag && $this->tagger) {
$user = User::staticGet('nickname', $this->tagger);
if (empty($user)) {
$this->clientError("No such user.");
$this->clientError(_m('No such user.'));
}
$peopletag = Profile_list::getByTaggerAndTag($user->id, $this->peopletag);
@@ -239,10 +239,10 @@ class OStatusInitAction extends Action
return common_local_url('profiletagbyid',
array('tagger_id' => $user->id, 'id' => $peopletag->id));
}
$this->clientError("No such people tag.");
$this->clientError(_m('No such list.'));
} else {
// TRANS: Client error.
$this->clientError("No local user or group nickname provided.");
$this->clientError(_m('No local user or group nickname provided.'));
}
}

View File

@@ -70,9 +70,9 @@ class OStatusPeopletagAction extends OStatusSubAction
$this->elementStart('ul', 'form_data');
$this->elementStart('li');
$this->input('profile',
_m('Subscribe to people tag'),
_m('Subscribe to list'),
$this->profile_uri,
_m("Address of the OStatus people tag, like http://example.net/user/all/tag"));
_m("Address of the OStatus list, like http://example.net/user/all/tag"));
$this->elementEnd('li');
$this->elementEnd('ul');
@@ -95,7 +95,7 @@ class OStatusPeopletagAction extends OStatusSubAction
$cur = common_current_user();
if ($ptag->hasSubscriber($cur->id)) {
$this->element('div', array('class' => 'error'),
_m('You are already subscribed to this people tag.'));
_m('You are already subscribed to this list.'));
$ok = false;
} else {
$ok = true;
@@ -157,8 +157,8 @@ class OStatusPeopletagAction extends OStatusSubAction
function title()
{
// TRANS: Page title for OStatus remote people tag subscription form
return _m('Confirm subscription to remote people tag');
// TRANS: Page title for OStatus remote list subscription form
return _m('Confirm subscription to remote list');
}
/**

View File

@@ -112,6 +112,6 @@ class OStatusTagAction extends OStatusInitAction
function title()
{
return _m('OStatus people tag');
return _m('OStatus list');
}
}

View File

@@ -183,7 +183,7 @@ class PushHubAction extends Action
$user = User::staticGet('id', $user);
if (!$list || !$user || $list->tagger != $user->id) {
// TRANS: Client exception. %s is a feed URL.
throw new ClientException(sprintf(_m('Invalid hub.topic %s; people tag does not exist.'),$feed));
throw new ClientException(sprintf(_m('Invalid hub.topic %s; list does not exist.'),$feed));
} else {
return true;
}

View File

@@ -1209,7 +1209,7 @@ class Ostatus_profile extends Managed_DataObject
if ($object->link && common_valid_http_url($object->link)) {
return $object->link;
}
throw new ServerException("No author ID URI found.");
throw new ServerException(_m('No author ID URI found.'));
}
/**
@@ -1234,7 +1234,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$homeuri) {
common_log(LOG_DEBUG, __METHOD__ . " empty actor profile URI: " . var_export($activity, true));
throw new Exception('No profile URI.');
throw new Exception(_m('No profile URI.'));
}
$user = User::staticGet('uri', $homeuri);
@@ -1252,7 +1252,7 @@ class Ostatus_profile extends Managed_DataObject
if ($ptag) {
$local_user = User::staticGet('id', $ptag->tagger);
if (!empty($local_user)) {
throw new Exception('Local people tag cannot be referenced as remote.');
throw new Exception(_m('Local list cannot be referenced as remote.'));
}
}
@@ -1326,7 +1326,7 @@ class Ostatus_profile extends Managed_DataObject
$oprofile->peopletag_id = $ptag->insert();
if (!$oprofile->peopletag_id) {
throw new ServerException('Cannot save local people tag.');
throw new ServerException(_m('Cannot save local list.'));
}
}
@@ -1772,7 +1772,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$result) {
common_log_db_error($oprofile, 'INSERT', __FILE__);
// TRANS: Exception. %s is a webfinger address.
throw new Exception(sprintf(_m('Could not save ostatus_profile for "%s".'),$addr));
throw new Exception(sprintf(_m('Could not save OStatus profile for "%s".'),$addr));
}
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->uri);