l10n: Unify spelling
Spelling unification in Nextcloud applications.
This commit is contained in:
parent
998bcad80c
commit
11dc65869d
|
@ -349,7 +349,7 @@ class Manager implements IManager {
|
|||
// Check that we do not share with more permissions than we have
|
||||
if ($share->getPermissions() & ~$permissions) {
|
||||
$path = $userFolder->getRelativePath($share->getNode()->getPath());
|
||||
$message_t = $this->l->t('Can’t increase permissions of %s', [$path]);
|
||||
$message_t = $this->l->t('Cannot increase permissions of %s', [$path]);
|
||||
throw new GenericShareException($message_t, $message_t, 404);
|
||||
}
|
||||
|
||||
|
@ -365,11 +365,11 @@ class Manager implements IManager {
|
|||
|
||||
if ($share->getNode() instanceof \OCP\Files\File) {
|
||||
if ($share->getPermissions() & \OCP\Constants::PERMISSION_DELETE) {
|
||||
$message_t = $this->l->t('Files can’t be shared with delete permissions');
|
||||
$message_t = $this->l->t('Files cannot be shared with delete permissions');
|
||||
throw new GenericShareException($message_t);
|
||||
}
|
||||
if ($share->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
|
||||
$message_t = $this->l->t('Files can’t be shared with create permissions');
|
||||
$message_t = $this->l->t('Files cannot be shared with create permissions');
|
||||
throw new GenericShareException($message_t);
|
||||
}
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ class Manager implements IManager {
|
|||
$date->setTime(0, 0, 0);
|
||||
$date->add(new \DateInterval('P' . $defaultExpireDays . 'D'));
|
||||
if ($date < $expirationDate) {
|
||||
$message = $this->l->n('Can’t set expiration date more than %n day in the future', 'Can’t set expiration date more than %n days in the future', $defaultExpireDays);
|
||||
$message = $this->l->n('Cannot set expiration date more than %n day in the future', 'Cannot set expiration date more than %n days in the future', $defaultExpireDays);
|
||||
throw new GenericShareException($message, $message, 404);
|
||||
}
|
||||
}
|
||||
|
@ -517,7 +517,7 @@ class Manager implements IManager {
|
|||
$date->setTime(0, 0, 0);
|
||||
$date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D'));
|
||||
if ($date < $expirationDate) {
|
||||
$message = $this->l->n('Can’t set expiration date more than %n day in the future', 'Can’t set expiration date more than %n days in the future', $this->shareApiLinkDefaultExpireDays());
|
||||
$message = $this->l->n('Cannot set expiration date more than %n day in the future', 'Cannot set expiration date more than %n days in the future', $this->shareApiLinkDefaultExpireDays());
|
||||
throw new GenericShareException($message, $message, 404);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue