diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-18 18:01:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 18:01:50 -0500 |
commit | 269600a04f18e025313352d3b2293cc10d3c26fa (patch) | |
tree | ea97f5ea1965ea7328ce9a20585a282419e1ecf2 /apps/files_external | |
parent | 34e0b21f418c7dcc5ab346248873a2ae0ec5ba2b (diff) | |
parent | 1c0bffe87f578403b130015f8fee5560cc075b34 (diff) | |
download | nextcloud-server-269600a04f18e025313352d3b2293cc10d3c26fa.tar.gz nextcloud-server-269600a04f18e025313352d3b2293cc10d3c26fa.zip |
Merge pull request #4369 from nextcloud/fix-translations
Fix translations
Diffstat (limited to 'apps/files_external')
5 files changed, 11 insertions, 11 deletions
diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index c6a19004e8e..69056225f8a 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -170,7 +170,7 @@ class GlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index d962848bd78..dd2bf69a0a6 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -306,7 +306,7 @@ abstract class StoragesController extends Controller { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); @@ -331,7 +331,7 @@ abstract class StoragesController extends Controller { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index 4acbc156261..22c9c867855 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -122,7 +122,7 @@ class UserGlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); @@ -162,7 +162,7 @@ class UserGlobalStoragesController extends StoragesController { } else { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" is not user editable', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" is not user editable', array($id)) ], Http::STATUS_FORBIDDEN ); @@ -170,7 +170,7 @@ class UserGlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index db078346313..724bdd01463 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -198,7 +198,7 @@ class UserStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 43839a17d76..4e38ea96259 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -147,14 +147,14 @@ abstract class StoragesService { $mount = $this->dbConfig->getMountById($id); if (!is_array($mount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } $config = $this->getStorageConfigFromDBMount($mount); if ($this->isApplicable($config)) { return $config; } else { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } } @@ -377,7 +377,7 @@ abstract class StoragesService { $existingMount = $this->dbConfig->getMountById($id); if (!is_array($existingMount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found while updating storage'); + throw new NotFoundException('Storage with ID "' . $id . '" not found while updating storage'); } $oldStorage = $this->getStorageConfigFromDBMount($existingMount); @@ -456,7 +456,7 @@ abstract class StoragesService { $existingMount = $this->dbConfig->getMountById($id); if (!is_array($existingMount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } $this->dbConfig->removeMount($id); |