Browse Source

Localization: update edit strings

Carola Nitz 6 years ago
parent
commit
fc951ebbc8
2 changed files with 7 additions and 2 deletions
  1. 6 1
      Resources/en.lproj/Localizable.strings
  2. 1 1
      Sources/VLCEditController.swift

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

@@ -56,7 +56,6 @@
 "BUTTON_ALL" = "Select All";
 "BUTTON_ABOUT" = "About";
 "BUTTON_BACK" = "Back";
-"BUTTON_EDIT" = "Edit";
 "BUTTON_DONE" = "Done";
 "BUTTON_CANCEL" = "Cancel";
 "BUTTON_SAVE" = "Save";
@@ -321,6 +320,12 @@
 //EDIT
 "ADD_TO_PLAYLIST" = "Add to Playlist";
 
+"PLAYLIST_PLACEHOLDER" = "Playlist title";
+"PLAYLIST_DESCRIPTION" = "Choose a title for your new Playlist";
+
+"RENAME_PLACEHOLDER" = "New title";
+"ERROR_RENAME_FAILED" = "Renaming failed";
+"ERROR_EMPTY_NAME" = "The title can't be empty";
 // VLCMediaLibraryKit - Sorting Criteria
 
 "ALPHA" = "Alphanumerically";

+ 1 - 1
Sources/VLCEditController.swift

@@ -150,7 +150,7 @@ extension VLCEditController: VLCEditToolbarDelegate {
             if let media = model.anyfiles[indexPath.row] as? VLCMLMedia {
                 // Not using VLCAlertViewController to have more customization in text fields
                 let alertInfo = TextFieldAlertInfo(alertTitle: String(format: NSLocalizedString("RENAME_MEDIA_TO", comment: ""), media.title),
-                                                   placeHolder: "NEW_NAME",
+                                                   placeHolder: NSLocalizedString("RENAME_PLACEHOLDER", comment: ""),
                                                    confirmActionTitle: NSLocalizedString("BUTTON_RENAME", comment: ""))
                 presentTextFieldAlert(with: alertInfo, completionHandler: {
                     [weak self] text -> Void in