I18N: Merge duplicate "List view" and "Grid view" strings.

Props ramiy.
Fixes #50757.

git-svn-id: https://develop.svn.wordpress.org/trunk@48618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-25 21:30:32 +00:00
parent f6b24a02f8
commit 1175600b1f
2 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ class WP_Media_List_Table extends WP_List_Table {
$this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] );
$this->modes = array(
'list' => __( 'List View' ),
'grid' => __( 'Grid View' ),
'list' => __( 'List view' ),
'grid' => __( 'Grid view' ),
);
parent::__construct(

View File

@ -310,10 +310,10 @@ function wp_print_media_templates() {
<?php // Template for the view switchers, used for example in the Media Grid. ?>
<script type="text/html" id="tmpl-media-library-view-switcher">
<a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-list">
<span class="screen-reader-text"><?php _e( 'List View' ); ?></span>
<span class="screen-reader-text"><?php _e( 'List view' ); ?></span>
</a>
<a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" aria-current="page">
<span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span>
<span class="screen-reader-text"><?php _e( 'Grid view' ); ?></span>
</a>
</script>