WordPress.org

Make WordPress Core

Ticket #8051: wp-mail.diff

File wp-mail.diff, 1.0 KB (added by filosofo, 10 years ago)
  • wp-mail.php

     
    185185
    186186        do_action('publish_phone', $post_ID);
    187187
    188         echo "\n<p><b>Author:</b> " . wp_specialchars($post_author) . "</p>";
    189         echo "\n<p><b>Posted title:</b> " . wp_specialchars($post_title) . "<br />";
     188        echo "\n<p>" . sprintf(__('<strong>Author:</strong> %s'), wp_specialchars($post_author)) . '</p>';
     189        echo "\n<p>" . sprintf(__('<strong>Posted title:</strong> %s'), wp_specialchars($post_title)) . '</p>';
    190190
    191191        if(!$pop3->delete($i)) {
    192                 echo '<p>Oops '.wp_specialchars($pop3->ERROR).'</p></div>';
     192                echo '<p>' . sprintf(__('Oops: %s'), wp_specialchars($pop3->ERROR)) . '</p>';
    193193                $pop3->reset();
    194194                exit;
    195195        } else {
    196                 echo "<p>Mission complete, message <strong>$i</strong> deleted.</p>";
     196                echo '<p>' . sprintf(__('Mission complete.  Message <strong>%s</strong> deleted.'), $i) . '</p>';
    197197        }
    198198
    199199endfor;
    200200
    201201$pop3->quit();
    202202
    203 ?>
    204  No newline at end of file
     203?>