Ticket #1938: meta-1938.patch
File meta-1938.patch, 3.1 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
87 87 88 88 // Make sure it doesn't use a slug deemed not to be used by the public. 89 89 if ( $this->has_reserved_slug() ) { 90 /* translators: 1: plugin slug, 2: style.css*/91 return sprintf( __( 'Sorry, the plugin name % 1$s is reserved for use by WordPress. Please change the name of your plugin and upload it again.', 'wporg-plugins' ),90 /* translators: %s: plugin slug */ 91 return sprintf( __( 'Sorry, the plugin name %s is reserved for use by WordPress. Please change the name of your plugin and upload it again.', 'wporg-plugins' ), 92 92 '<code>' . $this->plugin_slug . '</code>' 93 93 ); 94 94 } … … 97 97 98 98 // Is there already a plugin by a different author? 99 99 if ( $plugin_post instanceof \WP_Post && $plugin_post->post_author != get_current_user_id() ) { 100 /* translators: 1: plugin slug, 2: style.css*/101 return sprintf( __( 'There is already a plugin called % 1$s by a different author. Please change the name of your plugin in the plugin header file and upload it again.', 'wporg-plugins' ),100 /* translators: %s: plugin slug */ 101 return sprintf( __( 'There is already a plugin called %s by a different author. Please change the name of your plugin in the plugin header file and upload it again.', 'wporg-plugins' ), 102 102 '<code>' . $this->plugin_slug . '</code>' 103 103 ); 104 104 } … … 106 106 if ( ! $this->plugin['Description'] ) { 107 107 $error = __( 'The plugin has no description.', 'wporg-plugins' ); 108 108 109 /* translators: 1: comment header line, 2: style.css, 3:Codex URL */110 return $error . ' ' . sprintf( __( 'Add a %1$s line to your main plugin file and upload the plugin again. <a href="% 3$s">Plugin Headers</a>', 'wporg-plugins' ),109 /* translators: 1: comment header line, 2: Codex URL */ 110 return $error . ' ' . sprintf( __( 'Add a %1$s line to your main plugin file and upload the plugin again. <a href="%2$s">Plugin Headers</a>', 'wporg-plugins' ), 111 111 '<code>Description:</code>', 112 112 __( 'https://codex.wordpress.org/File_Header', 'wporg-plugins' ) 113 113 ); … … 116 116 if ( ! $this->plugin['Version'] ) { 117 117 $error = __( 'The plugin has no version.', 'wporg-plugins' ); 118 118 119 /* translators: 1: comment header line, 2: style.css, 3:Codex URL */120 return $error . ' ' . sprintf( __( 'Add a %1$s line to your main plugin file and upload the plugin again. <a href="% 3$s">Plugin Headers</a>', 'wporg-plugins' ),119 /* translators: 1: comment header line, 2: Codex URL */ 120 return $error . ' ' . sprintf( __( 'Add a %1$s line to your main plugin file and upload the plugin again. <a href="%2$s">Plugin Headers</a>', 'wporg-plugins' ), 121 121 '<code>Version:</code>', 122 122 __( 'https://codex.wordpress.org/File_Header', 'wporg-plugins' ) 123 123 );