Make WordPress Core

Changeset 51903


Ignore:
Timestamp:
10/12/2021 04:42:19 PM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add context for some Media Library filter strings:

  • Audio
  • Video
  • Unattached

This allows for more homogeneous translations in languages where keeping a plural form is important.

Follow-up to [6910], [7397], [8901], [9556], [11749], [13100], [12110], [15491], [15578], [22743], [29426], [29625], [34256], [45651], [46437].

Props jdy68, audrasjb, SergeyBiryukov.
Fixes #54238.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r51737 r51903  
    152152        }
    153153
    154         $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
     154        $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . _x( 'Unattached', 'media items' ) . '</option>';
    155155
    156156        $type_links['mine'] = sprintf(
  • trunk/src/wp-includes/media.php

    r51816 r51903  
    44574457        'noItemsFound'                => __( 'No items found.' ),
    44584458        'insertIntoPost'              => $post_type_object->labels->insert_into_item,
    4459         'unattached'                  => __( 'Unattached' ),
     4459        'unattached'                  => _x( 'Unattached', 'media items' ),
    44604460        'mine'                        => _x( 'Mine', 'media items' ),
    44614461        'trash'                       => _x( 'Trash', 'noun' ),
  • trunk/src/wp-includes/post.php

    r51885 r51903  
    29402940        ),
    29412941        'audio'       => array(
    2942             __( 'Audio' ),
     2942            _x( 'Audio', 'file type group' ),
    29432943            __( 'Manage Audio' ),
    29442944            /* translators: %s: Number of audio files. */
     
    29492949        ),
    29502950        'video'       => array(
    2951             __( 'Video' ),
     2951            _x( 'Video', 'file type group' ),
    29522952            __( 'Manage Video' ),
    29532953            /* translators: %s: Number of video files. */
Note: See TracChangeset for help on using the changeset viewer.