diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-03-21 13:04:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 13:04:39 +0100 |
commit | b40481e8e5dfe30ef9568758490af675713ee0c2 (patch) | |
tree | b35bb1afa2a2cab96a86cff37811f89d16f2770b | |
parent | 84ae0703a3b74c5ce616c7ca690fedebd3a0d3ab (diff) | |
parent | 85a101987d40c60f5b4ec9fcf2a3617022861638 (diff) | |
download | nextcloud-server-b40481e8e5dfe30ef9568758490af675713ee0c2.tar.gz nextcloud-server-b40481e8e5dfe30ef9568758490af675713ee0c2.zip |
Merge pull request #31616 from nextcloud/Valdnet-patch-4
l10n: Spelling unification in Transifex.
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 6 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index fef71a868d5..6375ee3d703 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -471,7 +471,7 @@ class ShareAPIController extends OCSController { try { $path = $userFolder->get($path); } catch (NotFoundException $e) { - throw new OCSNotFoundException($this->l->t('Wrong path, file/folder doesn\'t exist')); + throw new OCSNotFoundException($this->l->t('Wrong path, file/folder does not exist')); } $share->setNode($path); @@ -808,7 +808,7 @@ class ShareAPIController extends OCSController { $this->lock($node); } catch (NotFoundException $e) { throw new OCSNotFoundException( - $this->l->t('Wrong path, file/folder doesn\'t exist') + $this->l->t('Wrong path, file/folder does not exist') ); } catch (LockedException $e) { throw new OCSNotFoundException($this->l->t('Could not lock node')); @@ -940,7 +940,7 @@ class ShareAPIController extends OCSController { $node = $userFolder->get($path); $this->lock($node); } catch (\OCP\Files\NotFoundException $e) { - throw new OCSNotFoundException($this->l->t('Wrong path, file/folder doesn\'t exist')); + throw new OCSNotFoundException($this->l->t('Wrong path, file/folder does not exist')); } catch (LockedException $e) { throw new OCSNotFoundException($this->l->t('Could not lock path')); } diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 8bea67dff05..324862a746d 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -1584,7 +1584,7 @@ class ShareAPIControllerTest extends TestCase { public function testCreateShareInvalidPath() { $this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class); - $this->expectExceptionMessage('Wrong path, file/folder doesn\'t exist'); + $this->expectExceptionMessage('Wrong path, file/folder does not exist'); $userFolder = $this->getMockBuilder(Folder::class)->getMock(); $this->rootFolder->expects($this->once()) |