Skip to content

Commit 2fd1ef4

Browse files
committed
Administration: Replace 'Toggle' in user-facing strings.
The word 'Toggle' poses complications in translations in numerous languages, having no direct translation. Replace user facing strings in the admin that currently use 'Toggle' with alternatives appropriate to their usage and actions. Developed in WordPress#11806 Props xibe, SergeyBiryukov, afercia, GaryJ, Presskopp, garrett-eclipse, NekoJonez, khokansardar, ramiy, joedolson. Fixes #34753. git-svn-id: https://develop.svn.wordpress.org/trunk@62696 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 64d4a6d commit 2fd1ef4

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/wp-admin/edit-form-advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284

285285
$title_and_editor = '<p>' . __( '<strong>Title</strong> &mdash; Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.' ) . '</p>';
286286
$title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Code. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
287-
$title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>';
287+
$title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Extended Toolbar button to get a second row of controls.' ) . '</p>';
288288
$title_and_editor .= '<p>' . __( 'The Code mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Code editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
289289
$title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>';
290290
$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';

src/wp-admin/includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ function do_meta_boxes( $screen, $context, $data_object ) {
14261426
echo '<button type="button" class="handlediv" aria-expanded="true">';
14271427
echo '<span class="screen-reader-text">' . sprintf(
14281428
/* translators: %s: Hidden accessibility text. Meta box title. */
1429-
__( 'Toggle panel: %s' ),
1429+
__( 'Show or hide panel: %s' ),
14301430
$widget_title
14311431
) . '</span>';
14321432
echo '<span class="toggle-indicator" aria-hidden="true"></span>';

src/wp-admin/network.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
'<p>' . __( 'Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your installation. Fill out the network details, and click Install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).' ) . '</p>' .
6363
'<p>' . __( 'The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.' ) . '</p>' .
6464
'<p>' . __( 'Add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).' ) . '</p>' .
65-
'<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '</p>' .
65+
'<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can switch between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '</p>' .
6666
'<p>' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with &#8220;/blog/&#8221; from the main site. This disabling will be addressed in a future version.' ) . '</p>' .
6767
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
6868
'<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/create-network/">Documentation on Creating a Network</a>' ) . '</p>' .

src/wp-admin/site-health.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
<span class="screen-reader-text">
174174
<?php
175175
/* translators: Hidden accessibility text. */
176-
_e( 'Toggle extra menu items' );
176+
_e( 'Show or hide extra menu items' );
177177
?>
178178
</span>
179179

src/wp-includes/class-wp-editor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ private static function get_translation() {
13641364
/* translators: Word count. */
13651365
'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ),
13661366
'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' =>
1367-
__( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' ) . "\n\n" .
1367+
__( 'Paste is now in plain text mode. Contents will now be pasted as plain text until you turn this option off.' ) . "\n\n" .
13681368
__( 'If you are looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.' ),
13691369
'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' =>
13701370
__( 'Rich Text Area. Press Alt-Shift-H for help.' ),
@@ -1384,7 +1384,7 @@ private static function get_translation() {
13841384
'Format' => _x( 'Format', 'TinyMCE menu' ),
13851385

13861386
// WordPress strings.
1387-
'Toolbar Toggle' => array( __( 'Toolbar Toggle' ), 'accessZ' ),
1387+
'Toolbar Toggle' => array( __( 'Extended Toolbar' ), 'accessZ' ),
13881388
'Insert Read More tag' => array( __( 'Insert Read More tag' ), 'accessT' ),
13891389
'Insert Page Break tag' => array( __( 'Insert Page Break tag' ), 'accessP' ),
13901390
'Read more...' => __( 'Read more...' ), // Title on the placeholder inside the editor (no ellipsis).

src/wp-includes/script-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ function wp_default_scripts( $scripts ) {
803803
'enterImageURL' => __( 'Enter the URL of the image' ),
804804
'enterImageDescription' => __( 'Enter a description of the image' ),
805805
'textdirection' => __( 'text direction' ),
806-
'toggleTextdirection' => __( 'Toggle Editor Text Direction' ),
806+
'toggleTextdirection' => __( 'Switch Editor Text Direction' ),
807807
'dfw' => __( 'Distraction-free writing mode' ),
808808
'strong' => __( 'Bold' ),
809809
'strongClose' => __( 'Close bold tag' ),

0 commit comments

Comments
 (0)