Merge pull request #1795 from nextcloud/systemtags-activity-wording

change wording of system tags from un/assigned to more human added/removed
This commit is contained in:
Roeland Jago Douma 2016-10-19 12:16:46 +02:00 committed by GitHub
commit b5599a7673

View file

@ -145,15 +145,15 @@ class Extension implements IExtension {
case self::ASSIGN_TAG:
$params[2] = $this->convertParameterToTag($params[2], $l);
if ($this->actorIsCurrentUser($params[0])) {
return (string) $l->t('You assigned system tag %3$s', $params);
return (string) $l->t('You added system tag %3$s', $params);
}
return (string) $l->t('%1$s assigned system tag %3$s', $params);
return (string) $l->t('%1$s added system tag %3$s', $params);
case self::UNASSIGN_TAG:
$params[2] = $this->convertParameterToTag($params[2], $l);
if ($this->actorIsCurrentUser($params[0])) {
return (string) $l->t('You unassigned system tag %3$s', $params);
return (string) $l->t('You removed system tag %3$s', $params);
}
return (string) $l->t('%1$s unassigned system tag %3$s', $params);
return (string) $l->t('%1$s removed system tag %3$s', $params);
}
return false;
@ -190,15 +190,15 @@ class Extension implements IExtension {
case self::ASSIGN_TAG:
$params[2] = $this->convertParameterToTag($params[2], $l);
if ($this->actorIsCurrentUser($params[0])) {
return (string) $l->t('You assigned system tag %3$s to %2$s', $params);
return (string) $l->t('You added system tag %3$s to %2$s', $params);
}
return (string) $l->t('%1$s assigned system tag %3$s to %2$s', $params);
return (string) $l->t('%1$s added system tag %3$s to %2$s', $params);
case self::UNASSIGN_TAG:
$params[2] = $this->convertParameterToTag($params[2], $l);
if ($this->actorIsCurrentUser($params[0])) {
return (string) $l->t('You unassigned system tag %3$s from %2$s', $params);
return (string) $l->t('You removed system tag %3$s from %2$s', $params);
}
return (string) $l->t('%1$s unassigned system tag %3$s from %2$s', $params);
return (string) $l->t('%1$s removed system tag %3$s from %2$s', $params);
}
return false;