~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to html/user/ffmail_action.php

  • Committer: Bazaar Package Importer
  • Author(s): Steffen Moeller
  • Date: 2011-10-09 15:50:33 UTC
  • mfrom: (49.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20111009155033-79ps2e1gl07gs8mg
* Fixing FTBFS (Closes: #644796).
* substituted install target with override_dh_auto_install

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
$action = get_str('action');
46
46
if ($action=='Preview') {
47
 
    page_head('Email preview');
48
 
    echo "Your email will appear as follows:
 
47
    page_head(tra("Email preview"));
 
48
    echo tra("Your email will appear as follows:")."
49
49
        <hr>
50
50
    ";
51
51
    echo replace("[Friend's name]", $comment, $uname, $html);
54
54
 
55
55
    echo "
56
56
        <hr>
57
 
        <b><a href=ffmail_action.php$args>Send email</a></b>
 
57
        <b><a href=ffmail_action.php$args>".tra("Send email")."</a></b>
58
58
        <p>
59
 
        [Use your browser's back button to return to message form]
 
59
        [".tra("Use your browser's back button to return to message form")."]
60
60
    ";
61
61
    page_tail();
62
62
} else {
63
 
    page_head("Sending emails");
 
63
    page_head(tra("Sending emails"));
64
64
    $found = false;
65
65
    for ($i=0; $i<5; $i++) {
66
66
        $n = get_str("n$i", true);
81
81
            $mail->Host = $PHPMAILER_HOST;
82
82
            $mail->Mailer = $PHPMAILER_MAILER;
83
83
            if ($mail->Send()) {
84
 
                echo "<br>email sent successfully to $e\n";
 
84
                echo "<br>".tra("email sent successfully to %1", $e)."\n";
85
85
            } else {
86
 
                echo "<br>failed to send email to $e: $mail->ErrorInfo\n";
 
86
                echo "<br>".tra("failed to send email to %1: %2", $e, $mail->ErrorInfo)."\n";
87
87
            }
88
88
        }
89
89
    }
90
90
    if ($found) {
91
91
        echo "
92
 
            <p>
93
 
            Thanks for telling your friends about ".PROJECT.".
94
 
        ";
 
92
            <p>".tra("Thanks for telling your friends about %1", PROJECT);
95
93
    } else {
96
 
        echo "
97
 
            You forgot to enter your friends' names and/or email addresses;
98
 
            Please <a href=ffmail_form.php>return to the form</a>
99
 
            and enter them.
100
 
        ";
 
94
        echo tra("You forgot to enter your friends' names and/or email addresses; Please %1return to the form%2 and enter them.", "<a href=ffmail_form.php>", "</a>");
101
95
    }
102
96
    page_tail();
103
97
}