Changeset 36887
- Timestamp:
- 03/08/2016 05:42:45 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r36659 r36887 161 161 10 => __( 'Page draft updated.' ) . $preview_page_link_html, 162 162 ); 163 $messages['attachment'] = array_fill( 1, 10, __( 'Media attachmentupdated.' ) ); // Hack, for now.163 $messages['attachment'] = array_fill( 1, 10, __( 'Media file updated.' ) ); // Hack, for now. 164 164 165 165 /** -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r36331 r36887 214 214 */ 215 215 public function no_items() { 216 _e( 'No media attachments found.' );216 _e( 'No media files found.' ); 217 217 } 218 218 -
trunk/src/wp-admin/media.php
r33067 r36887 93 93 switch ( $_GET['message'] ) { 94 94 case 'updated' : 95 $message = __('Media attachmentupdated.');95 $message = __('Media file updated.'); 96 96 $class = 'updated'; 97 97 break; -
trunk/src/wp-admin/upload.php
r36668 r36887 200 200 'title' => __('Attaching Files'), 201 201 'content' => 202 '<p>' . __( 'If a media file has not been attached to any post, you will see that in the Attached To column, and can click on Attach File to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>'202 '<p>' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '</p>' 203 203 ) ); 204 204 … … 235 235 $message = ''; 236 236 if ( ! empty( $_GET['posted'] ) ) { 237 $message = __( 'Media attachmentupdated.' );237 $message = __( 'Media file updated.' ); 238 238 $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 239 239 } … … 241 241 if ( ! empty( $_GET['attached'] ) && $attached = absint( $_GET['attached'] ) ) { 242 242 if ( 1 == $attached ) { 243 $message = __( 'Media attachment reattached.' );244 } else { 245 /* translators: %s: number of media attachments */246 $message = _n( '%s media attachment reattached.', '%s media attachments reattached.', $attached );243 $message = __( 'Media file attached.' ); 244 } else { 245 /* translators: %s: number of media files */ 246 $message = _n( '%s media file attached.', '%s media files attached.', $attached ); 247 247 } 248 248 $message = sprintf( $message, number_format_i18n( $attached ) ); … … 252 252 if ( ! empty( $_GET['detach'] ) && $detached = absint( $_GET['detach'] ) ) { 253 253 if ( 1 == $detached ) { 254 $message = __( 'Media attachmentdetached.' );255 } else { 256 /* translators: %s: number of media attachments */257 $message = _n( '%s media attachment detached.', '%s media attachmentsdetached.', $detached );254 $message = __( 'Media file detached.' ); 255 } else { 256 /* translators: %s: number of media files */ 257 $message = _n( '%s media file detached.', '%s media filse detached.', $detached ); 258 258 } 259 259 $message = sprintf( $message, number_format_i18n( $detached ) ); … … 263 263 if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) { 264 264 if ( 1 == $deleted ) { 265 $message = __( 'Media attachmentpermanently deleted.' );266 } else { 267 /* translators: %s: number of media attachments */268 $message = _n( '%s media attachment permanently deleted.', '%s media attachments permanently deleted.', $deleted );265 $message = __( 'Media file permanently deleted.' ); 266 } else { 267 /* translators: %s: number of media files */ 268 $message = _n( '%s media file permanently deleted.', '%s media files permanently deleted.', $deleted ); 269 269 } 270 270 $message = sprintf( $message, number_format_i18n( $deleted ) ); … … 274 274 if ( ! empty( $_GET['trashed'] ) && $trashed = absint( $_GET['trashed'] ) ) { 275 275 if ( 1 == $trashed ) { 276 $message = __( 'Media attachmentmoved to the trash.' );277 } else { 278 /* translators: %s: number of media attachments */279 $message = _n( '%s media attachment moved to the trash.', '%s media attachments moved to the trash.', $trashed );276 $message = __( 'Media file moved to the trash.' ); 277 } else { 278 /* translators: %s: number of media files */ 279 $message = _n( '%s media file moved to the trash.', '%s media files moved to the trash.', $trashed ); 280 280 } 281 281 $message = sprintf( $message, number_format_i18n( $trashed ) ); … … 286 286 if ( ! empty( $_GET['untrashed'] ) && $untrashed = absint( $_GET['untrashed'] ) ) { 287 287 if ( 1 == $untrashed ) { 288 $message = __( 'Media attachmentrestored from the trash.' );289 } else { 290 /* translators: %s: number of media attachments */291 $message = _n( '%s media attachment restored from the trash.', '%s media attachments restored from the trash.', $untrashed );288 $message = __( 'Media file restored from the trash.' ); 289 } else { 290 /* translators: %s: number of media files */ 291 $message = _n( '%s media file restored from the trash.', '%s media files restored from the trash.', $untrashed ); 292 292 } 293 293 $message = sprintf( $message, number_format_i18n( $untrashed ) ); … … 295 295 } 296 296 297 $messages[1] = __( 'Media attachmentupdated.' );298 $messages[2] = __( 'Media attachmentpermanently deleted.' );299 $messages[3] = __( 'Error saving media attachment.' );300 $messages[4] = __( 'Media attachmentmoved to the trash.' ) . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids='.(isset($_GET['ids']) ? $_GET['ids'] : ''), "bulk-media" ) ) . '">' . __( 'Undo' ) . '</a>';301 $messages[5] = __( 'Media attachmentrestored from the trash.' );297 $messages[1] = __( 'Media file updated.' ); 298 $messages[2] = __( 'Media file permanently deleted.' ); 299 $messages[3] = __( 'Error saving media file.' ); 300 $messages[4] = __( 'Media file moved to the trash.' ) . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids='.(isset($_GET['ids']) ? $_GET['ids'] : ''), "bulk-media" ) ) . '">' . __( 'Undo' ) . '</a>'; 301 $messages[5] = __( 'Media file restored from the trash.' ); 302 302 303 303 if ( ! empty( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ) { -
trunk/src/wp-includes/media.php
r36569 r36887 3363 3363 'filterByType' => __( 'Filter by type' ), 3364 3364 'searchMediaLabel' => __( 'Search Media' ), 3365 'noMedia' => __( 'No media attachments found.' ),3365 'noMedia' => __( 'No media files found.' ), 3366 3366 3367 3367 // Library Details
Note: See TracChangeset
for help on using the changeset viewer.