From d624c118cb778315c0787a3771d4ca9dc0dc5f4d Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 20 Sep 2015 02:41:43 +0000 Subject: [PATCH] Plugin Editor: Avoid using HTML tags in translation strings and add context. Props ramiy. Fixes #31862. git-svn-id: https://develop.svn.wordpress.org/trunk@34341 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/plugin-editor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index 7b9cd732a7..3cb53e1e2f 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/wp-admin/plugin-editor.php @@ -181,14 +181,14 @@ default: %s (active)'), $file); + echo sprintf( _x( 'Editing %s', 'plugin' ), '' . $file . '' ) . ' ' . _x( '(active)', 'plugin' ); else - echo sprintf(__('Browsing %s (active)'), $file); + echo sprintf( _x( 'Browsing %s', 'plugin' ), '' . $file . '' ) . ' ' . _x( '(active)', 'plugin' ); } else { if ( is_writeable($real_file) ) - echo sprintf(__('Editing %s (inactive)'), $file); + echo sprintf( _x( 'Editing %s', 'plugin' ), '' . $file . '' ) . ' ' . _x( '(inactive)', 'plugin' ); else - echo sprintf(__('Browsing %s (inactive)'), $file); + echo sprintf( _x( 'Browsing %s', 'plugin' ), '' . $file . '' ) . ' ' . _x( '(inactive)', 'plugin' ); } ?>