Make WordPress Core

Changeset 34547


Ignore:
Timestamp:
09/25/2015 03:18:58 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Plugin Editor: Don't split the strings with plugin file name and remove unnecessary context.

Partially reverts [34341].

Fixes #31862.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-editor.php

    r34469 r34547  
    182182        if ( is_plugin_active( $plugin ) ) {
    183183                if ( is_writeable( $real_file ) ) {
    184                         /* translators: %s: File name */
    185                         echo sprintf( _x( 'Editing %s',  'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(active)', 'plugin' );
     184                        /* translators: %s: plugin file name */
     185                        echo sprintf( __( 'Editing %s (active)' ), '<strong>' . $file . '</strong>' );
    186186                } else {
    187                         /* translators: %s: File name */
    188                         echo sprintf( _x( 'Browsing %s', 'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(active)', 'plugin' );
     187                        /* translators: %s: plugin file name */
     188                        echo sprintf( __( 'Browsing %s (active)' ), '<strong>' . $file . '</strong>' );
    189189                }
    190190        } else {
    191191                if ( is_writeable( $real_file ) ) {
    192                         /* translators: %s: File name */
    193                         echo sprintf( _x( 'Editing %s',  'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(inactive)', 'plugin' );
     192                        /* translators: %s: plugin file name */
     193                        echo sprintf( __( 'Editing %s (inactive)' ), '<strong>' . $file . '</strong>' );
    194194                } else {
    195                         /* translators: %s: File name */
    196                         echo sprintf( _x( 'Browsing %s', 'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(inactive)', 'plugin' );
     195                        /* translators: %s: plugin file name */
     196                        echo sprintf( __( 'Browsing %s (inactive)' ), '<strong>' . $file . '</strong>' );
    197197                }
    198198        }
Note: See TracChangeset for help on using the changeset viewer.