WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/02/2016 08:05:04 PM (5 years ago)
Author:
azaozz
Message:

TinyMCE, inline link:

  • Add uiAutocompleteL10n with translatable strings for use in UI Autocomplete live region.
  • Use the above strings in both the editor plugin and wplink.js.

See #33301.

File:
1 edited

Legend:

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

    r36780 r36806  
    225225    $scripts->add( 'jquery-ui-widget', "/wp-includes/js/jquery/ui/widget$dev_suffix.js", array('jquery'), '1.11.4', 1 );
    226226
     227    // Strings for 'jquery-ui-autocomplete' live region messages
     228    did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array(
     229            'noResults' => __( 'No search results.' ),
     230            /* translators: Number of results found when using jQuery UI Autocomplete */
     231            'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
     232            'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
     233    ) );
     234
    227235    // deprecated, not used in core, most functionality is included in jQuery 1.3
    228236    $scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array('jquery'), '3.37.0', 1 );
Note: See TracChangeset for help on using the changeset viewer.