title: How to change Wordpress Media Strings with media_view_strings filter
body: <p>Hi I want to change some strings in media popup i found that i can filter $strings variable width  <a href="https://developer.wordpress.org/reference/hooks/media_view_strings/" rel="nofollow">media_view_strings</a> filter , how i can do this ?</p>
  
  <p>i want to change </p>
  
  <p>Here is the wp-includes/media.php file</p>
  
  <pre><code>$strings = array(
      // Generic
      'url'         =&gt; __( 'URL' ),
      'addMedia'    =&gt; __( 'Add Media' ),
      'search'      =&gt; __( 'Search' ),
      'select'      =&gt; __( 'Select' ),
      'cancel'      =&gt; __( 'Cancel' ),
      'update'      =&gt; __( 'Update' ),
      'replace'     =&gt; __( 'Replace' ),
      'remove'      =&gt; __( 'Remove' ),
      'back'        =&gt; __( 'Back' ),
      /* translators: This is a would-be plural string used in the media manager.
         If there is not a word you can use in your language to avoid issues with the
         lack of plural support here, turn it into "selected: %d" then translate it.
       */
      'selected'    =&gt; __( '%d selected' ),
      'dragInfo'    =&gt; __( 'Drag and drop to reorder media files.' ),
  
      // Upload
      'uploadFilesTitle'  =&gt; __( 'Upload Files' ),
      'uploadImagesTitle' =&gt; __( 'Upload Images' ),
  
      // Library
      'mediaLibraryTitle'      =&gt; __( 'Media Library' ),
      'insertMediaTitle'       =&gt; __( 'Insert Media' ),
      'createNewGallery'       =&gt; __( 'Create a new gallery' ),
      'createNewPlaylist'      =&gt; __( 'Create a new playlist' ),
      'createNewVideoPlaylist' =&gt; __( 'Create a new video playlist' ),
      'returnToLibrary'        =&gt; __( '&amp;#8592; Return to library' ),
      'allMediaItems'          =&gt; __( 'All media items' ),
      'allDates'               =&gt; __( 'All dates' ),
      'noItemsFound'           =&gt; __( 'No items found.' ),
      'insertIntoPost'         =&gt; $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
      'unattached'             =&gt; __( 'Unattached' ),
      'trash'                  =&gt; _x( 'Trash', 'noun' ),
      'uploadedToThisPost'     =&gt; $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
      'warnDelete'             =&gt; __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
      'warnBulkDelete'         =&gt; __( "You are about to permanently delete these items.\n  'Cancel' to stop, 'OK' to delete." ),
      'warnBulkTrash'          =&gt; __( "You are about to trash these items.\n  'Cancel' to stop, 'OK' to delete." ),
      'bulkSelect'             =&gt; __( 'Bulk Select' ),
      'cancelSelection'        =&gt; __( 'Cancel Selection' ),
      'trashSelected'          =&gt; __( 'Trash Selected' ),
      'untrashSelected'        =&gt; __( 'Untrash Selected' ),
      'deleteSelected'         =&gt; __( 'Delete Selected' ),
      'deletePermanently'      =&gt; __( 'Delete Permanently' ),
      'apply'                  =&gt; __( 'Apply' ),
      'filterByDate'           =&gt; __( 'Filter by date' ),
      'filterByType'           =&gt; __( 'Filter by type' ),
      'searchMediaLabel'       =&gt; __( 'Search Media' ),
      'noMedia'                =&gt; __( 'No media attachments found.' ),
  
      // Library Details
      'attachmentDetails'  =&gt; __( 'Attachment Details' ),
  
      // From URL
      'insertFromUrlTitle' =&gt; __( 'Insert from URL' ),
  
      // Featured Images
      'setFeaturedImageTitle' =&gt; $post_type_object-&gt;labels-&gt;featured_image,
      'setFeaturedImage'      =&gt; $post_type_object-&gt;labels-&gt;set_featured_image,
  
      // Gallery
      'createGalleryTitle' =&gt; __( 'Create Gallery' ),
      'editGalleryTitle'   =&gt; __( 'Edit Gallery' ),
      'cancelGalleryTitle' =&gt; __( '&amp;#8592; Cancel Gallery' ),
      'insertGallery'      =&gt; __( 'Insert gallery' ),
      'updateGallery'      =&gt; __( 'Update gallery' ),
      'addToGallery'       =&gt; __( 'Add to gallery' ),
      'addToGalleryTitle'  =&gt; __( 'Add to Gallery' ),
      'reverseOrder'       =&gt; __( 'Reverse order' ),
  
      // Edit Image
      'imageDetailsTitle'     =&gt; __( 'Image Details' ),
      'imageReplaceTitle'     =&gt; __( 'Replace Image' ),
      'imageDetailsCancel'    =&gt; __( 'Cancel Edit' ),
      'editImage'             =&gt; __( 'Edit Image' ),
  
      // Crop Image
      'chooseImage' =&gt; __( 'Choose Image' ),
      'selectAndCrop' =&gt; __( 'Select and Crop' ),
      'skipCropping' =&gt; __( 'Skip Cropping' ),
      'cropImage' =&gt; __( 'Crop Image' ),
      'cropYourImage' =&gt; __( 'Crop your image' ),
      'cropping' =&gt; __( 'Cropping&amp;hellip;' ),
      'suggestedDimensions' =&gt; __( 'Suggested image dimensions:' ),
      'cropError' =&gt; __( 'There has been an error cropping your image.' ),
  
      // Edit Audio
      'audioDetailsTitle'     =&gt; __( 'Audio Details' ),
      'audioReplaceTitle'     =&gt; __( 'Replace Audio' ),
      'audioAddSourceTitle'   =&gt; __( 'Add Audio Source' ),
      'audioDetailsCancel'    =&gt; __( 'Cancel Edit' ),
  
      // Edit Video
      'videoDetailsTitle'     =&gt; __( 'Video Details' ),
      'videoReplaceTitle'     =&gt; __( 'Replace Video' ),
      'videoAddSourceTitle'   =&gt; __( 'Add Video Source' ),
      'videoDetailsCancel'    =&gt; __( 'Cancel Edit' ),
      'videoSelectPosterImageTitle' =&gt; __( 'Select Poster Image' ),
      'videoAddTrackTitle'    =&gt; __( 'Add Subtitles' ),
  
      // Playlist
      'playlistDragInfo'    =&gt; __( 'Drag and drop to reorder tracks.' ),
      'createPlaylistTitle' =&gt; __( 'Create Audio Playlist' ),
      'editPlaylistTitle'   =&gt; __( 'Edit Audio Playlist' ),
      'cancelPlaylistTitle' =&gt; __( '&amp;#8592; Cancel Audio Playlist' ),
      'insertPlaylist'      =&gt; __( 'Insert audio playlist' ),
      'updatePlaylist'      =&gt; __( 'Update audio playlist' ),
      'addToPlaylist'       =&gt; __( 'Add to audio playlist' ),
      'addToPlaylistTitle'  =&gt; __( 'Add to Audio Playlist' ),
  
      // Video Playlist
      'videoPlaylistDragInfo'    =&gt; __( 'Drag and drop to reorder videos.' ),
      'createVideoPlaylistTitle' =&gt; __( 'Create Video Playlist' ),
      'editVideoPlaylistTitle'   =&gt; __( 'Edit Video Playlist' ),
      'cancelVideoPlaylistTitle' =&gt; __( '&amp;#8592; Cancel Video Playlist' ),
      'insertVideoPlaylist'      =&gt; __( 'Insert video playlist' ),
      'updateVideoPlaylist'      =&gt; __( 'Update video playlist' ),
      'addToVideoPlaylist'       =&gt; __( 'Add to video playlist' ),
      'addToVideoPlaylistTitle'  =&gt; __( 'Add to Video Playlist' ),
  );
  
  /**
   * Filter the media view settings.
   *
   * @since 3.5.0
   *
   * @param array   $settings List of media view settings.
   * @param WP_Post $post     Post object.
   */
  $settings = apply_filters( 'media_view_settings', $settings, $post );
  
  /**
   * Filter the media view strings.
   *
   * @since 3.5.0
   *
   * @param array   $strings List of media view strings.
   * @param WP_Post $post    Post object.
   */
  $strings = apply_filters( 'media_view_strings', $strings,  $post );
  </code></pre>
  
  <p>that's all</p>