Making WordPress.org

Ticket #1938: meta-1938.patch

File meta-1938.patch, 3.1 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

     
    8787
    8888                // Make sure it doesn't use a slug deemed not to be used by the public.
    8989                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' ),
    9292                                '<code>' . $this->plugin_slug . '</code>'
    9393                        );
    9494                }
     
    9797
    9898                // Is there already a plugin by a different author?
    9999                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' ),
    102102                                '<code>' . $this->plugin_slug . '</code>'
    103103                        );
    104104                }
     
    106106                if ( ! $this->plugin['Description'] ) {
    107107                        $error = __( 'The plugin has no description.', 'wporg-plugins' );
    108108
    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' ),
    111111                                '<code>Description:</code>',
    112112                                __( 'https://codex.wordpress.org/File_Header', 'wporg-plugins' )
    113113                        );
     
    116116                if ( ! $this->plugin['Version'] ) {
    117117                        $error = __( 'The plugin has no version.', 'wporg-plugins' );
    118118
    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' ),
    121121                                '<code>Version:</code>',
    122122                                __( 'https://codex.wordpress.org/File_Header', 'wporg-plugins' )
    123123                        );