WordPress.org

Make WordPress Core

Changeset 48618


Ignore:
Timestamp:
07/25/2020 09:30:32 PM (6 months ago)
Author:
SergeyBiryukov
Message:

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

Props ramiy.
Fixes #50757.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r48594 r48618  
    4242
    4343        $this->modes = array(
    44             'list' => __( 'List View' ),
    45             'grid' => __( 'Grid View' ),
     44            'list' => __( 'List view' ),
     45            'grid' => __( 'Grid view' ),
    4646        );
    4747
  • trunk/src/wp-includes/media-template.php

    r48594 r48618  
    311311    <script type="text/html" id="tmpl-media-library-view-switcher">
    312312        <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-list">
    313             <span class="screen-reader-text"><?php _e( 'List View' ); ?></span>
     313            <span class="screen-reader-text"><?php _e( 'List view' ); ?></span>
    314314        </a>
    315315        <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" aria-current="page">
    316             <span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span>
     316            <span class="screen-reader-text"><?php _e( 'Grid view' ); ?></span>
    317317        </a>
    318318    </script>
Note: See TracChangeset for help on using the changeset viewer.