diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-05-21 11:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 11:09:52 +0200 |
commit | b2c2f32968ea9fcf3c28a35bc31c78e4d2caae08 (patch) | |
tree | 6fc3c5f361f2aaae9f133ff19437fbbed81f296e /apps | |
parent | a6cb2973a973565e2450b8bb7912257e5e22cde2 (diff) | |
parent | 35d978c2fca0b4ae7961e44a3a9e1a4f77fad6dc (diff) | |
download | nextcloud-server-b2c2f32968ea9fcf3c28a35bc31c78e4d2caae08.tar.gz nextcloud-server-b2c2f32968ea9fcf3c28a35bc31c78e4d2caae08.zip |
Merge pull request #27039 from nextcloud/fix/2973/rename-external-storages
Rename External storages to External storage
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/files_external/js/app.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/mountsfilelist.js | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Service/GlobalStoragesService.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Service/LegacyStoragesService.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Service/StoragesService.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/Service/UserStoragesService.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Settings/Section.php | 2 | ||||
-rw-r--r-- | apps/files_external/templates/settings.php | 4 | ||||
-rw-r--r-- | apps/files_external/tests/Settings/SectionTest.php | 6 | ||||
-rw-r--r-- | apps/files_external/tests/js/mountsfilelistSpec.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/lib/External/Mount.php | 2 | ||||
-rw-r--r-- | apps/workflowengine/lib/Check/FileName.php | 2 |
13 files changed, 17 insertions, 17 deletions
diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php index f8f7d377bc7..15254b29002 100644 --- a/apps/files_external/appinfo/app.php +++ b/apps/files_external/appinfo/app.php @@ -43,7 +43,7 @@ $appContainer = \OCA\Files_External\MountConfig::$app->getContainer(); 'appname' => 'files_external', 'script' => 'list.php', 'order' => 30, - 'name' => $l->t('External storages'), + 'name' => $l->t('External storage'), ]; }); diff --git a/apps/files_external/js/app.js b/apps/files_external/js/app.js index cf74ae350d7..4f91e2e78b0 100644 --- a/apps/files_external/js/app.js +++ b/apps/files_external/js/app.js @@ -34,7 +34,7 @@ OCA.Files_External.App = { ); this._extendFileList(this.fileList); - this.fileList.appName = t('files_external', 'External storages'); + this.fileList.appName = t('files_external', 'External storage'); return this.fileList; }, diff --git a/apps/files_external/js/mountsfilelist.js b/apps/files_external/js/mountsfilelist.js index 034c29c05c2..c5817a916f6 100644 --- a/apps/files_external/js/mountsfilelist.js +++ b/apps/files_external/js/mountsfilelist.js @@ -28,7 +28,7 @@ FileList.prototype = _.extend({}, OCA.Files.FileList.prototype, /** @lends OCA.Files_External.FileList.prototype */ { - appName: 'External storages', + appName: 'External storage', _allowSelection: false, diff --git a/apps/files_external/lib/Service/GlobalStoragesService.php b/apps/files_external/lib/Service/GlobalStoragesService.php index 22c366d5bb3..2c195bd8694 100644 --- a/apps/files_external/lib/Service/GlobalStoragesService.php +++ b/apps/files_external/lib/Service/GlobalStoragesService.php @@ -33,7 +33,7 @@ use OC\Files\Filesystem; use OCA\Files_External\Lib\StorageConfig; /** - * Service class to manage global external storages + * Service class to manage global external storage */ class GlobalStoragesService extends StoragesService { /** diff --git a/apps/files_external/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php index 825921832cf..60f6118284a 100644 --- a/apps/files_external/lib/Service/LegacyStoragesService.php +++ b/apps/files_external/lib/Service/LegacyStoragesService.php @@ -97,7 +97,7 @@ abstract class LegacyStoragesService { } /** - * Read the external storages config + * Read the external storage config * * @return StorageConfig[] map of storage id to storage config */ diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 334b1c5041a..aed05e2725a 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -45,7 +45,7 @@ use OCP\Files\StorageNotAvailableException; use OCP\ILogger; /** - * Service class to manage external storages + * Service class to manage external storage */ abstract class StoragesService { @@ -125,7 +125,7 @@ abstract class StoragesService { } /** - * Read the external storages config + * Read the external storage config * * @return array map of storage id to storage config */ diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php index 138876f4e1c..770a4f25e03 100644 --- a/apps/files_external/lib/Service/UserStoragesService.php +++ b/apps/files_external/lib/Service/UserStoragesService.php @@ -36,7 +36,7 @@ use OCP\Files\Config\IUserMountCache; use OCP\IUserSession; /** - * Service class to manage user external storages + * Service class to manage user external storage * (aka personal storages) */ class UserStoragesService extends StoragesService { diff --git a/apps/files_external/lib/Settings/Section.php b/apps/files_external/lib/Settings/Section.php index 50f9707118e..02cb12c5b39 100644 --- a/apps/files_external/lib/Settings/Section.php +++ b/apps/files_external/lib/Settings/Section.php @@ -60,7 +60,7 @@ class Section implements IIconSection { * @return string */ public function getName() { - return $this->l->t('External storages'); + return $this->l->t('External storage'); } /** diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 45858709a02..a9bf5bd3af0 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -101,7 +101,7 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN || </div> <form data-can-create="<?php echo $canCreateMounts?'true':'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled']?'true': 'false'; ?>"> - <h2 class="inlineblock" data-anchor-name="external-storage"><?php p($l->t('External storages')); ?></h2> + <h2 class="inlineblock" data-anchor-name="external-storage"><?php p($l->t('External storage')); ?></h2> <a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a> <p class="settings-hint"><?php p($l->t('External storage enables you to mount external storage services and devices as secondary Nextcloud storage devices. You may also allow users to mount their own external storage services.')); ?></p> <?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) { @@ -207,7 +207,7 @@ $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN || <form autocomplete="false" action="#" id="global_credentials" method="post"> <h2><?php p($l->t('Global credentials')); ?></h2> - <p class="settings-hint"><?php p($l->t('Global credentials can be used to authenticate with multiple external storages that have the same credentials.')); ?></p> + <p class="settings-hint"><?php p($l->t('Global credentials can be used to authenticate with multiple external storage that have the same credentials.')); ?></p> <input type="text" name="username" autocomplete="false" value="<?php p($_['globalCredentials']['user']); ?>" diff --git a/apps/files_external/tests/Settings/SectionTest.php b/apps/files_external/tests/Settings/SectionTest.php index fe9dde4f54a..96bf1cd1eb9 100644 --- a/apps/files_external/tests/Settings/SectionTest.php +++ b/apps/files_external/tests/Settings/SectionTest.php @@ -57,10 +57,10 @@ class SectionTest extends TestCase { $this->l ->expects($this->once()) ->method('t') - ->with('External storages') - ->willReturn('External storages'); + ->with('External storage') + ->willReturn('External storage'); - $this->assertSame('External storages', $this->section->getName()); + $this->assertSame('External storage', $this->section->getName()); } public function testGetPriority() { diff --git a/apps/files_external/tests/js/mountsfilelistSpec.js b/apps/files_external/tests/js/mountsfilelistSpec.js index 309c87948cd..cbc7ff415e3 100644 --- a/apps/files_external/tests/js/mountsfilelistSpec.js +++ b/apps/files_external/tests/js/mountsfilelistSpec.js @@ -72,7 +72,7 @@ describe('OCA.Files_External.FileList tests', function() { alertStub.restore(); }); - describe('loading file list for external storages', function() { + describe('loading file list for external storage', function() { var ocsResponse; var reloading; diff --git a/apps/files_sharing/lib/External/Mount.php b/apps/files_sharing/lib/External/Mount.php index 12874198811..8ed04182143 100644 --- a/apps/files_sharing/lib/External/Mount.php +++ b/apps/files_sharing/lib/External/Mount.php @@ -71,7 +71,7 @@ class Mount extends MountPoint implements MoveableMount { } /** - * Get the type of mount point, used to distinguish things like shares and external storages + * Get the type of mount point, used to distinguish things like shares and external storage * in the web interface * * @return string diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index 9a564f85f63..b2442410af4 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -54,7 +54,7 @@ class FileName extends AbstractStringCheck implements IFileCheck { protected function getActualValue(): string { $fileName = $this->path === null ? '' : basename($this->path); if ($fileName === '' && (!$this->storage->isLocal() || $this->storage->instanceOfStorage(Local::class))) { - // Return the mountpoint name of external storages that are not mounted as user home + // Return the mountpoint name of external storage that are not mounted as user home $mountPoints = $this->mountManager->findByStorageId($this->storage->getId()); if (empty($mountPoints) || $mountPoints[0]->getMountType() !== 'external') { return $fileName; |