瀏覽代碼

Fix 'retrieve' typo

Felix Paul Kühne 6 年之前
父節點
當前提交
fcae7995a4
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 1 1
      Resources/en.lproj/Localizable.strings
  2. 4 4
      SharedSources/MediaLibraryService.swift
  3. 1 1
      Sources/VLCEditController.swift

+ 1 - 1
Resources/en.lproj/Localizable.strings

@@ -307,7 +307,7 @@
 "PLAYLIST_PLACEHOLDER" = "Playlist title";
 "PLAYLIST_DESCRIPTION" = "Choose a title for your new playlist";
 "ERROR_PLAYLIST_CREATION" = "Failed to create a playlist";
-"ERROR_PLAYLIST_TRACKS" = "Failed to retreive tracks";
+"ERROR_PLAYLIST_TRACKS" = "Failed to retrieve tracks";
 
 "RENAME_PLACEHOLDER" = "New title";
 "ERROR_RENAME_FAILED" = "Renaming failed";

+ 4 - 4
SharedSources/MediaLibraryService.swift

@@ -177,7 +177,7 @@ private extension MediaLibraryService {
 
     func migrateMedia(_ oldMedialibrary: MLMediaLibrary) -> Bool {
         guard let allFiles = MLFile.allFiles() as? [MLFile] else {
-            assertionFailure("MediaLibraryService: Migration: Unable to retreive all files")
+            assertionFailure("MediaLibraryService: Migration: Unable to retrieve all files")
             return false
         }
 
@@ -202,7 +202,7 @@ private extension MediaLibraryService {
     // Note: This removes **only** files that are in a playlist
     func migratePlaylists(_ oldMedialibrary: MLMediaLibrary) -> Bool {
         guard let allLabels = MLLabel.allLabels() as? [MLLabel] else {
-            assertionFailure("MediaLibraryService: Migration: Unable to retreive all labels")
+            assertionFailure("MediaLibraryService: Migration: Unable to retrieve all labels")
             return false
         }
 
@@ -213,7 +213,7 @@ private extension MediaLibraryService {
             }
 
             guard let files = label.files as? Set<MLFile> else {
-                assertionFailure("MediaLibraryService: Migration: Unable to retreive files from label")
+                assertionFailure("MediaLibraryService: Migration: Unable to retrieve files from label")
                 oldMedialibrary.remove(label)
                 continue
             }
@@ -233,7 +233,7 @@ private extension MediaLibraryService {
 
     func migrateToNewMediaLibrary() -> Bool {
         guard let oldMedialibrary = MLMediaLibrary.sharedMediaLibrary() as? MLMediaLibrary else {
-            assertionFailure("MediaLibraryService: Migration: Unable to retreive old medialibrary")
+            assertionFailure("MediaLibraryService: Migration: Unable to retrieve old medialibrary")
             return false
         }
 

+ 1 - 1
Sources/VLCEditController.swift

@@ -114,7 +114,7 @@ private extension VLCEditController {
         } else if let mediaCollectionArray = model.anyfiles as? [MediaCollectionModel] {
             for index in selectedCellIndexPaths where index.row < mediaCollectionArray.count {
                 guard let tracks = mediaCollectionArray[index.row].files() else {
-                    assertionFailure("EditController: Fail to retreive tracks.")
+                    assertionFailure("EditController: Fail to retrieve tracks.")
                     DispatchQueue.main.async {
                         VLCAlertViewController.alertViewManager(title: NSLocalizedString("ERROR_PLAYLIST_TRACKS",
                                                                                          comment: ""),