Making WordPress.org

Changeset 5574


Ignore:
Timestamp:
06/15/2017 02:09:24 PM (9 years ago)
Author:
Otto42
Message:

Plugins Directory: Text changes for emails and submission messages. props @SergeyBiryukov. Fixes #2700

File:
1 edited

Legend:

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

    r5562 r5574  
    7474                // Catches both empty Plugin Name & when no valid files could be found.
    7575                if ( empty( $this->plugin['Name'] ) ) {
    76                         $error = __( 'The plugin has no name.', 'wporg-plugins' );
     76                        $error = __( 'Error: The plugin has no name.', 'wporg-plugins' );
    7777
    7878                        /* translators: 1: plugin header line, 2: Codex URL */
     
    8989
    9090                if ( ! $this->plugin_slug ) {
    91                         $error = __( 'The plugin has an unsupported name.', 'wporg-plugins' );
     91                        $error = __( 'Error: The plugin has an unsupported name.', 'wporg-plugins' );
    9292
    9393                        /* translators: %s: 'Plugin Name:' */
     
    100100                // Make sure it doesn't use a slug deemed not to be used by the public.
    101101                if ( $this->has_reserved_slug() ) {
    102                         $error = __( 'The plugin has a reserved name.', 'wporg-plugins' );
     102                        $error = __( 'Error: The plugin has a reserved name.', 'wporg-plugins' );
    103103                       
    104104                        /* translators: 1: plugin slug, 2: 'Plugin Name:' */
     
    113113                // Is there already a plugin with the same slug by a different author?
    114114                if ( $plugin_post && $plugin_post->post_author != get_current_user_id() ) {
    115                         $error = __( 'The plugin already exists.', 'wporg-plugins' );
     115                        $error = __( 'Error: The plugin already exists.', 'wporg-plugins' );
    116116                       
    117117                        /* translators: 1: plugin slug, 2: 'Plugin Name:' */
     
    124124                // Is there already a plugin with the same slug by the same author?
    125125                if ( $plugin_post ) {
    126                         $error = __( 'The plugin has already been submitted.', 'wporg-plugins' );
     126                        $error = __( 'Error: The plugin has already been submitted.', 'wporg-plugins' );
    127127                       
    128128                        /* translators: 1: plugin slug, 2: plugins@wordpress.org */
     
    134134
    135135                if ( ! $this->plugin['Description'] ) {
    136                         $error = __( 'The plugin has no description.', 'wporg-plugins' );
     136                        $error = __( 'Error: The plugin has no description.', 'wporg-plugins' );
    137137
    138138                        /* translators: 1: plugin header line, 2: Codex URL */
     
    144144
    145145                if ( ! $this->plugin['Version'] ) {
    146                         $error = __( 'The plugin has no version.', 'wporg-plugins' );
     146                        $error = __( 'Error: The plugin has no version.', 'wporg-plugins' );
    147147
    148148                        /* translators: 1: plugin header line, 2: Codex URL */
     
    154154
    155155                if ( preg_match( '|[^\d\.]|', $this->plugin['Version'] ) ) {
    156                         $error = __( 'The plugin has an invalid version.', 'wporg-plugins' );
     156                        $error = __( 'Error: Plugin versions are expected to be numbers.', 'wporg-plugins' );
    157157                       
    158158                        /* translators: %s: 'Version:' */
    159                         return $error . ' ' . sprintf( __( 'Version strings can only contain numeric and period characters (like 1.2). Please fix your %s line in your main plugin file and upload the plugin again.', 'wporg-plugins' ),
     159                        return $error . ' ' . sprintf( __( 'Version strings can only contain numeric and period characters (like 1.2). Please fix the %s line in your main plugin file and upload the plugin again.', 'wporg-plugins' ),
    160160                                '<code>Version:</code>'
    161161                        );
     
    164164                // Prevent duplicate URLs.
    165165                if ( ! empty( $this->plugin['PluginURI'] ) && ! empty( $this->plugin['AuthorURI'] ) && $this->plugin['PluginURI'] == $this->plugin['AuthorURI'] ) {
    166                         $error = __( 'The plugin has duplicate plugin and author URLs.', 'wporg-plugins' );
     166                        $error = __( 'Error: Your plugin and author URIs are the same.', 'wporg-plugins' );
    167167                       
    168168                        return $error . ' ' . __( 'A plugin URL is a page/site that provides details about this specific plugin. An author URL is a page/site that provides information about the author of the plugin. You are not required to provide both, so pick the one that best applies to your URL.', 'wporg-plugins' );
     
    171171                $readme = $this->find_readme_file();
    172172                if ( empty( $readme ) ) {
    173                         $error = __( 'The plugin is missing a readme.', 'wporg-plugins' );
     173                        $error = __( 'Error: The plugin has no readme.', 'wporg-plugins' );
    174174                       
    175175                        /* translators: 1: readme.txt, 2: readme.md */
    176                         return $error . ' ' . sprintf( __( 'The zip file must include a file named %1$s or %2$s.', 'wporg-plugins' ),
     176                        return $error . ' ' . sprintf( __( 'The zip file must include a file named %1$s or %2$s. We recommend using %1s as it will allow you to fully utilize our directory.', 'wporg-plugins' ),
    177177                                '<code>readme.txt</code>',
    178178                                '<code>readme.md</code>'
     
    186186
    187187                if ( ! $result ) {
    188                         $error = __( 'The plugin has failed the automated checks.', 'wporg-plugins' );
     188                        $error = __( 'Error: The plugin has failed the automated checks.', 'wporg-plugins' );
    189189                       
    190190                        /* translators: 1: Plugin Check Plugin URL, 2: make.wordpress.org/plugins */
    191                         return $error . ' ' . sprintf( __( 'Please correct the problems with it and upload it again. You can also use the <a href="%1$s">Plugin Check Plugin</a> to test your plugin before uploading. If you have any questions about this please post them to %2$s.', 'wporg-plugins' ),
     191                        return $error . ' ' . sprintf( __( 'Please correct the problems with the plugin and upload it again. You can also use the <a href="%1$s">Plugin Check Plugin</a> to test your plugin before uploading. If you have any questions about this please post them to %2$s.', 'wporg-plugins' ),
    192192                                '//wordpress.org/plugins/plugin-check/',
    193193                                '<a href="https://make.wordpress.org/plugins">https://make.wordpress.org/plugins</a>'
     
    300300                        'admin',
    301301                        'wp-admin',
     302                        'wordpress',
    302303                );
    303304
     
    390391If there is a problem with this submission, such as an incorrect display name or slug, please reply to this email and let us know. In most cases, we can correct errors as long as the plugin has not yet been approved. Please do not submit your plugin multiple times in an attempt to correct the issue, just email us.
    391392
     393Remember to read the developer guidelines: https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/
     394
     395Please make sure to follow our official blog: https://make.wordpress.org/plugins/
     396
    392397--
    393398The WordPress Plugin Directory Team
Note: See TracChangeset for help on using the changeset viewer.