Making WordPress.org


Ignore:
Timestamp:
09/07/2016 06:02:42 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Correct the translator comments in the [wporg-plugin-upload] shortcode handler.

Props SergeyBiryukov.
Fixes #1938.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r3477 r3984  
    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                        );
    … …  
    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                        );
    … …  
    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' )
    … …  
    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' )
Note: See TracChangeset for help on using the changeset viewer.