Ticket #2921: 2921.patch
File 2921.patch, 1.8 KB (added by , 8 years ago) |
---|
-
wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-locale-banner.php
94 94 95 95 if ( $is_plugin_request ) { 96 96 $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 ), 98 98 sprintf( 99 99 '<a href="https://%s.wordpress.org%s%s/">%s</a>', 100 100 $locale_subdomain_assoc[ $locale ]->subdomain, … … 101 101 $current_site->path, 102 102 $plugin_slug, 103 103 $language 104 ) 104 ), 105 esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $plugin_slug ) 105 106 ); 106 107 } else { 107 108 $suggest_string = sprintf( … … 134 135 } 135 136 136 137 $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 ), 138 139 sprintf( 139 140 '<a href="https://%s.wordpress.org%s%s/">%s</a>', 140 141 $locale_subdomain_assoc[ $primary_locale ]->subdomain, … … 142 143 $plugin_slug, 143 144 $primary_language 144 145 ), 145 trim( $other_suggest, ' ,' ) 146 trim( $other_suggest, ' ,' ), 147 esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $plugin_slug ) 146 148 ); 147 149 } else { 148 150 $other_suggest = '';