WordPress.org

Make WordPress Core

Changeset 41152


Ignore:
Timestamp:
07/25/2017 10:57:16 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use a consistent context for Visual and Text editor tab labels.

Props pedromendonca.
Fixes #41438.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r41151 r41152  
    180180
    181181                $buttons .= '<button type="button" id="' . $editor_id_attr . '-tmce" class="wp-switch-editor switch-tmce"' .
    182                     ' data-wp-editor-id="' . $editor_id_attr . '">' . __('Visual') . "</button>\n";
     182                    ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "</button>\n";
    183183                $buttons .= '<button type="button" id="' . $editor_id_attr . '-html" class="wp-switch-editor switch-html"' .
    184184                    ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n";
     
    12581258            'Apply'  => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog
    12591259            'Link options'  => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog
    1260             'Visual' => __( 'Visual' ), // Editor switch tab label
    1261             'Text' => __( 'Text' ), // Editor switch tab label
     1260            'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label
     1261            'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label
    12621262
    12631263            // Shortcuts help modal
Note: See TracChangeset for help on using the changeset viewer.