Make WordPress Core

Changeset 34341


Ignore:
Timestamp:
09/20/2015 02:41:43 AM (11 years ago)
Author:
wonderboymusic
Message:

Plugin Editor: Avoid using HTML tags in translation strings and add context.

Props ramiy.
Fixes #31862.

File:
1 edited

Legend:

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

    r34067 r34341  
    182182        if ( is_plugin_active($plugin) ) {
    183183                if ( is_writeable($real_file) )
    184                         echo sprintf(__('Editing <strong>%s</strong> (active)'), $file);
     184                        echo sprintf( _x( 'Editing %s',  'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(active)', 'plugin' );
    185185                else
    186                         echo sprintf(__('Browsing <strong>%s</strong> (active)'), $file);
     186                        echo sprintf( _x( 'Browsing %s', 'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(active)', 'plugin' );
    187187        } else {
    188188                if ( is_writeable($real_file) )
    189                         echo sprintf(__('Editing <strong>%s</strong> (inactive)'), $file);
     189                        echo sprintf( _x( 'Editing %s',  'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(inactive)', 'plugin' );
    190190                else
    191                         echo sprintf(__('Browsing <strong>%s</strong> (inactive)'), $file);
     191                        echo sprintf( _x( 'Browsing %s', 'plugin' ), '<strong>' . $file . '</strong>' ) . ' ' . _x( '(inactive)', 'plugin' );
    192192        }
    193193        ?></big>
Note: See TracChangeset for help on using the changeset viewer.