Making WordPress.org

Changeset 5917


Ignore:
Timestamp:
09/12/2017 05:16:21 PM (7 years ago)
Author:
coffee2code
Message:

Plugin Directory: Make email content translatable as a single string.

Props SergeyBiryukov.
Fixes #3072.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

    r5834 r5917  
    162162        $subject = sprintf( __( '[WordPress Plugin Directory] %s has been approved!', 'wporg-plugins' ), $post->post_title );
    163163
    164         /* Translators: Plugin name. */
    165         $content  = sprintf( __( 'Congratulations, your plugin hosting request for %s has been approved.', 'wporg-plugins' ), $post->post_title ). "\n\n";
    166 
    167         $content .= __( 'Within one hour you will have access to your SVN repository with the WordPress.org username and password you used to log in and submit your request. Your username is case sensitive.', 'wporg-plugins' ) . "\n\n";
    168 
    169         $content .= "https://plugins.svn.wordpress.org/{$post->post_name}\n\n";
    170 
    171         $content .= __( 'Here are some handy links to help you get started.', 'wporg-plugins' ) . "\n\n";
    172 
    173         $content .= __( 'WordPress Plugin Directory Guidelines:', 'wporg-plugins' ) . "\n";
    174         $content .= "https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/\n\n";
    175 
    176         $content .= __( 'Using Subversion with the WordPress Plugin Directory:', 'wporg-plugins' ) . "\n";
    177         $content .= "https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/\n\n";
    178 
    179         $content .= __( 'FAQ about the WordPress Plugin Directory:', 'wporg-plugins' ) . "\n";
    180         $content .= "https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/\n\n";
    181 
    182         $content .= __( 'WordPress Plugin Directory readme.txt standard:', 'wporg-plugins' ) . "\n";
    183         $content .= "https://wordpress.org/plugins/developers/#readme\n\n";
    184 
    185         $content .= __( 'A readme.txt validator:', 'wporg-plugins' ) . "\n";
    186         $content .= "https://wordpress.org/plugins/developers/readme-validator/\n\n";
    187 
    188         $content .= __( 'Plugin Assets (header images etc):', 'wporg-plugins' ) . "\n";
    189         $content .= "https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/\n\n";
    190 
    191         $content .= __( 'If you have issues or questions, please reply to this email and let us know.', 'wporg-plugins' ) . "\n\n";
    192 
    193         $content .= __( 'Enjoy!', 'wporg-plugins' ) . "\n\n";
    194 
    195         $content .= __( '-The WordPress Plugin Directory Team', 'wporg-plugins' ) . "\n";
    196         $content .= 'https://make.wordpress.org/plugins/';
     164        /* translators: 1: plugin name, 2: plugin slug */
     165        $content  = sprintf( __( 'Congratulations, your plugin hosting request for %1$s has been approved.
     166
     167Within one hour you will have access to your SVN repository with the WordPress.org username and password you used to log in and submit your request. Your username is case sensitive.
     168
     169https://plugins.svn.wordpress.org/%2$s
     170
     171Here are some handy links to help you get started.
     172
     173WordPress Plugin Directory Guidelines:
     174https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/
     175
     176Using Subversion with the WordPress Plugin Directory:
     177https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/
     178
     179FAQ about the WordPress Plugin Directory:
     180https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/
     181
     182WordPress Plugin Directory readme.txt standard:
     183https://wordpress.org/plugins/developers/#readme
     184
     185A readme.txt validator:
     186https://wordpress.org/plugins/developers/readme-validator/
     187
     188Plugin Assets (header images, etc):
     189https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
     190
     191If you have issues or questions, please reply to this email and let us know.
     192
     193Enjoy!
     194
     195--
     196The WordPress Plugin Directory Team
     197https://make.wordpress.org/plugins', 'wporg-plugins' ),
     198            $post->post_title,
     199            $post->post_name
     200        );
    197201
    198202        wp_mail( $plugin_author->user_email, $subject, $content, 'From: plugins@wordpress.org' );
     
    228232        $subject = sprintf( __( '[WordPress Plugin Directory] %s has been rejected', 'wporg-plugins' ), $post->post_title );
    229233
    230         /* Translators: Plugin name. */
    231         $content  = sprintf( __( 'Unfortunately your plugin submission for %s has been rejected from the WordPress.org Directory.', 'wporg-plugins' ), $post->post_title ). "\n\n\n";
    232         $content .= sprintf( __( 'If you believe this to be in error, please email %s with your plugin attached as a zip and explain why you feel your plugin should be an exception.', 'wporg-plugins' ), 'plugins@wordpress.org' ). "\n\n\n";
    233         $content .= __( 'The WordPress Plugin Directory Team', 'wporg-plugins' ) . "\n";
    234         $content .= 'https://make.wordpress.org/plugins';
     234        /* translators: 1: plugin name, 2: plugins@wordpress.org */
     235        $content  = sprintf( __( 'Unfortunately your plugin submission for %1$s has been rejected from the WordPress.org Directory.
     236
     237If you believe this to be in error, please email %2$s with your plugin attached as a zip and explain why you feel your plugin should be an exception.
     238
     239--
     240The WordPress Plugin Directory Team
     241https://make.wordpress.org/plugins', 'wporg-plugins' ),
     242            $post->post_title,
     243            'plugins@wordpress.org'
     244        );
    235245
    236246        wp_mail( $email, $subject, $content, 'From: plugins@wordpress.org' );
Note: See TracChangeset for help on using the changeset viewer.