From 1e487c2a0951381ab2b27c88d5dd3d6d9dd81a24 Mon Sep 17 00:00:00 2001 From: Valdnet <47037905+Valdnet@users.noreply.github.com> Date: Fri, 18 Mar 2022 10:14:34 +0100 Subject: [PATCH 1/2] l10n: Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> --- apps/files_sharing/lib/Controller/ShareAPIController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 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')); } From 85a101987d40c60f5b4ec9fcf2a3617022861638 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 21 Mar 2022 11:04:04 +0100 Subject: [PATCH 2/2] Add test to spelling unification Signed-off-by: Louis Chemineau --- apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())