Making WordPress.org

Ticket #2921: 2921.patch

File 2921.patch, 1.8 KB (added by SergeyBiryukov, 8 years ago)
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-locale-banner.php

     
    9494
    9595                                if ( $is_plugin_request ) {
    9696                                        $suggest_string = sprintf(
    97                                                 $this->translate( 'This plugin is also available in %s.', $locale ),
     97                                                $this->translate( 'This plugin is also available in %1$s. <a href="%2$s">Help improve the translation!</a>', $locale ),
    9898                                                sprintf(
    9999                                                        '<a href="https://%s.wordpress.org%s%s/">%s</a>',
    100100                                                        $locale_subdomain_assoc[ $locale ]->subdomain,
     
    101101                                                        $current_site->path,
    102102                                                        $plugin_slug,
    103103                                                        $language
    104                                                 )
     104                                                ),
     105                                                esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $plugin_slug )
    105106                                        );
    106107                                } else {
    107108                                        $suggest_string = sprintf(
     
    134135                                        }
    135136
    136137                                        $suggest_string = sprintf(
    137                                                 $this->translate( 'This plugin is also available in %1$s (also: %2$s).', $primary_locale ),
     138                                                $this->translate( 'This plugin is also available in %1$s (also: %2$s). <a href="%3$s">Help improve the translation!</a>', $primary_locale ),
    138139                                                sprintf(
    139140                                                        '<a href="https://%s.wordpress.org%s%s/">%s</a>',
    140141                                                        $locale_subdomain_assoc[ $primary_locale ]->subdomain,
     
    142143                                                        $plugin_slug,
    143144                                                        $primary_language
    144145                                                ),
    145                                                 trim( $other_suggest, ' ,' )
     146                                                trim( $other_suggest, ' ,' ),
     147                                                esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $plugin_slug )
    146148                                        );
    147149                                } else {
    148150                                        $other_suggest = '';