Quellcode durchsuchen

Merge pull request #31616 from nextcloud/Valdnet-patch-4

l10n: Spelling unification in Transifex.
tags/v24.0.0beta1
Louis vor 2 Jahren
Ursprung
Commit
b40481e8e5
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden

+ 3
- 3
apps/files_sharing/lib/Controller/ShareAPIController.php Datei anzeigen

@@ -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'));
}

+ 1
- 1
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php Datei anzeigen

@@ -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())

Laden…
Abbrechen
Speichern