Skip to content

Commit 8c8ad8b

Browse files
luz pazluzpaz
luz paz
authored andcommitted
Fix typos in apps/ subdirectory
Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com>
1 parent 5d697b5 commit 8c8ad8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+74
-74
lines changed

apps/cloud_federation_api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# cloud_federation_api
2-
The cloud federation API allows to share information like files, contacts, calendars, incoming calls, etc accross Nextcloud instances
2+
The cloud federation API allows to share information like files, contacts, calendars, incoming calls, etc across Nextcloud instances

apps/comments/src/activitytabviewplugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* @param {OCA.Activity.ActivityModel} model for this activity
3333
* @param {jQuery} $el jQuery handle for this activity
34-
* @param {string} view The view that displayes this activity
34+
* @param {string} view The view that displays this activity
3535
*/
3636
prepareModelForDisplay(model, $el, view) {
3737
if (model.get('app') !== 'comments' || model.get('type') !== 'comments') {

apps/comments/src/services/GetComments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default async function({ commentsType, ressourceId }, options = {}) {
5050
<oc:offset>${options.offset || 0}</oc:offset>
5151
</oc:filter-comments>`,
5252
}, options))
53-
// See example on how it's done normaly
53+
// See example on how it's done normally
5454
// https://github.com/perry-mitchell/webdav-client/blob/9de2da4a2599e06bd86c2778145b7ade39fe0b3c/source/interface/stat.js#L19
5555
// Waiting for proper REPORT integration https://github.com/perry-mitchell/webdav-client/issues/207
5656
.then(res => {

apps/dav/lib/DAV/SystemPrincipalBackend.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getPrincipalsByPrefix($prefixPath) {
6060
}
6161

6262
/**
63-
* Returns a specific principal, specified by it's path.
63+
* Returns a specific principal, specified by its path.
6464
* The returned structure should be the exact same as from
6565
* getPrincipalsByPrefix.
6666
*

apps/dav/lib/Listener/CalendarShareUpdateListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function handle(Event $event): void {
5050
return;
5151
}
5252

53-
$this->logger->debug("Creating activity for Calendar having it's shares updated");
53+
$this->logger->debug("Creating activity for Calendar having its shares updated");
5454

5555
$this->activityBackend->onCalendarUpdateShares(
5656
$event->getCalendarData(),

apps/dav/tests/unit/CalDAV/CalDavBackendTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class CalDavBackendTest extends AbstractCalDavBackend {
5555
public function testCalendarOperations() {
5656
$calendarId = $this->createTestCalendar();
5757

58-
// update it's display name
58+
// update its display name
5959
$patch = new PropPatch([
6060
'{DAV:}displayname' => 'Unit test',
6161
'{urn:ietf:params:xml:ns:caldav}calendar-description' => 'Calendar used for unit testing'

apps/dav/tests/unit/CardDAV/CardDavBackendTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function testAddressBookOperations() {
193193
$this->assertEquals('Example', $books[0]['{DAV:}displayname']);
194194
$this->assertEquals('User\'s displayname', $books[0]['{http://nextcloud.com/ns}owner-displayname']);
195195

196-
// update it's display name
196+
// update its display name
197197
$patch = new PropPatch([
198198
'{DAV:}displayname' => 'Unit test',
199199
'{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'Addressbook used for unit testing'

apps/encryption/lib/KeyManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ public function backupUserKeys($purpose, $uid) {
623623
}
624624

625625
/**
626-
* creat a backup of the users private and public key and then delete it
626+
* create a backup of the users private and public key and then delete it
627627
*
628628
* @param string $uid
629629
*/

apps/federatedfilesharing/lib/FederatedShareProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ private function getNode($userId, $id) {
969969
* @param int $shareType
970970
*/
971971
public function userDeleted($uid, $shareType) {
972-
//TODO: probabaly a good idea to send unshare info to remote servers
972+
//TODO: probably a good idea to send unshare info to remote servers
973973

974974
$qb = $this->dbConnection->getQueryBuilder();
975975

apps/federation/js/settings-admin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
var url = $(this).val();
7171

72-
// toggle add-button visiblity based on input length
72+
// toggle add-button visibility based on input length
7373
if ( url.length > 0 )
7474
$btnSubmit.removeClass("hidden")
7575
else

apps/federation/lib/BackgroundJob/RequestSharedSecret.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ protected function run($argument) {
155155
$endPoints = $this->ocsDiscoveryService->discover($target, 'FEDERATED_SHARING');
156156
$endPoint = isset($endPoints['shared-secret']) ? $endPoints['shared-secret'] : $this->defaultEndPoint;
157157

158-
// make sure that we have a well formated url
158+
// make sure that we have a well formatted url
159159
$url = rtrim($target, '/') . '/' . trim($endPoint, '/');
160160

161161
try {

apps/files/css/files.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ table.dragshadow td.size {
10191019
overflow: hidden;
10201020
// we but the thumbnail in background to ensure
10211021
// the name is the default click handler
1022-
// force back the cursor which have been overrided
1022+
// force back the cursor which has been overridden
10231023
// and disabled for some reason...
10241024
cursor: pointer !important;
10251025

apps/files/js/breadcrumb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
// depending on whether the menu was previously being shown or not.
321321
this.$el.find('.crumbmenu').addClass('hidden');
322322

323-
// Show the crumbs to compress the siblings before hidding again the
323+
// Show the crumbs to compress the siblings before hiding again the
324324
// crumbs. This is needed when the siblings expand to fill all the
325325
// available width, as in that case their old width would limit the
326326
// available width for the crumbs.

apps/files/js/file-upload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* The file upload code uses several hooks to interact with blueimps jQuery file upload library:
1313
* 1. the core upload handling hooks are added when initializing the plugin,
1414
* 2. if the browser supports progress events they are added in a separate set after the initialization
15-
* 3. every app can add it's own triggers for fileupload
15+
* 3. every app can add its own triggers for fileupload
1616
* - files adds d'n'd handlers and also reacts to done events to add new rows to the filelist
1717
* - TODO pictures upload button
1818
* - TODO music upload button

apps/files/js/filelist.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@
25912591
* @param fileNames array of file names to move
25922592
* @param targetPath absolute target path
25932593
* @param callback function to call when movement is finished
2594-
* @param dir the dir path where fileNames are located (optionnal, will take current folder if undefined)
2594+
* @param dir the dir path where fileNames are located (optional, will take current folder if undefined)
25952595
*/
25962596
move: function(fileNames, targetPath, callback, dir) {
25972597
var self = this;
@@ -2683,7 +2683,7 @@
26832683
* @param fileNames array of file names to copy
26842684
* @param targetPath absolute target path
26852685
* @param callback to call when copy is finished with success
2686-
* @param dir the dir path where fileNames are located (optionnal, will take current folder if undefined)
2686+
* @param dir the dir path where fileNames are located (optional, will take current folder if undefined)
26872687
*/
26882688
copy: function(fileNames, targetPath, callback, dir) {
26892689
var self = this;
@@ -2712,7 +2712,7 @@
27122712
if ( dotIndex > 1) {
27132713
var leftPartOfName = targetPathAndName.substr(0, dotIndex);
27142714
var fileNumber = leftPartOfName.match(/\d+/);
2715-
// TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appened with a number if it is the second+ copy
2715+
// TRANSLATORS name that is appended to copied files with the same name, will be put in parenthesis and appended with a number if it is the second+ copy
27162716
var copyNameLocalized = t('files', 'copy');
27172717
if (isNaN(fileNumber) ) {
27182718
fileNumber++;

apps/files/js/jquery.fileupload.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
_initProgressListener: function (options) {
421421
var that = this,
422422
xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
423-
// Accesss to the native XHR object is required to add event listeners
423+
// Access to the native XHR object is required to add event listeners
424424
// for the upload progress event:
425425
if (xhr.upload) {
426426
$(xhr.upload).bind('progress', function (e) {
@@ -1060,7 +1060,7 @@
10601060
data.fileInputClone = inputClone;
10611061
$('<form></form>').append(inputClone)[0].reset();
10621062
// Detaching allows to insert the fileInput on another form
1063-
// without loosing the file input value:
1063+
// without losing the file input value:
10641064
input.after(inputClone).detach();
10651065
// If the fileInput had focus before it was detached,
10661066
// restore focus to the inputClone.
@@ -1138,7 +1138,7 @@
11381138
dirReader = entry.createReader();
11391139
readEntries();
11401140
} else {
1141-
// Return an empy list for file system items
1141+
// Return an empty list for file system items
11421142
// other than files or directories:
11431143
dfd.resolve([]);
11441144
}

apps/files/lib/Command/RepairTree.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
6868
->where($query->expr()->eq('fileid', $query->createParameter('fileid')));
6969

7070
foreach ($rows as $row) {
71-
$output->writeln("Path of file {$row['fileid']} is {$row['path']} but should be {$row['parent_path']}/{$row['name']} based on it's parent", OutputInterface::VERBOSITY_VERBOSE);
71+
$output->writeln("Path of file {$row['fileid']} is {$row['path']} but should be {$row['parent_path']}/{$row['name']} based on its parent", OutputInterface::VERBOSITY_VERBOSE);
7272

7373
if ($fix) {
7474
$fileId = $this->getFileId((int)$row['parent_storage'], $row['parent_path'] . '/' . $row['name']);

apps/files/lib/Controller/ApiController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private function getShareTypesForNodes(array $nodes): array {
247247
}
248248

249249
/**
250-
* Returns a list of recently modifed files.
250+
* Returns a list of recently modified files.
251251
*
252252
* @NoAdminRequired
253253
*

apps/files/lib/Notification/Notifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function dismissNotification(INotification $notification): void {
278278
throw new \InvalidArgumentException('Unhandled app');
279279
}
280280

281-
// TODO: This should all be moved to a service that also the transferownershipContoller uses.
281+
// TODO: This should all be moved to a service that also the transferownershipController uses.
282282
try {
283283
$transferOwnership = $this->mapper->getById((int)$notification->getObjectId());
284284
} catch (DoesNotExistException $e) {

apps/files/src/views/Sidebar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export default {
455455
/**
456456
* Allow to set the Sidebar as fullscreen from OCA.Files.Sidebar
457457
*
458-
* @param {boolean} isFullScreen - Wether or not to render the Sidebar in fullscreen.
458+
* @param {boolean} isFullScreen - Whether or not to render the Sidebar in fullscreen.
459459
*/
460460
setFullScreenMode(isFullScreen) {
461461
this.isFullScreen = isFullScreen

apps/files/tests/js/filelistSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('OCA.Files.FileList tests', function() {
266266
type: OCA.Files.FileActions.TYPE_INLINE,
267267
permissions: OC.PERMISSION_ALL,
268268
icon: function() {
269-
// Specify icon for hitory button
269+
// Specify icon for history button
270270
return OC.imagePath('core','actions/history');
271271
},
272272
actionHandler: actionStub
@@ -2474,7 +2474,7 @@ describe('OCA.Files.FileList tests', function() {
24742474
type: OCA.Files.FileActions.TYPE_INLINE,
24752475
permissions: OC.PERMISSION_ALL,
24762476
icon: function() {
2477-
// Specify icon for hitory button
2477+
// Specify icon for history button
24782478
return OC.imagePath('core','actions/history');
24792479
},
24802480
actionHandler: actionStub
@@ -2539,7 +2539,7 @@ describe('OCA.Files.FileList tests', function() {
25392539
type: OCA.Files.FileActions.TYPE_INLINE,
25402540
permissions: OC.PERMISSION_ALL,
25412541
icon: function() {
2542-
// Specify icon for hitory button
2542+
// Specify icon for history button
25432543
return OC.imagePath('core','actions/history');
25442544
},
25452545
actionHandler: actionStub

apps/files_external/lib/Controller/GlobalStoragesController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function create(
145145
* @param int $id storage id
146146
* @param string $mountPoint storage mount point
147147
* @param string $backend backend identifier
148-
* @param string $authMechanism authentication mechansim identifier
148+
* @param string $authMechanism authentication mechanism identifier
149149
* @param array $backendOptions backend-specific options
150150
* @param array $mountOptions mount-specific options
151151
* @param array $applicableUsers users for which to mount the storage

apps/files_external/lib/Lib/Auth/AuthMechanism.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* such as \OCP\IDB for database operations. This allows an authentication
3838
* mechanism to perform advanced operations based on provided information.
3939
*
40-
* An authenication scheme defines the parameter interface, common to the
40+
* An authentication scheme defines the parameter interface, common to the
4141
* storage implementation, the backend and the authentication mechanism.
4242
* A storage implementation expects parameters according to the authentication
4343
* scheme, which are provided from the authentication mechanism.

apps/files_external/lib/Lib/Backend/Backend.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* such as \OCP\IDB for database operations. This allows a backend
3939
* to perform advanced operations based on provided information.
4040
*
41-
* An authenication scheme defines the parameter interface, common to the
41+
* An authentication scheme defines the parameter interface, common to the
4242
* storage implementation, the backend and the authentication mechanism.
4343
* A storage implementation expects parameters according to the authentication
4444
* scheme, which are provided from the authentication mechanism.

apps/files_external/lib/Lib/StorageConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function getPriority() {
261261
}
262262

263263
/**
264-
* Sets the mount priotity
264+
* Sets the mount priority
265265
*
266266
* @param int $priority priority
267267
*/

apps/files_external/lib/Service/StoragesService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function createStorage(
345345
* Triggers the given hook signal for all the applicables given
346346
*
347347
* @param string $signal signal
348-
* @param string $mountPoint hook mount pount param
348+
* @param string $mountPoint hook mount point param
349349
* @param string $mountType hook mount type param
350350
* @param array $applicableArray array of applicable users/groups for which to trigger the hook
351351
*/

apps/files_external/tests/Storage/SmbTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testNotifyListen() {
135135

136136
$result = null;
137137

138-
// since the notify handler buffers untill we start listening we will get the above changes
138+
// since the notify handler buffers until we start listening we will get the above changes
139139
$notifyHandler->listen(function (IChange $change) use (&$result) {
140140
$result = $change;
141141
return false;//stop listening

apps/files_sharing/js/files_drop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
Drop.addFileToUpload(e, data);
9898
$('#drop-upload-status').text(t('files_sharing', 'Waiting…'));
9999
//we return true to keep trying to upload next file even
100-
//if addFileToUpload did not like the privious one
100+
//if addFileToUpload did not like the previous one
101101
return true;
102102
},
103103
done: function(e, data) {

apps/files_sharing/lib/Cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function getRoot() {
7777

7878
// the sourceRootInfo path is the absolute path of the folder in the "real" storage
7979
// in the case where a folder is shared from a Jail we need to ensure that the share Jail
80-
// has it's root set relative to the source Jail
80+
// has its root set relative to the source Jail
8181
$currentStorage = $this->storage->getSourceStorage();
8282
if ($currentStorage->instanceOfStorage(Jail::class)) {
8383
/** @var Jail $currentStorage */

apps/files_sharing/lib/Controller/ShareAPIController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public function getShare(string $id): DataResponse {
382382
return new DataResponse([$share]);
383383
}
384384
} catch (NotFoundException $e) {
385-
// Fall trough
385+
// Fall through
386386
}
387387

388388
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
@@ -1219,7 +1219,7 @@ public function updateShare(
12191219

12201220
if ($label !== null) {
12211221
if (strlen($label) > 255) {
1222-
throw new OCSBadRequestException("Maxmimum label length is 255");
1222+
throw new OCSBadRequestException("Maximum label length is 255");
12231223
}
12241224
$share->setLabel($label);
12251225
}

apps/files_sharing/lib/Controller/ShareController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected function emitShareAccessEvent(IShare $share, string $step = '', int $e
324324
* @return bool
325325
*/
326326
private function validateShare(\OCP\Share\IShare $share) {
327-
// If the owner is disabled no access to the linke is granted
327+
// If the owner is disabled no access to the link is granted
328328
$owner = $this->userManager->get($share->getShareOwner());
329329
if ($owner === null || !$owner->isEnabled()) {
330330
return false;

apps/files_sharing/lib/SharedStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function getOwner($path): string {
436436
public function getWatcher($path = '', $storage = null): Watcher {
437437
$mountManager = \OC::$server->getMountManager();
438438

439-
// Get node informations
439+
// Get node information
440440
$node = $this->getShare()->getNodeCacheEntry();
441441
if ($node) {
442442
$mount = $mountManager->findByNumericId($node->getStorageId());

apps/files_sharing/src/components/SharingEntryLink.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ export default {
824824
},
825825

826826
/**
827-
* Menu have been closed or password has been submited.
827+
* Menu have been closed or password has been submitted.
828828
* The only property that does not get
829829
* synced automatically is the password
830830
* So let's check if we have an unsaved

apps/files_sharing/src/components/SharingInput.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default {
249249

250250
const allSuggestions = exactSuggestions.concat(suggestions).concat(externalResults).concat(lookupEntry)
251251

252-
// Count occurances of display names in order to provide a distinguishable description if needed
252+
// Count occurrences of display names in order to provide a distinguishable description if needed
253253
const nameCounts = allSuggestions.reduce((nameCounts, result) => {
254254
if (!result.displayName) {
255255
return nameCounts
@@ -383,7 +383,7 @@ export default {
383383
shareTypeToIcon(type) {
384384
switch (type) {
385385
case this.SHARE_TYPES.SHARE_TYPE_GUEST:
386-
// default is a user, other icons are here to differenciate
386+
// default is a user, other icons are here to differentiate
387387
// themselves from it, so let's not display the user icon
388388
// case this.SHARE_TYPES.SHARE_TYPE_REMOTE:
389389
// case this.SHARE_TYPES.SHARE_TYPE_USER:

apps/files_sharing/src/models/Share.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export default class Share {
392392
/**
393393
* Password expiration time
394394
*
395-
* @param {string} password exipration time
395+
* @param {string} password expiration time
396396
* @memberof Share
397397
*/
398398
set passwordExpirationTime(passwordExpirationTime) {

apps/files_sharing/src/views/SharingTab.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
:name="fileInfo.name" />
7676
</template>
7777

78-
<!-- additionnal entries, use it with cautious -->
78+
<!-- additional entries, use it with cautious -->
7979
<div v-for="(section, index) in sections"
8080
:ref="'section-' + index"
8181
:key="index"

apps/files_sharing/tests/ApiTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* Class ApiTest
5555
*
5656
* @group DB
57-
* TODO: convert to real intergration tests
57+
* TODO: convert to real integration tests
5858
*/
5959
class ApiTest extends TestCase {
6060
public const TEST_FOLDER_NAME = '/folder_share_api_test';

0 commit comments

Comments
 (0)