Making WordPress.org

Ticket #4291: 4291-2.diff

File 4291-2.diff, 5.3 KB (added by Ipstenu, 7 years ago)
  • trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php

     
    6464                // Fatal errors.
    6565                if ( empty( $readme->name ) ) {
    6666                        /* translators: 1: 'Plugin Name' section title, 2: 'Plugin Name' */
    67                         $errors[] = sprintf( __( 'No plugin name detected. Plugin names look like: %1$s. Please change %2$s to reflect the actual name of your plugin.', 'wporg-plugins' ), '<code>=== Plugin Name ===</code>', '<code>Plugin Name</code>' );
     67                        $errors[] = sprintf( __( 'We cannot find a plugin name in your readme. Plugin names look like: %1$s. Please change %2$s to reflect the actual name of your plugin.', 'wporg-plugins' ), '<code>=== Plugin Name ===</code>', '<code>Plugin Name</code>' );
    6868                }
    6969
    7070                // Warnings.
     
    7373
    7474                        /* translators: 1: plugin header tag; 2: Example version 5.0. 3: Example version 4.9. */
    7575                        $warnings[] = sprintf(
    76                                 __( 'The Requires at least field was ignored. %1$s field should only contain a valid WordPress version such as %2$s or %3$s.', 'wporg-plugins' ),
     76                                __( 'The %1$s field was ignored. This field should only contain a valid WordPress version such as %2$s or %3$s.', 'wporg-plugins' ),
    7777                                '<code>Requires at least</code>',
    7878                                '<code>' . number_format( $latest_wordpress_version, 1 ) . '</code>',
    7979                                '<code>' . number_format( $latest_wordpress_version - 0.1, 1 ) . '</code>'
     
    8080                        );
    8181                } elseif ( empty( $readme->requires ) ) {
    8282                        /* translators: %s: plugin header tag */
    83                         $warnings[] = sprintf( __( '%s field is missing.', 'wporg-plugins' ), '<code>Requires at least</code>' );
     83                        $warnings[] = sprintf( __( 'The %s field is missing.', 'wporg-plugins' ), '<code>Requires at least</code>' );
    8484                }
    8585
    8686                if ( isset( $readme->warnings['tested_header_ignored'] ) ) {
     
    8888
    8989                        /* translators: 1: plugin header tag; 2: Example version 5.0. 3: Example version 5.1. */
    9090                        $warnings[] = sprintf(
    91                                 __( 'The Tested up to field was ignored. %1$s field should only contain a valid WordPress version such as %2$s or %3$s.', 'wporg-plugins' ),
     91                                __( 'The %1$s field was ignored. This field should only contain a valid WordPress version such as %2$s or %3$s.', 'wporg-plugins' ),
    9292                                '<code>Tested up to</code>',
    9393                                '<code>' . number_format( $latest_wordpress_version, 1 ) . '</code>',
    9494                                '<code>' . number_format( $latest_wordpress_version + 0.1, 1 ) . '</code>'
     
    9595                        );
    9696                } elseif ( empty( $readme->tested ) ) {
    9797                        /* translators: %s: plugin header tag */
    98                         $warnings[] = sprintf( __( '%s field is missing.', 'wporg-plugins' ), '<code>Tested up to</code>' );
     98                        $warnings[] = sprintf( __( 'The %s field is missing.', 'wporg-plugins' ), '<code>Tested up to</code>' );
    9999                }
    100100
    101101                if ( isset( $readme->warnings['requires_php_header_ignored'] ) ) {
    102102                        /* translators: 1: plugin header tag; 2: Example version 5.2.4. 3: Example version 7.0. */
    103                         $warnings[] = sprintf( __( 'The Requires PHP field was ignored. %1$s field should only contain a PHP version such as %2$s or %3$s.', 'wporg-plugins' ), '<code>Requires PHP</code>', '<code>5.2.4</code>', '<code>7.0</code>' );
     103                        $warnings[] = sprintf( __( 'The %1$s field was ignored. This field should only contain a PHP version such as %2$s or %3$s.', 'wporg-plugins' ), '<code>Requires PHP</code>', '<code>5.2.4</code>', '<code>7.0</code>' );
    104104                } elseif ( empty( $readme->requires_php ) ) {
    105105                        /* translators: %s: plugin header tag */
    106                         $warnings[] = sprintf( __( '%s field is missing.', 'wporg-plugins' ), '<code>Requires PHP</code>' );
     106                        $warnings[] = sprintf( __( 'The %s field is missing.', 'wporg-plugins' ), '<code>Requires PHP</code>' );
    107107                }
    108108                if ( empty( $readme->stable_tag ) ) {
    109109                        /* translators: 1: 'Stable tag', 2: /trunk/ SVN directory, 3: 'Stable tag: trunk' */
    110                         $warnings[] = sprintf( __( '%1$s field is missing.  Hint: If you treat %2$s as stable, put %3$s.', 'wporg-plugins' ), '<code>Stable tag</code>', '<code>/trunk/</code>', '<code>Stable tag: trunk</code>' );
     110                        $warnings[] = sprintf( __( 'The %1$s field is missing.  Hint: If you treat %2$s as stable, put %3$s.', 'wporg-plugins' ), '<code>Stable tag</code>', '<code>/trunk/</code>', '<code>Stable tag: trunk</code>' );
    111111                }
    112112
    113113                if ( isset( $readme->warnings['contributor_ignored'] ) ) {
    114114                        /* translators: %s: plugin header tag */
    115                         $warnings[] = sprintf( __( 'One or more contributors listed were ignored. %s field should only contain WordPress.org usernames.', 'wporg-plugins' ), '<code>Contributors</code>' );
     115                        $warnings[] = sprintf( __( 'One or more contributors listed were ignored. The %s field should only contain WordPress.org usernames. Remember that usernames are case sensitive.', 'wporg-plugins' ), '<code>Contributors</code>' );
    116116                } elseif ( ! count( $readme->contributors ) ) {
    117117                        /* translators: %s: plugin header tag */
    118                         $warnings[] = sprintf( __( '%s field is missing.', 'wporg-plugins' ), '<code>Contributors</code>' );
     118                        $warnings[] = sprintf( __( 'The %s field is missing.', 'wporg-plugins' ), '<code>Contributors</code>' );
    119119                }
    120120
    121121                // Notes.