Fix intendation
This commit is contained in:
parent
17ab8e6c39
commit
e478d925c3
1 changed files with 34 additions and 34 deletions
|
@ -180,40 +180,40 @@ class Activity implements IExtension {
|
|||
*/
|
||||
protected function translateLong($text, IL10N $l, array $params) {
|
||||
|
||||
switch ($text) {
|
||||
case self::SUBJECT_REMOTE_SHARE_RECEIVED:
|
||||
if (sizeof($params) === 2) {
|
||||
// New activity ownCloud 8.2+
|
||||
return (string) $l->t('You received a new remote share %2$s from %1$s', $params);
|
||||
}
|
||||
return (string) $l->t('You received a new remote share from %s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_ACCEPTED:
|
||||
return (string) $l->t('%1$s accepted remote share %2$s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_DECLINED:
|
||||
return (string) $l->t('%1$s declined remote share %2$s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_UNSHARED:
|
||||
return (string) $l->t('%1$s unshared %2$s from you', $params);
|
||||
case self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED:
|
||||
return (string) $l->t('Public shared folder %1$s was downloaded', $params);
|
||||
case self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED:
|
||||
return (string) $l->t('Public shared file %1$s was downloaded', $params);
|
||||
case self::SUBJECT_SHARED_USER_SELF:
|
||||
return (string) $l->t('You shared %1$s with %2$s', $params);
|
||||
case self::SUBJECT_SHARED_GROUP_SELF:
|
||||
return (string) $l->t('You shared %1$s with group %2$s', $params);
|
||||
case self::SUBJECT_RESHARED_USER_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with %3$s', $params);
|
||||
case self::SUBJECT_RESHARED_GROUP_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with group %3$s', $params);
|
||||
case self::SUBJECT_RESHARED_LINK_BY:
|
||||
return (string) $l->t('%2$s shared %1$s via link', $params);
|
||||
case self::SUBJECT_SHARED_WITH_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with you', $params);
|
||||
case self::SUBJECT_SHARED_LINK_SELF:
|
||||
return (string) $l->t('You shared %1$s via link', $params);
|
||||
case self::SUBJECT_SHARED_EMAIL:
|
||||
return (string) $l->t('You shared %1$s with %2$s', $params);
|
||||
}
|
||||
switch ($text) {
|
||||
case self::SUBJECT_REMOTE_SHARE_RECEIVED:
|
||||
if (sizeof($params) === 2) {
|
||||
// New activity ownCloud 8.2+
|
||||
return (string) $l->t('You received a new remote share %2$s from %1$s', $params);
|
||||
}
|
||||
return (string) $l->t('You received a new remote share from %s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_ACCEPTED:
|
||||
return (string) $l->t('%1$s accepted remote share %2$s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_DECLINED:
|
||||
return (string) $l->t('%1$s declined remote share %2$s', $params);
|
||||
case self::SUBJECT_REMOTE_SHARE_UNSHARED:
|
||||
return (string) $l->t('%1$s unshared %2$s from you', $params);
|
||||
case self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED:
|
||||
return (string) $l->t('Public shared folder %1$s was downloaded', $params);
|
||||
case self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED:
|
||||
return (string) $l->t('Public shared file %1$s was downloaded', $params);
|
||||
case self::SUBJECT_SHARED_USER_SELF:
|
||||
return (string) $l->t('You shared %1$s with %2$s', $params);
|
||||
case self::SUBJECT_SHARED_GROUP_SELF:
|
||||
return (string) $l->t('You shared %1$s with group %2$s', $params);
|
||||
case self::SUBJECT_RESHARED_USER_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with %3$s', $params);
|
||||
case self::SUBJECT_RESHARED_GROUP_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with group %3$s', $params);
|
||||
case self::SUBJECT_RESHARED_LINK_BY:
|
||||
return (string) $l->t('%2$s shared %1$s via link', $params);
|
||||
case self::SUBJECT_SHARED_WITH_BY:
|
||||
return (string) $l->t('%2$s shared %1$s with you', $params);
|
||||
case self::SUBJECT_SHARED_LINK_SELF:
|
||||
return (string) $l->t('You shared %1$s via link', $params);
|
||||
case self::SUBJECT_SHARED_EMAIL:
|
||||
return (string) $l->t('You shared %1$s with %2$s', $params);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue