Make WordPress Core


Ignore:
Timestamp:
11/13/2016 06:59:21 PM (8 years ago)
Author:
westonruter
Message:

Customize: Prevent the "Hide Controls" button label from overrunning the device preview buttons.

Adds translation context for "Hide Controls" strings so translators can supply shorter strings where space is constrained. Adds styles to fade-out long the "Hide Controls" label where it would run into the device preview buttons.

Props westonruter, ocean90.
Fixes #38762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r39197 r39214  
    468468        'previewIframeTitle' => __( 'Site Preview' ),
    469469        'loginIframeTitle'   => __( 'Session expired' ),
    470         'collapseSidebar'    => __( 'Hide Controls' ),
    471         'expandSidebar'      => __( 'Show Controls' ),
     470        'collapseSidebar'    => _x( 'Hide Controls', 'label for hide controls button without length constraints' ),
     471        'expandSidebar'      => _x( 'Show Controls', 'label for hide controls button without length constraints' ),
    472472        'untitledBlogName'   => __( '(Untitled)' ),
    473473        // Used for overriding the file types allowed in plupload.
Note: See TracChangeset for help on using the changeset viewer.