forked from GNUsocial/gnu-social
People tags -> Lists (only UI changes, for experimentation)
This commit is contained in:
committed by
Zach Copley
parent
22f6151a10
commit
53af608ef8
@@ -855,7 +855,7 @@ class OStatusPlugin extends Plugin
|
||||
if ($oprofile) {
|
||||
if (!$oprofile->subscribe()) {
|
||||
// TRANS: Exception thrown when setup of remote people tag subscription fails.
|
||||
throw new Exception(_m('Could not set up remote people tag subscription.'));
|
||||
throw new Exception(_m('Could not set up remote list subscription.'));
|
||||
}
|
||||
|
||||
$sub = $user->getProfile();
|
||||
@@ -876,7 +876,7 @@ class OStatusPlugin extends Plugin
|
||||
$act->title = _m('TITLE','Follow list');
|
||||
// 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.
|
||||
$act->content = sprintf(_m("%1$s is now following people tagged %2$s by %3$s."),
|
||||
$act->content = sprintf(_m("%1$s is now following people listed in %2$s by %3$s."),
|
||||
$sub->getBestName(),
|
||||
$oprofile->getBestName(),
|
||||
$tagger->getBestName());
|
||||
@@ -1000,7 +1000,7 @@ class OStatusPlugin extends Plugin
|
||||
common_date_iso8601(time()));
|
||||
$act->time = time();
|
||||
$act->title = _m('TITLE','Tag');
|
||||
$act->content = sprintf(_m('%1$s tagged %2$s in the list %3$s.'),
|
||||
$act->content = sprintf(_m('%1$s listed %2$s in the list %3$s.'),
|
||||
$tagger->getBestName(),
|
||||
$tagged->getBestName(),
|
||||
$plist->getBestName());
|
||||
|
@@ -169,7 +169,7 @@ class OStatusPeopletagAction extends OStatusSubAction
|
||||
|
||||
function getInstructions()
|
||||
{
|
||||
return _m('You can subscribe to people tags from other supported sites. Paste the tag\'s profile URI below:');
|
||||
return _m('You can subscribe to lists from other supported sites. Paste the lists\'s URI below:');
|
||||
}
|
||||
|
||||
function selfLink()
|
||||
|
@@ -42,13 +42,13 @@ class PeopletagsalmonAction extends SalmonAction
|
||||
$this->peopletag = Profile_list::staticGet('id', $id);
|
||||
|
||||
if (empty($this->peopletag)) {
|
||||
$this->clientError(_m('No such people tag.'));
|
||||
$this->clientError(_m('No such list.'));
|
||||
}
|
||||
|
||||
$oprofile = Ostatus_profile::staticGet('peopletag_id', $id);
|
||||
|
||||
if (!empty($oprofile)) {
|
||||
$this->clientError(_m('Cannot accept remote posts for a remote people tag.'));
|
||||
$this->clientError(_m('Cannot accept remote posts for a remote list.'));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -89,7 +89,7 @@ class PeopletagsalmonAction extends SalmonAction
|
||||
$this->clientError(_m('Cannot read profile to set up profile tag subscription.'));
|
||||
}
|
||||
if ($oprofile->isGroup()) {
|
||||
$this->clientError(_m('Groups cannot subscribe to people tags.'));
|
||||
$this->clientError(_m('Groups cannot subscribe to lists.'));
|
||||
}
|
||||
|
||||
common_log(LOG_INFO, "Remote profile {$oprofile->uri} subscribing to local peopletag ".$this->peopletag->getBestName());
|
||||
@@ -107,7 +107,7 @@ class PeopletagsalmonAction extends SalmonAction
|
||||
try {
|
||||
Profile_tag_subscription::add($this->peopletag, $profile);
|
||||
} catch (Exception $e) {
|
||||
$this->serverError(sprintf(_m('Could not subscribe remote user %1$s to people tag %2$s.'),
|
||||
$this->serverError(sprintf(_m('Could not subscribe remote user %1$s to list %2$s.'),
|
||||
$oprofile->uri, $this->peopletag->getBestName()));
|
||||
}
|
||||
}
|
||||
@@ -120,10 +120,10 @@ class PeopletagsalmonAction extends SalmonAction
|
||||
{
|
||||
$oprofile = $this->ensureProfile();
|
||||
if (!$oprofile) {
|
||||
$this->clientError(_m('Cannot read profile to cancel people tag membership.'));
|
||||
$this->clientError(_m('Cannot read profile to cancel list membership.'));
|
||||
}
|
||||
if ($oprofile->isGroup()) {
|
||||
$this->clientError(_m('Groups cannot subscribe to people tags.'));
|
||||
$this->clientError(_m('Groups cannot subscribe to lists.'));
|
||||
}
|
||||
|
||||
common_log(LOG_INFO, "Remote profile {$oprofile->uri} unsubscribing from local peopletag ".$this->peopletag->getBestName());
|
||||
@@ -133,7 +133,7 @@ class PeopletagsalmonAction extends SalmonAction
|
||||
Profile_tag_subscription::remove($this->peopletag->tagger, $this->peopletag->tag, $profile->id);
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->serverError(sprintf(_m('Could not remove remote user %1$s from people tag %2$s.'),
|
||||
$this->serverError(sprintf(_m('Could not remove remote user %1$s from list %2$s.'),
|
||||
$oprofile->uri, $this->peopletag->getBestName()));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user