Make WordPress Core

Changeset 49539


Ignore:
Timestamp:
11/09/2020 10:51:52 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings.

Standardize on "Go to..." as a more appropriate option for most cases.

Props garrett-eclipse, kharisblank, audrasjb, ramiy, valentinbora.
Fixes #47235.

Location:
trunk/src
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/attachments/browser.js

    r47217 r49539  
    127127
    128128    editSelection: function( modal ) {
    129         // When editing a selection, move focus to the "Return to library" button.
     129        // When editing a selection, move focus to the "Go to library" button.
    130130        modal.$( '.media-button-backToLibrary' ).focus();
    131131    },
  • trunk/src/wp-admin/about.php

    r48809 r49539  
    271271            <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
    272272                <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
    273                     <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
     273                    <?php is_multisite() ? _e( 'Go to Updates' ) : _e( 'Go to Dashboard &rarr; Updates' ); ?>
    274274                </a> |
    275275            <?php endif; ?>
  • trunk/src/wp-admin/css/about.css

    r49479 r49539  
    10421042}
    10431043
    1044 /* Return to Dashboard Home link */
     1044/* Go to Dashboard Home link */
    10451045
    10461046.about-wrap .return-to-dashboard {
  • trunk/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php

    r45932 r49539  
    4949                '<a href="%s" target="_parent">%s</a>',
    5050                self_admin_url( 'plugins.php' ),
    51                 __( 'Return to Plugins page' )
     51                __( 'Go to Plugins page' )
    5252            ),
    5353            'updates_page' => sprintf(
    5454                '<a href="%s" target="_parent">%s</a>',
    5555                self_admin_url( 'update-core.php' ),
    56                 __( 'Return to WordPress Updates page' )
     56                __( 'Go to WordPress Updates page' )
    5757            ),
    5858        );
  • trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php

    r45932 r49539  
    4949                '<a href="%s" target="_parent">%s</a>',
    5050                self_admin_url( 'themes.php' ),
    51                 __( 'Return to Themes page' )
     51                __( 'Go to Themes page' )
    5252            ),
    5353            'updates_page' => sprintf(
    5454                '<a href="%s" target="_parent">%s</a>',
    5555                self_admin_url( 'update-core.php' ),
    56                 __( 'Return to WordPress Updates page' )
     56                __( 'Go to WordPress Updates page' )
    5757            ),
    5858        );
  • trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php

    r45932 r49539  
    7676                '<a href="%s" target="_parent">%s</a>',
    7777                self_admin_url( 'update-core.php' ),
    78                 __( 'Return to WordPress Updates page' )
     78                __( 'Go to WordPress Updates page' )
    7979            ),
    8080        );
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r48677 r49539  
    108108                '<a class="button button-primary" href="%s" target="_parent">%s</a>',
    109109                wp_nonce_url( 'plugins.php?action=activate&amp;from=press-this&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
    110                 __( 'Activate Plugin &amp; Return to Press This' )
     110                __( 'Activate Plugin &amp; Go to Press This' )
    111111            );
    112112        } else {
     
    131131                '<a href="%s" target="_parent">%s</a>',
    132132                admin_url( 'import.php' ),
    133                 __( 'Return to Importers' )
     133                __( 'Go to Importers' )
    134134            );
    135135        } elseif ( 'web' === $this->type ) {
     
    137137                '<a href="%s" target="_parent">%s</a>',
    138138                self_admin_url( 'plugin-install.php' ),
    139                 __( 'Return to Plugin Installer' )
     139                __( 'Go to Plugin Installer' )
    140140            );
    141141        } elseif ( 'upload' === $this->type && 'plugins' === $from ) {
     
    143143                '<a href="%s">%s</a>',
    144144                self_admin_url( 'plugin-install.php' ),
    145                 __( 'Return to Plugin Installer' )
     145                __( 'Go to Plugin Installer' )
    146146            );
    147147        } else {
     
    149149                '<a href="%s" target="_parent">%s</a>',
    150150                self_admin_url( 'plugins.php' ),
    151                 __( 'Return to Plugins page' )
     151                __( 'Go to Plugins page' )
    152152            );
    153153        }
  • trunk/src/wp-admin/includes/class-plugin-upgrader-skin.php

    r49119 r49539  
    9999                '<a href="%s" target="_parent">%s</a>',
    100100                self_admin_url( 'plugins.php' ),
    101                 __( 'Return to Plugins page' )
     101                __( 'Go to Plugins page' )
    102102            ),
    103103        );
  • trunk/src/wp-admin/includes/class-theme-installer-skin.php

    r48913 r49539  
    156156                '<a href="%s" target="_parent">%s</a>',
    157157                self_admin_url( 'theme-install.php' ),
    158                 __( 'Return to Theme Installer' )
     158                __( 'Go to Theme Installer' )
    159159            );
    160160        } elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) {
     
    162162                '<a href="%s" target="_parent">%s</a>',
    163163                self_admin_url( 'themes.php' ),
    164                 __( 'Return to Themes page' )
     164                __( 'Go to Themes page' )
    165165            );
    166166        }
  • trunk/src/wp-admin/includes/class-theme-upgrader-skin.php

    r49119 r49539  
    125125            '<a href="%s" target="_parent">%s</a>',
    126126            self_admin_url( 'themes.php' ),
    127             __( 'Return to Themes page' )
     127            __( 'Go to Themes page' )
    128128        );
    129129
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r49255 r49539  
    425425            }
    426426
    427             $content .= '<a href="#wpbody" class="return-to-top"><span aria-hidden="true">&uarr; </span> ' . __( 'Return to top' ) . '</a>';
     427            $content .= '<a href="#wpbody" class="return-to-top"><span aria-hidden="true">&uarr; </span> ' . __( 'Go to top' ) . '</a>';
    428428
    429429            $content .= '</div>'; // End of .privacy-text-section.
  • trunk/src/wp-admin/includes/network.php

    r48115 r49539  
    146146            '<code>' . $has_ports . '</code>'
    147147        ) . '</p>';
    148         echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';
     148        echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Go to Dashboard' ) . '</a>';
    149149        echo '</div>';
    150150        require_once ABSPATH . 'wp-admin/admin-footer.php';
  • trunk/src/wp-admin/includes/privacy-tools.php

    r49331 r49539  
    280280    if ( $groups_count > 1 ) {
    281281        $group_html .= '<div class="return-to-top">';
    282         $group_html .= '<a href="#top"><span aria-hidden="true">&uarr; </span> ' . esc_html__( 'Return to top' ) . '</a>';
     282        $group_html .= '<a href="#top"><span aria-hidden="true">&uarr; </span> ' . esc_html__( 'Go to top' ) . '</a>';
    283283        $group_html .= '</div>';
    284284    }
  • trunk/src/wp-admin/revision.php

    r48625 r49539  
    108108        /* translators: %s: Post title. */
    109109        $h1             = sprintf( __( 'Compare Revisions of &#8220;%s&#8221;' ), $post_title );
    110         $return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; Return to editor' ) . '</a>';
     110        $return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; Go to editor' ) . '</a>';
    111111        $title          = __( 'Revisions' );
    112112
  • trunk/src/wp-admin/user-edit.php

    r49392 r49539  
    203203    <?php endif; ?>
    204204            <?php if ( $wp_http_referer && false === strpos( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : ?>
    205     <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e( '&larr; Back to Users' ); ?></a></p>
     205    <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e( '&larr; Go to Users' ); ?></a></p>
    206206    <?php endif; ?>
    207207</div>
  • trunk/src/wp-content/themes/twentyeleven/image.php

    r48782 r49539  
    3333                                    printf(
    3434                                        /* translators: 1: Time, 2: Date, 3: Image permalink, 4: Image width, 5: Image height, 6: Parent permalink, 7: Parent post title, 8: Parent post title. */
    35                                         __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ),
     35                                        __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Go to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ),
    3636                                        esc_attr( get_the_time() ),
    3737                                        get_the_date(),
  • trunk/src/wp-content/themes/twentyeleven/languages/twentyeleven.pot

    r45675 r49539  
    442442
    443443#: image.php:34
    444 msgid "<span class=\"meta-prep meta-prep-entry-date\">Published </span> <span class=\"entry-date\"><abbr class=\"published\" title=\"%1$s\">%2$s</abbr></span> at <a href=\"%3$s\" title=\"Link to full-size image\">%4$s &times; %5$s</a> in <a href=\"%6$s\" title=\"Return to %7$s\" rel=\"gallery\">%8$s</a>"
     444msgid "<span class=\"meta-prep meta-prep-entry-date\">Published </span> <span class=\"entry-date\"><abbr class=\"published\" title=\"%1$s\">%2$s</abbr></span> at <a href=\"%3$s\" title=\"Link to full-size image\">%4$s &times; %5$s</a> in <a href=\"%6$s\" title=\"Go to %7$s\" rel=\"gallery\">%8$s</a>"
    445445msgstr ""
    446446
  • trunk/src/wp-content/themes/twentyten/languages/twentyten.pot

    r45289 r49539  
    264264
    265265#: loop-attachment.php:25
    266 msgid "Return to %s"
     266msgid "Go to %s"
    267267msgstr ""
    268268
  • trunk/src/wp-content/themes/twentyten/loop-attachment.php

    r48782 r49539  
    2525                if ( ! empty( $post->post_parent ) ) :
    2626                    /* translators: %s: Post title. */
    27                     $post_tile = sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
     27                    $post_tile = sprintf( __( 'Go to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
    2828                    ?>
    2929                    <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="gallery">
  • trunk/src/wp-content/themes/twentythirteen/image.php

    r47122 r49539  
    2828                    <?php
    2929                    /* translators: 1: Date, 2: Date, 3, Parent permalink, 4, Post title, 5: Post title. */
    30                     $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
     30                    $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Go to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
    3131                    $post_title     = get_the_title( $post->post_parent );
    3232                    if ( empty( $post_title ) || 0 == $post->post_parent ) {
  • trunk/src/wp-content/themes/twentytwelve/image.php

    r48782 r49539  
    2929                                printf(
    3030                                    /* translators: 1: Date, 2: Date, 3: Attachment URL, 4: Image width in pixels, 5: Image height in pixels, 6: Post parent permalink, 7: Post parent title, 8: Post parent title. */
    31                                     __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
     31                                    __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Go to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
    3232                                    esc_attr( get_the_date( 'c' ) ),
    3333                                    esc_html( get_the_date() ),
  • trunk/src/wp-includes/class-wp-block.php

    r49310 r49539  
    214214
    215215        if ( $is_dynamic ) {
    216             $global_post   = $post;
    217             $parent = WP_Block_Supports::$block_to_render;
     216            $global_post                        = $post;
     217            $parent                             = WP_Block_Supports::$block_to_render;
    218218            WP_Block_Supports::$block_to_render = $this->parsed_block;
    219             $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
     219            $block_content                      = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
    220220            WP_Block_Supports::$block_to_render = $parent;
    221             $post          = $global_post;
     221            $post                               = $global_post;
    222222        }
    223223
  • trunk/src/wp-includes/customize/class-wp-customize-themes-section.php

    r48111 r49539  
    122122    protected function filter_bar_content_template() {
    123123        ?>
    124         <button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Back to theme sources' ); ?></button>
     124        <button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button>
    125125        <# if ( 'wporg' === data.action ) { #>
    126126            <div class="search-form">
  • trunk/src/wp-includes/media.php

    r49281 r49539  
    42914291        'createNewPlaylist'           => __( 'Create a new playlist' ),
    42924292        'createNewVideoPlaylist'      => __( 'Create a new video playlist' ),
    4293         'returnToLibrary'             => __( '&#8592; Return to library' ),
     4293        'returnToLibrary'             => __( '&#8592; Go to library' ),
    42944294        'allMediaItems'               => __( 'All media items' ),
    42954295        'allDates'                    => __( 'All dates' ),
  • trunk/src/wp-includes/ms-functions.php

    r49206 r49539  
    22762276            sprintf(
    22772277                /* translators: %s: Home URL. */
    2278                 __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ),
     2278                __( 'An error occurred adding you to this site. Go to the <a href="%s">homepage</a>.' ),
    22792279                home_url()
    22802280            )
  • trunk/src/wp-includes/taxonomy.php

    r49451 r49539  
    140140                'add_or_remove_items'        => null,
    141141                'choose_from_most_used'      => null,
    142                 'back_to_items'              => __( '&larr; Back to Link Categories' ),
     142                'back_to_items'              => __( '&larr; Go to Link Categories' ),
    143143            ),
    144144            'capabilities' => array(
     
    605605        /* translators: Tab heading when selecting from the most used terms. */
    606606        'most_used'                  => array( _x( 'Most Used', 'tags' ), _x( 'Most Used', 'categories' ) ),
    607         'back_to_items'              => array( __( '&larr; Back to Tags' ), __( '&larr; Back to Categories' ) ),
     607        'back_to_items'              => array( __( '&larr; Go to Tags' ), __( '&larr; Go to Categories' ) ),
    608608    );
    609609    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
  • trunk/src/wp-login.php

    r49265 r49539  
    286286
    287287        /* translators: %s: Site title. */
    288         printf( _x( '&larr; Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
     288        printf( _x( '&larr; Go to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
    289289
    290290        ?>
Note: See TracChangeset for help on using the changeset viewer.