Skip to content

Commit

Permalink
chore(i18n): Improved grammar
Browse files Browse the repository at this point in the history
Reported at Transifex

Signed-off-by: rakekniven <[email protected]>
  • Loading branch information
rakekniven authored Feb 8, 2025
1 parent 8cb0e9f commit 0733c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/DAV/ACLPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ public function propPatch(string $path, PropPatch $propPatch): void {
$formattedRules = array_map(fn (Rule $rule): string => $rule->getUserMapping()->getType() . ' ' . $rule->getUserMapping()->getDisplayName() . ': ' . $rule->formatPermissions(), $rules);
if (count($formattedRules)) {
$formattedRules = implode(', ', $formattedRules);
$this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('The advanced permissions for "%s" in Team folder with id %d was set to "%s"', [
$this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('The advanced permissions for "%s" in Team folder with ID %d was set to "%s"', [
$fileInfo->getInternalPath(),
$mount->getFolderId(),
$formattedRules,
]));
} else {
$this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('The advanced permissions for "%s" in Team folder with id %d was cleared', [
$this->eventDispatcher->dispatchTyped(new CriticalActionPerformedEvent('The advanced permissions for "%s" in Team folder with ID %d was cleared', [
$fileInfo->getInternalPath(),
$mount->getFolderId(),
]));
Expand All @@ -229,7 +229,7 @@ public function propPatch(string $path, PropPatch $propPatch): void {
$aclManager = $this->aclManagerFactory->getACLManager($this->user);
$newPermissions = $aclManager->testACLPermissionsForPath($fileInfo->getPath(), $rules);
if (!($newPermissions & Constants::PERMISSION_READ)) {
throw new BadRequest($this->l10n->t('You can not remove your own read permission.'));
throw new BadRequest($this->l10n->t('You cannot remove your own read permission.'));
}

$existingRules = array_reduce(
Expand Down

0 comments on commit 0733c9e

Please sign in to comment.