Make WordPress Core


Ignore:
Timestamp:
06/20/2015 02:15:04 AM (11 years ago)
Author:
azaozz
Message:

Editor: add ARIA labels to the Quicktags buttons to improve accessibility.
Props afercia, azaozz. Fixes #31522.

File:
1 edited

Legend:

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

    r32864 r32883  
    9090        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 );
    9191        did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array(
    92                 'closeAllOpenTags'      => esc_attr__( 'Close all open tags' ),
    93                 'closeTags'             => esc_attr__( 'close tags' ),
     92                'closeAllOpenTags'      => __( 'Close all open tags' ),
     93                'closeTags'             => __( 'close tags' ),
    9494                'enterURL'              => __( 'Enter the URL' ),
    9595                'enterImageURL'         => __( 'Enter the URL of the image' ),
    9696                'enterImageDescription' => __( 'Enter a description of the image' ),
    97                 'textdirection'         => esc_attr__( 'text direction' ),
    98                 'toggleTextdirection'   => esc_attr__( 'Toggle Editor Text Direction' ),
    99                 'dfw'                   => esc_attr__( 'Distraction-free writing mode' )
     97                'textdirection'         => __( 'text direction' ),
     98                'toggleTextdirection'   => __( 'Toggle Editor Text Direction' ),
     99                'dfw'                   => __( 'Distraction-free writing mode' ),
     100                'strong'          => __( 'Bold' ),
     101                'strongClose'     => __( 'Close bold tag' ),
     102                'em'              => __( 'Italic' ),
     103                'emClose'         => __( 'Close italic tag' ),
     104                'link'            => __( 'Insert link' ),
     105                'blockquote'      => __( 'Blockquote' ),
     106                'blockquoteClose' => __( 'Close blockquote tag' ),
     107                'del'             => __( 'Deleted text (strikethrough)' ),
     108                'delClose'        => __( 'Close deleted text tag' ),
     109                'ins'             => __( 'Inserted text' ),
     110                'insClose'        => __( 'Close inserted text tag' ),
     111                'image'           => __( 'Insert image' ),
     112                'ul'              => __( 'Bulleted list' ),
     113                'ulClose'         => __( 'Close bulleted list tag' ),
     114                'ol'              => __( 'Numbered list' ),
     115                'olClose'         => __( 'Close numbered list tag' ),
     116                'li'              => __( 'List item' ),
     117                'liClose'         => __( 'Close list item tag' ),
     118                'code'            => __( 'Code' ),
     119                'codeClose'       => __( 'Close code tag' ),
     120                'more'            => __( 'Insert Read More tag' ),
    100121        ) );
    101122
Note: See TracChangeset for help on using the changeset viewer.