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

« back to all changes in this revision

Viewing changes to html/user/team_join.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
$team = BoincTeam::lookup_id($teamid);
28
28
require_team($team);
29
29
if (!$team->joinable) {
30
 
    error_page("The team is not joinable.");
 
30
    error_page(tra("The team %1 is not joinable.", $team->name));
31
31
}
32
32
if ($user->teamid == $team->id) {
33
 
    page_head("Already a member");
34
 
    echo "You are already a member of $team->name.";
 
33
    page_head(tra("Already a member"));
 
34
    echo tra("You are already a member of %1.", $team->name);
35
35
} else {
36
36
    $success = user_join_team($team, $user);
37
37
    if ($success) {
38
38
        Header("Location: home.php");
39
39
    } else {
40
 
        error_page("Couldn't join team - please try later.");
 
40
        error_page(tra("Couldn't join team - please try again later."));
41
41
    }
42
42
}
43
43