Ticket #982: team_pages.diff

File team_pages.diff, 50.6 KB (added by Christian Beer, 14 years ago)

team related pages

  • inc/team.inc

     
    261261
    262262    if ($offset > 0) {
    263263        $new_offset = $offset - $n;
    264         echo "<a href=team_members.php?teamid=$team->id&amp;sort_by=$sort_by&amp;offset=$new_offset>".tra('Last %1', $n)."</a> | ";
     264        echo "<a href=team_members.php?teamid=$team->id&amp;sort_by=$sort_by&amp;offset=$new_offset>".tra('Previous %1', $n)."</a> | ";
    265265    }
    266266    if ($j == $offset + $n + 1) {
    267267        $new_offset = $offset + $n;
     
    358358    }
    359359    echo "
    360360        <th>".tra('Country')."</th>
    361         <th>Type</th>
     361        <th>".tra("Type")."</th>
    362362        </tr>
    363363    ";
    364364}
     
    407407        echo "<input type=hidden name=teamid value=$team->id>\n";
    408408    }
    409409    if ($team->seti_id) {
    410         echo "<p><span class=error>WARNING: this is a BOINC-wide team.
    411             If you make changes here, they will soon be overwritten.
    412             Edit the
    413             <a href=http://boinc.berkeley.edu/teams/>BOINC-wide team</a>
    414             instead.</span>
     410        echo "<p><span class=error>".tra("WARNING: this is a BOINC-wide team. If you make changes here, they will soon be overwritten. Edit the %1BOINC-wide team%2 instead.", "<a href=http://boinc.berkeley.edu/teams/>", "</a>")
     411        ."</span>
    415412            <p>
    416413        ";
    417414    }
     
    451448   
    452449    echo "</select></td></tr>\n";
    453450    $x = $team->joinable?"checked":"";
    454     row2("Accept new members?", "<input type=checkbox name=joinable $x>");
     451    row2(tra("Accept new members?"), "<input type=checkbox name=joinable $x>");
    455452    row2("",
    456453        "<input type=submit name=new value='$label'>"
    457454    );
  • user/team_admins.php

     
    2929        <td>$date</td>
    3030        <td>
    3131    ";
    32     show_button("team_admins.php?teamid=$admin->teamid&action=remove&userid=$admin_user->id".$tokens, "Remove", "Remove Team Admin status from this member");
     32    show_button("team_admins.php?teamid=$admin->teamid&action=remove&userid=$admin_user->id".$tokens, tra("Remove"), tra("Remove Team Admin status from this member"));
    3333    echo "</td></tr>
    3434    ";
    3535}
    3636
    3737function show_admins($user, $teamid) {
    38     page_head("Add or remove Team Admins");
    39     echo "
    40         You can select team members as 'Team Admins'.
    41         Team Admins can:
     38    page_head(tra("Add or remove Team Admins"));
     39    echo tra("You can select team members as 'Team Admins'. Team Admins can:")."
    4240        <ul>
    43         <li> Edit team information (name, URL, description, country).
    44         <li> View the team's join/quit history.
    45         <li> Moderate the team forum, if any (admins get emails notification
    46             of moderation events and red X reports).
     41        <li>".tra("Edit team information (name, URL, description, country)")."
     42        <li>".tra("View the team's join/quit history")."
     43        <li>".tra("Moderate the team forum, if any (admins get email notification of moderation events and red X reports)")."
    4744        </ul>
    48         Team Admins cannot:
     45        ".tra("Team Admins cannot:")."
    4946        <ul>
    50         <li> Change the team founder.
    51         <li> Remove members.
    52         <li> Add or remove Team Admins.
     47        <li>".tra("Change the team founder")."
     48        <li>".tra("Remove members")."
     49        <li>".tra("Add or remove Team Admins")."
    5350        </ul>
    54         If a Team Admin quits the team, they cease to be a Team Admin.
    55         <p>
    56         We recommend that you select only people
    57         you know and trust very well as Team Admins.
    58     ";
     51        ".tra("If a Team Admin quits the team, they cease to be a Team Admin.")."
     52        <br /><br />".tra("We recommend that you select only people you know and trust very well as Team Admins.")
     53    ;
    5954    $admins = BoincTeamAdmin::enum("teamid=$teamid");
    6055    start_table();
    6156    if (count($admins)==0) {
    62         row1("There are currently no Team Admins");
     57        row1(tra("There are currently no Team Admins"));
    6358    } else {
    64         row1("Current Team Admins", 3);
    65         table_header("Name", "Became Team Admin on", "");
     59        row1(tra("Current Team Admins"), 3);
     60        table_header(tra("Name"), tra("Became Team Admin on"), "");
    6661        foreach ($admins as $admin) {
    6762            show_admin($user, $admin);
    6863        }
     
    7772    ";
    7873    echo form_tokens($user->authenticator);
    7974    start_table();
    80     row1("Add Team Admin");
    81     row2("Email address of team member:", "<input name=email_addr>");
    82     row2("", "<input type=submit action value=\"Add\">");
     75    row1(tra("Add Team Admin"));
     76    row2(tra("Email address of team member:"), "<input name=email_addr>");
     77    row2("", "<input type=submit action value=\"".tra("Add")."\">");
    8378    end_table();
    8479    echo "</form>";
    8580
     
    9085    $userid = get_int('userid');
    9186    $ret = BoincTeamAdmin::delete("teamid=$team->id and userid=$userid");
    9287    if (!$ret) {
    93         error_page("failed to remove admin");
     88        error_page(tra("failed to remove admin"));
    9489    }
    9590}
    9691
    9792function add_admin($team) {
    9893    $email_addr = get_str('email_addr');
    9994    $user = BoincUser::lookup("email_addr='$email_addr'");
    100     if (!$user) error_page("no such user");
    101     if ($user->teamid != $team->id) error_page("User is not member of team");
     95    if (!$user) error_page(tra("no such user"));
     96    if ($user->teamid != $team->id) error_page(tra("User is not member of team"));
    10297    if (is_team_admin($user, $team)) {
    103         error_page("$email_addr is already an admin of $team->name");
     98        error_page(tra("%1 is already an admin of %2", $email_addr, $team->name));
    10499    }
    105100    $now = time();
    106101    $ret = BoincTeamAdmin::insert("(teamid, userid, create_time) values ($team->id, $user->id, $now)");
    107     if (!$ret) error_page("Couldn't add admin");
     102    if (!$ret) error_page(tra("Couldn't add admin"));
    108103}
    109104
    110105$user = get_logged_in_user();
    111106$teamid = get_int('teamid');
    112107$team = BoincTeam::lookup_id($teamid);
    113 if (!$team) error_page("No such team");
     108if (!$team) error_page(tra("No such team"));
    114109require_founder_login($user, $team);
    115110
    116111$action = get_str('action', true);
  • user/team_change_founder_action.php

     
    2525$teamid = post_int("teamid");
    2626$team = BoincTeam::lookup_id($teamid);
    2727if (!$team) {
    28     error_page("No such team");
     28    error_page(tra("no such team"));
    2929}
    3030require_founder_login($user, $team);
    3131check_tokens($user->authenticator);
     
    3333$userid = post_int("userid");
    3434$new_founder = BoincUser::lookup_id($userid);
    3535if (!$new_founder || $new_founder->teamid != $team->id) {
    36     error_page( "User is not a member of $team->name");
     36    error_page(tra("User is not a member of %1", $team->name));
    3737}
    3838
    39 page_head("Changing founder of $team->name");
     39page_head(tra("Changing founder of %1", $team->name));
    4040$team->update("userid=$userid, ping_user=0");
    41 echo "$new_founder->name is now founder of $team->name";
     41echo tra("%1 is now founder of %2", $new_founder->name, $team->name);
    4242page_tail();
    4343
    4444?>
  • user/team_change_founder_form.php

     
    2828$teamid = get_int("teamid");
    2929$team = BoincTeam::lookup_id($teamid);
    3030if (!$team) {
    31     error_page("no such team");
     31    error_page(tra("no such team"));
    3232}
    3333require_founder_login($user, $team);
    3434
    35 page_head("Change founder of $team->name");
     35page_head(tra("Change founder of %1", $team->name));
    3636
    3737if ($team->ping_user != 0) {
    3838    if ($team->ping_user < 0) {
    3939        $ping_user = BoincUser::lookup_id(-$team->ping_user);
    4040        $x = date_str($team->ping_time);
    41         echo "<p>Team member ".user_links($ping_user)." requested this
    42             team's foundership on $x, but left the team, thus canceling the request.
    43         ";
     41        echo "<p>".tra("Team member %1 requested this team's foundership on %2, but left the team, thus canceling the request.", user_links($ping_user), $x)
     42        ."</p>";
    4443        $team->update("ping_user=0, ping_time=0");
    4544    } else {
    4645        $ping_user = BoincUser::lookup_id($team->ping_user);
    4746        $x = date_str(transfer_ok_time($team));
    48         echo "<p>Team member ".user_links($ping_user)." has requested this
    49             team's foundership.
    50             This may be because you left the team or haven't had contact
    51             with the team for a long time.
    52         ";
     47        echo "<p>".tra("Team member %1 has requested this team's foundership. This may be because you left the team or haven't had contact with the team for a long time.", user_links($ping_user))
     48        ."</p>";
    5349        echo "<p>
    5450            <form method=\"post\" action=\"team_founder_transfer_action.php\">
    5551            <input type=\"hidden\" name=\"action\" value=\"decline\">
    5652            <input type=\"hidden\" name=\"teamid\" value=\"".$team->id."\">
    57             To decline the request, <input type=\"submit\" value=\"click here\">
     53            <input type=\"submit\" value=\"".tra("decline request")."\">
    5854            </form>
    5955            <p>
    60             If you don't decline the request by $x,
    61             $ping_user->name will have the option of
    62             assuming team foundership.
    63             <p>
    64             To accept the request, assign foundership to $ping_user->name
    65             using the form below.
    66             <p>
     56            ".tra("If you don't decline the request by %1, %2 will have the option of assuming team foundership.<br /><br />
     57                  To accept the request, assign foundership to %3 using the form below.", $x, $ping_user->name, $ping_user->name)."
     58            </p>
    6759            <hr>
    6860            <p>
    6961        ";
    7062    }
    7163} else {
    72     echo "No transfer request is pending.<p>";
     64    echo tra("No transfer request is pending.")."<br /><br />";
    7365}
    7466
    75 echo "
    76     To assign foundership of this team to another member,
    77     check the box next to member name and click <b>Change founder</b> below.
    78     <form method=post action=team_change_founder_action.php>
    79     <input type=hidden name=teamid value=$team->id>
    80 ";
     67echo tra("To assign foundership of this team to another member, check the box next to member name and click <strong>Change founder</strong> below.")
     68    ."<form method=post action=team_change_founder_action.php>
     69    <input type=hidden name=teamid value=$team->id>";
    8170echo form_tokens($user->authenticator);
    8271
    8372start_table();
    8473echo "<tr>
    85     <th>New founder?</th>
    86     <th>Name</th>
    87     <th>Total credit</th>
    88     <th>Recent average credit</th>
     74    <th>".tra("New founder?")."</th>
     75    <th>".tra("Name")."</th>
     76    <th>".tra("Total credit")."</th>
     77    <th>".tra("Recent average credit")."</th>
    8978    </tr>
    9079";
    9180
     
    111100if ($navailable_users > 0) {
    112101    echo "<input type=hidden name=navailable_users value=$navailable_users>";
    113102    end_table();
    114     echo "<input type=submit value=\"Change founder\">";
     103    echo "<input type=submit value=\"".tra("Change founder")."\">";
    115104} else {
    116105    echo '<tr>
    117         <td colspan="4">There are no users to transfer team to.</td>
     106        <td colspan="4">".tra("There are no users to transfer team to.")."</td>
    118107        </tr>
    119108    ';
    120109    end_table();
  • user/team_delta.php

     
    6161    if ($xml) {
    6262        xml_error("-1", "Not founder or admin");
    6363    } else {
    64         error_page("Not founder or admin");
     64        error_page(tra("Not founder or admin"));
    6565    }
    6666}
    6767
    6868if ($xml) {
    6969    echo "<actions>\n";
    7070} else {
    71     page_head("Team history for $team->name");
     71    page_head(tra("Team history for %1", $team->name));
    7272    start_table();
    7373    echo "<tr>
    74         <th>When</th>
    75         <th>User</th>
    76         <th>Action</th>
    77         <th>Total credit at time of action</th>
     74        <th>".tra("When")."</th>
     75        <th>".tra("User")."</th>
     76        <th>".tra("Action")."</th>
     77        <th>".tra("Total credit at time of action")."</th>
    7878        </tr>
    7979    ";
    8080}
  • user/team_display.php

     
    6464}
    6565
    6666if (!$team) {
    67     error_page("No such team");
     67    error_page(tra("no such team"));
    6868}
    6969
    7070display_team_page($team, $user);
  • user/team_edit_action.php

     
    2525$teamid = post_int("teamid");
    2626$team = BoincTeam::lookup_id($teamid);
    2727
    28 if (!$team) error_page("no such team");
     28if (!$team) error_page(tra("no such team"));
    2929require_admin($user, $team);
    3030
    3131$team_url = BoincDb::escape_string(strip_tags(post_str("url", true)));
     
    4848    $country = "International";
    4949}
    5050if (!is_valid_country($country)) {
    51     error_page("bad country");
     51    error_page(tra("bad country"));
    5252}
    5353$joinable = post_str('joinable', true)?1:0;
    5454
    5555$t = BoincTeam::lookup("name='$team_name'");
    5656if ($t && $t->id != $teamid) {
    57     error_page("The name '$team_name' is being used by another team.");
     57    error_page(tra("The name '%1' is being used by another team.", $team_name));
    5858}
    5959if (strlen($team_name) == 0) {
    60     error_page("Must specify team name");
     60    error_page(tra("Must specify team name"));
    6161    // Should be caught up with the post_str("name"),
    6262    // but you can never be too safe.
    6363}
     
    8585if ($ret) {
    8686    Header("Location: team_display.php?teamid=$team->id");
    8787} else {
    88     error_page("Could not update team - please try later.");
     88    error_page(tra("Could not update team - please try again later."));
    8989}
    9090
    9191?>
  • user/team_edit_form.php

     
    2424
    2525$teamid = get_int("teamid");
    2626$team = BoincTeam::lookup_id($teamid);
    27 if (!$team) error_page("no such team");
     27if (!$team) error_page(tra("no such team"));
    2828require_admin($user, $team);
    2929
    3030$team_name = strtr($team->name, '"', "'");
    31 page_head("Edit ".$team_name);
    32 team_edit_form($team, "Update team info", "team_edit_action.php");
     31page_head(tra("Edit %1", $team_name));
     32team_edit_form($team, tra("Update team info"), "team_edit_action.php");
    3333page_tail();
    3434
    3535?>
  • user/team_email_list.php

     
    4949$teamid = get_int("teamid");
    5050$plain = get_int("plain", true);
    5151$team = BoincTeam::lookup_id($teamid);
    52 if (!$team) error_page("no such team");
     52if (!$team) error_page(tra("no such team"));
    5353require_founder_login($user, $team);
    5454
    5555if ($plain) {
    5656    header("Content-type: text/plain");
    5757} else {
    58     page_head("$team->name Email List");
     58    page_head(tra("%1 Email List", $team->name));
    5959    start_table();
    60     table_header(array("Member list of ".$team->name, "colspan=\"6\""));
    61     table_header("Name", "Email address", "Total credit", "Recent average credit", "Country");
     60    table_header(array(tra("Member list of %1", $team->name), "colspan=\"6\""));
     61    table_header(tra("Name"), tra("Email address"), tra("Total credit"), tra("Recent average credit"), tra("Country"));
    6262}
    6363$users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid=$team->id");
    6464foreach($users as $user) {
     
    7272}
    7373if (!$plain) {
    7474    end_table();
    75     echo "<p><a href=\"team_email_list.php?teamid=".$teamid."&amp;plain=1\">Show as plain text</a></p>";
     75    echo "<p><a href=\"team_email_list.php?teamid=".$teamid."&amp;plain=1\">".tra("Show as plain text")."</a></p>";
    7676    page_tail();
    7777}
    7878
  • user/team_forum.php

     
    2323require_once("../inc/forum_db.inc");
    2424
    2525function create_confirm($user, $team) {
    26     page_head("Create Message Board");
    27     echo "
    28         You may create a Message Board for use by $team->name.
     26    page_head(tra("Create Message Board"));
     27    echo tra("You may create a message board for use by %1.", $team->name)."
    2928        <ul>
    30         <li> Only team members will be able to post.
    31         <li> At your option, only members will be able to read.
    32         <li> You and your Team Admins will have moderator privileges.
     29        <li>".tra("Only team members will be able to post.")."
     30        <li>".tra("At your option, only members will be able to read.")."
     31        <li>".tra("You and your Team Admins will have moderator privileges.")."
    3332        </ul>
    3433    ";
    3534    $tokens = url_tokens($user->authenticator);
    3635    show_button(
    3736        "team_forum.php?teamid=$team->id&cmd=create$tokens",
    38         "Create Message Board",
    39         "Create a Message Board for $team->name"
     37        tra("Create Message Board"),
     38        tra("Create a message board for %1", $team->name)
    4039    );
    4140    page_tail();
    4241}
     
    4443function create_forum($user, $team) {
    4544    $f = BoincForum::lookup("parent_type=1 and category=$team->id");
    4645    if ($f) {
    47         error_page("Team already has a forum");
     46        error_page(tra("Team already has a message board"));
    4847    }
    4948    $id = BoincForum::insert("(category, parent_type) values ($team->id, 1)");
    5049    $forum = BoincForum::lookup_id($id);
    5150    if (!$forum) {
    52         error_page("couldn't create forum");
     51        error_page(tra("couldn't create message board"));
    5352    }
    5453    edit_form($user, $team, $forum, true);
    5554}
    5655
    5756function edit_form($user, $team, $forum, $first) {
    58     page_head("Team forum");
     57    page_head(tra("Team Message Board"));
    5958    echo "
    6059        <form action=team_forum.php method=post>
    6160        <input type=hidden name=teamid value=$team->id>
     
    6463    echo form_tokens($user->authenticator);
    6564    start_table();
    6665    if (!strlen($forum->title)) $forum->title = $team->name;
    67     if (!strlen($forum->description)) $forum->description = "Discussion among members of $team->name";
    68     row2("Title", "<input name=title value=\"$forum->title\">");
    69     row2("Description", "<textarea name=description>$forum->description</textarea>");
    70     row2("Minimum time between posts (seconds)",
     66    if (!strlen($forum->description)) $forum->description = tra("Discussion among members of %1", $team->name);
     67    row2(tra("Title"), "<input name=title value=\"$forum->title\">");
     68    row2(tra("Description"), "<textarea name=description>$forum->description</textarea>");
     69    row2(tra("Minimum time between posts (seconds)"),
    7170        "<input name=post_min_interval value=$forum->post_min_interval>"
    7271    );
    73     row2("Minimum total credit to post",
     72    row2(tra("Minimum total credit to post"),
    7473        "<input name=post_min_total_credit value=$forum->post_min_total_credit>"
    7574    );
    76     row2("Minimum average credit to post",
     75    row2(tra("Minimum average credit to post"),
    7776        "<input name=post_min_expavg_credit value=$forum->post_min_expavg_credit>"
    7877    );
    79     row2("", "<input type=submit value=OK>");
     78    row2("", "<input type=submit value=".tra("Submit").">");
    8079    end_table();
    8180    echo "
    8281        </form>
     
    8584        echo "
    8685            <p>
    8786            <a href=team_forum.php?teamid=$team->id&cmd=remove_confirm$tokens>
    88             Remove your team's message board.</a>
     87            ".tra("Remove your team's message board.")."</a>
    8988        ";
    9089    }
    9190    page_tail();
     
    9392
    9493function remove_confirm($user, $team) {
    9594    $tokens = url_tokens($user->authenticator);
    96     page_head("Really remove message board?");
    97     echo "
    98         Are you sure you want to remove your team's message board?
    99         All threads and posts will be permanently removed.
    100         (You may, however, create a new message board later).
    101         <p>
    102         <a href=team_forum.php?teamid=$team->id&cmd=remove>Yes - remove message board</a>
     95    page_head(tra("Really remove message board?"));
     96    echo tra("Are you sure you want to remove your team's message board? All threads and posts will be permanently removed. (You may, however, create a new message board later).")
     97        ."<br /><br />
     98        <a href=team_forum.php?teamid=$team->id&cmd=remove>".tra("Yes - remove message board")."</a>
    10399    ";
    104100    page_tail();
    105101}
    106102
    107103function remove($team) {
    108104    $forum = BoincForum::lookup("parent_type=1 and category=$team->id");
    109     if (!$forum) error_page("not found");
     105    if (!$forum) error_page(tra("message board not found"));
    110106   
    111107    // delete threads and posts
    112108    //
     
    120116    }
    121117    $forum->delete();
    122118
    123     page_head("Message board removed");
     119    page_head(tra("Message board removed"));
     120    echo tra("<p>".tra("Your teams message board has been removed. You may now %1create a new one%2."), "<a href=team_forum.php?teamid=$team->id&cmd=manage>", "</a>")
     121        ."</p>";
    124122    page_tail();
    125123}
    126124
     
    134132    $post_min_expavg_credit = post_int('post_min_expavg_credit');
    135133    $ret = $forum->update("title='$title', description='$description', post_min_interval=$post_min_interval, post_min_total_credit=$post_min_total_credit, post_min_expavg_credit=$post_min_expavg_credit");
    136134    if ($ret) {
    137         page_head("Team Message Board Updated");
    138         echo "Update successful";
     135        page_head(tra("Team Message Board Updated"));
     136        echo tra("Update successful");
    139137        page_tail();
    140138    } else {
    141         error_page("update failed");
     139        error_page(tra("Update failed"));
    142140    }
    143141}
    144142
    145143function show_forum($team) {
    146144    $forum = BoincForum::lookup("parent_type=1 and category=$team->id");
    147145    if (!$forum) {
    148         error_page("team has no forum");
     146        error_page(tra("team has no forum"));
    149147    }
    150148    Header("Location: forum_forum.php?id=$forum->id");
    151149}
     
    155153
    156154$team = BoincTeam::lookup_id($teamid);
    157155if (!$team) {
    158     error_page("no such team");
     156    error_page(tra("no such team"));
    159157}
    160158
    161159$cmd = get_str('cmd', true);
     
    180178    require_founder_login($user, $team);
    181179    check_tokens($user->authenticator);
    182180    $forum = BoincForum::lookup("parent_type=1 and category=$teamid");
    183     if (!$forum) error_page("no forum");
     181    if (!$forum) error_page(tra("no such forum"));
    184182    edit_action($forum);
    185183} else if ($cmd == "remove_confirm") {
    186184    $user = get_logged_in_user();
     
    191189    require_founder_login($user, $team);
    192190    remove($team);
    193191} else if ($cmd != "") {
    194     error_page("unknown command $cmd");
     192    error_page(tra("unknown command %1", $cmd));
    195193} else {
    196194    show_forum($team);
    197195}
  • user/team_founder_transfer_action.php

     
    1616// You should have received a copy of the GNU Lesser General Public License
    1717// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
    1818
    19 // action = 'transfer':
    20 //    handle a user's request to initiate a foundership transfer
     19// action = 'initiate_transfer':
     20//    handle a user's request to initiate a foundership transfer
     21// action = 'finalize_transfer':
     22//    handle a user's request to finalize a foundership transfer
    2123// action = 'decline':
    2224//    handle the current founder's declining of the request
    2325
     
    2931
    3032$user = get_logged_in_user();
    3133if (!$user->teamid) {
    32     error_page("You must be a member of a team to access this page.");
     34    error_page(tra("You must be a member of a team to access this page."));
    3335}
    3436
    3537function send_founder_transfer_email($team, $user) {
     
    8385    $team = BoincTeam::lookup_id($user->teamid);
    8486    $now = time();
    8587    if (new_transfer_request_ok($team, $now)) {
    86         page_head("Requesting foundership of ".$team->name);
     88        page_head(tra("Requesting foundership of %1", $team->name));
    8789        $success = send_founder_transfer_email($team, $user);
    8890
    8991        // Go ahead with the transfer even if the email send fails.
     
    9193        // whose founder email is invalid
    9294        //
    9395        $team->update("ping_user=$user->id, ping_time=$now");
    94         echo "<p>
    95             The current founder has been notified of your request by email
    96             and private message.
    97             <p>
    98             If the founder does not respond within 60 days you will be
    99             allowed to become the founder.
    100             <p>
    101         ";
     96        echo "<p>".tra("The current founder has been notified of your request by email and private message.<br /><br />
     97                       If the founder does not respond within 60 days you will be allowed to become the founder.")
     98        ."</p>\n";
    10299    } else {
    103         error_page("Foundership request not allowed now");
     100        error_page(tra("Foundership request not allowed now"));
    104101    }
    105102    break;
    106103case "finalize_transfer":
    107104    $team = BoincTeam::lookup_id($user->teamid);
    108105    $now = time();
    109106    if ($user->id == $team->ping_user && transfer_ok($team, $now)) {
    110         page_head("Assumed foundership of ".$team->name);
     107        page_head(tra("Assumed foundership of %1", $team->name));
    111108        $team->update("userid=$user->id, ping_user=0, ping_time=0");
    112         echo "
    113             Congratulations, you are now the founder of team ".$team->name."
    114             Go to <a href=\"".URL_BASE."home.php\">Your Account page</a>
    115             to find the Team Admin options.
    116         ";
     109        echo tra("Congratulations, you are now the founder of team %1. Go to %2Your Account page%3 to find the Team Admin options.", $team->name, "<a href=\"".URL_BASE."home.php\">", "</a>");
    117110    } else {
    118         error_page("Foundership request not allowed now");
     111        error_page(tra("Foundership request not allowed now"));
    119112    }
    120113    break;
    121114case "decline":
    122115    $teamid = post_int("teamid");
    123116    $team = lookup_team($teamid);
    124117    require_founder_login($user, $team);
    125     page_head("Decline founder change request");
     118    page_head(tra("Decline founder change request"));
    126119   
    127120    if ($team->ping_user) {
    128121        $ping_user = BoincUser::lookup_id($team->ping_user);
    129122       
    130123        $team->update("ping_user=0");
    131124        send_founder_transfer_decline_email($team, $ping_user);
    132         echo "<p>The foundership request from ".user_links($ping_user)
    133             ." has been declined.
    134         ";
     125        echo "<p>".tra("The foundership request from %1 has been declined.", user_links($ping_user))
     126        ."</p>";
    135127    } else {
    136         echo "<p>There were no foundership requests.";
     128        echo "<p>".tra("There were no foundership requests.")."</p>";
    137129    }
    138130    break;
    139131default:
    140     error_page("undefined action $action");
     132    error_page(tra("undefined action %1", $action));
    141133}
    142134
    143 echo "<a href='team_display.php?teamid=$team->id'>Return to team page</a>";
     135echo "<a href='team_display.php?teamid=$team->id'>".tra("Return to team page")."</a>";
    144136
    145137page_tail();
    146138
  • user/team_founder_transfer_form.php

     
    2323$user = get_logged_in_user();
    2424$team = BoincTeam::lookup_id($user->teamid);
    2525if (!$team) {
    26     error_page("You need to be a member of a team to access this page.");
     26    error_page(tra("You need to be a member of a team to access this page."));
    2727}
    2828
    29 page_head("Request foundership of $team->name");
     29page_head(tra("Request foundership of %1", $team->name));
    3030$now = time();
    3131
    3232// it should never happen, but just in case
    3333//
    3434if (!$team->userid) {
    3535    $team->update("userid=$user->id, ping_user=0, ping_time=0");
    36     echo "You are now founder of team $team->name.";
     36    echo tra("You are now founder of team %1.", $team->name);
    3737    page_tail();
    3838    exit;
    3939}
    4040
    4141if ($user->id == $team->ping_user) {
    42     echo "<p>You requested the foundership of $team->name
    43         on ".date_str($team->ping_time).".
    44     ";
     42    echo "<p>".tra("You requested the foundership of %1 on %2.", $team->name, date_str($team->ping_time))."
     43    </p>";
    4544    if (transfer_ok($team, $now)) {
    46         echo "
    47             60 days have elapsed since your request,
    48             and the founder has not responded.
    49             You may now assume foundership by clicking here:
    50             <form method=\"post\" action=\"team_founder_transfer_action.php\">
     45        echo tra("60 days have elapsed since your request, and the founder has not responded. You may now assume foundership by clicking here:")
     46            ."<form method=\"post\" action=\"team_founder_transfer_action.php\">
    5147            <input type=\"hidden\" name=\"action\" value=\"finalize_transfer\">
    52             <input type=\"submit\" value=\"Assume foundership\">
     48            <input type=\"submit\" value=\"".tra("Assume foundership")."\">
    5349            </form>
    5450        ";
    5551    } else {
    56         echo "<p>
    57             The founder was notified of your request.
    58             If he/she does not respond by ".date_str(transfer_ok_time($team))."
    59             you will be given an option to become founder.
    60         ";
     52        echo "<p>".tra("The founder was notified of your request. If he/she does not respond by %1 you will be given an option to become founder.", date_str(transfer_ok_time($team)))
     53        ."</p>";
    6154    }
    6255} else {
    6356    if (new_transfer_request_ok($team, $now)) {
    6457        echo "<form method=\"post\" action=\"team_founder_transfer_action.php\">";
    65         echo "<p>If the team founder is not active and you want to assume
    66             the role of founder, click the button below.
    67             The current founder will be sent an email detailing your request,
    68             and will be able to transfer foundership to you
    69             or to decline your request.
    70             If the founder does not respond in 60 days,
    71             you will be allowed to become the founder.
    72             <p>
    73             Are you sure you want to request foundership?
    74         ";
     58        echo "<p>".tra("If the team founder is not active and you want to assume the role of founder, click the button below. The current founder will be sent an email detailing your request, and will be able to transfer foundership to you or to decline your request. If the founder does not respond in 60 days, you will be allowed to become the founder.<br /><br />
     59                       Are you sure you want to request foundership?")
     60        ."</p>";
    7561
    7662        echo "<input type=\"hidden\" name=\"action\" value=\"initiate_transfer\">
    77             <input type=\"submit\" value=\"Request foundership\">
     63            <input type=\"submit\" value=\"".tra("Request foundership")."\">
    7864            </form>
    7965        ";
    8066    } else {
     
    8369                $team->ping_user = -$team->ping_user;
    8470            }
    8571            $ping_user = BoincUser::lookup_id($team->ping_user);
    86             echo "<p>Founder change has already been requested by ".
    87                 user_links($ping_user)." on ".date_str($team->ping_time).".
    88             ";
     72            echo "<p>".tra("Founder change has already been requested by %1 on %2.", user_links($ping_user), date_str($team->ping_time))
     73            ."</p>";
    8974        } else {
    90             echo "<p>A foundership change was requested during the last 90 days,
    91                  so new requests are not allowed.
    92                  Please try again later.
    93             ";
     75            echo "<p>".tra("A foundership change was requested during the last 90 days, so new requests are not allowed. Please try again later.")
     76            ."</p>";
    9477        }
    9578    }
    9679}
    9780
    98 echo "<p><a href=\"team_display.php?teamid=".$team->id."\">Return to team page</a>";
     81echo "<p><a href=\"team_display.php?teamid=".$team->id."\">".tra("Return to team page")."</a>";
    9982
    10083page_tail();
    10184
  • user/team_join_action.php

     
    2727$team = BoincTeam::lookup_id($teamid);
    2828require_team($team);
    2929if (!$team->joinable) {
    30     error_page("The team is not joinable.");
     30    error_page(tra("The team %1 is not joinable.", $team->name));
    3131}
    3232if ($user->teamid == $team->id) {
    33     page_head("Unable to add $user->name");
    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);
    3535} else {
    3636    $success = user_join_team($team, $user);
    3737    if ($success) {
    38         page_head("Joined $team->name");
    39         echo "You have joined
    40             <a href=team_display.php?teamid=$team->id>$team->name</a>.
    41         ";
     38        page_head(tra("Joined %1", $team->name));
     39        echo tra("You have joined %1.", "<a href=team_display.php?teamid=$team->id>$team->name</a>");
    4240    } else {
    43         error_page("Couldn't join team - please try later.");
     41        error_page(tra("Couldn't join team - please try again later."));
    4442    }
    4543}
    4644
  • user/team_join_form.php

     
    2626
    2727$team = lookup_team($teamid);
    2828if (!$team->joinable) {
    29     error_page("The team is not joinable.");
     29    error_page(tra("The team %1 is not joinable.", $team->name));
    3030}
    3131$team_name = $team->name;
    32 page_head("Join $team_name");
    33 echo " <p><b>Please note:</b>
     32page_head(tra("Join %1", $team_name));
     33echo " <p><b>".tra("Please note:")."</b>
    3434    <ul>
    35     <li> Joining a team gives its founder access to your email address.
    36     <li> Joining a team does not affect your account's credit.
     35    <li>".tra("Joining a team gives its founder access to your email address.")."
     36    <li>".tra("Joining a team does not affect your account's credit.")."
    3737    </ul>
    3838    <hr>
    3939    <form method=\"post\" action=\"team_join_action.php\">";
    4040echo form_tokens($user->authenticator);
    4141echo "
    4242    <input type=\"hidden\" name=\"teamid\" value=\"$teamid\">
    43     <input type=\"submit\" value=\"Join team\">
     43    <input type=\"submit\" value=\"".tra("Join team")."\">
    4444    </form>
    4545";
    4646page_tail();
  • user/team_join.php

     
    2727$team = BoincTeam::lookup_id($teamid);
    2828require_team($team);
    2929if (!$team->joinable) {
    30     error_page("The team is not joinable.");
     30    error_page(tra("The team %1 is not joinable.", $team->name));
    3131}
    3232if ($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);
    3535} else {
    3636    $success = user_join_team($team, $user);
    3737    if ($success) {
    3838        Header("Location: home.php");
    3939    } else {
    40         error_page("Couldn't join team - please try later.");
     40        error_page(tra("Couldn't join team - please try again later."));
    4141    }
    4242}
    4343
  • user/team_lookup.php

     
    5959    exit();
    6060}
    6161
    62 page_head("Search Results");
     62page_head(tra("Search Results"));
    6363if (count($teams)) {
    64     echo "<h2>Search results for '".strip_tags($team_name)."'</h2>";
     64    echo "<h2>".tra("Search results for '%1'", strip_tags($team_name))."</h2>";
    6565    echo "<p>";
    66     echo "You may view these teams' members, statistics, and information.";
     66    echo tra("You may view these teams' members, statistics, and information.");
    6767    echo "<ul>";
    6868    foreach($teams as $team) {
    6969        echo "<li>";
     
    7272    }
    7373    echo "</ul>";
    7474    if (count($teams)==100) {
    75         echo "
    76             More than 100 teams match your search.
    77             The first 100 are shown.<br>
    78         ";
     75        echo tra("More than 100 teams match your search. The first 100 are shown.")
     76        ."<br>\n";
    7977    }
    8078}
    81 echo "End of results<br>";
    82 echo "If you cannot find the team you are looking for, you may create a team ";
    83 echo "by clicking <a href=team_create_form.php>here</a>.";
     79echo tra("End of results<br>
     80         If you cannot find the team you are looking for, you may %1create a team%2 by yourself.", "<a href=team_create_form.php>", "</a>");
    8481page_tail();
    8582
    8683?>
  • user/team_manage.php

     
    2121require_once("../inc/team.inc");
    2222
    2323function show_admin_page($user, $team) {
    24     page_head("Team administration for $team->name");
     24    page_head(tra("Team administration for %1", $team->name));
    2525    echo "
    2626        <ul>
    27         <li><a href=team_edit_form.php?teamid=$team->id>Edit team info</a>
    28             <br><span class=note>Change team name, URL, description, type, or country</span>
     27        <li><a href=team_edit_form.php?teamid=$team->id>".tra("Edit team info")."</a>
     28            <br><span class=note>".tra("Change team name, URL, description, type, or country")."</span>
    2929        <li>
    30             Member list:
    31         <a href=team_email_list.php?teamid=$team->id>HTML</a>
    32         | <a href=team_email_list.php?teamid=$team->id&plain=1>text</a>
    33             <br><span class=note> View member names and email addresses </span>
    34         <li>View change history:
    35             <a href=team_delta.php?teamid=$team->id>HTML</a>
    36             | <a href=team_delta.php?teamid=$team->id&xml=1>XML</a>
    37             <br><span class=note>See when members joined or quit this team</span>
     30            ".tra("Member list:")."
     31        <a href=team_email_list.php?teamid=$team->id>".tra("HTML")."</a>
     32        | <a href=team_email_list.php?teamid=$team->id&plain=1>".tra("text")."</a>
     33            <br><span class=note>".tra("View member names and email addresses")."</span>
     34        <li>".tra("View change history:")."
     35            <a href=team_delta.php?teamid=$team->id>".tra("HTML")."</a>
     36            | <a href=team_delta.php?teamid=$team->id&xml=1>".tra("XML")."</a>
     37            <br><span class=note>".tra("See when members joined or quit this team")."</span>
    3838    ";
    3939
    4040    // founder-only stuff follows
     
    4545            $user2 = BoincUser::lookup_id($team->ping_user);
    4646            $deadline = date_str(transfer_ok_time($team));
    4747            echo "<li>
    48                 <a href=team_change_founder_form.php?teamid=$team->id><font color=red><b>Respond to foundership request</b></font></a>.  If you don't respond by $deadline, $user2->name may assume foundership of this team.
    49             ";
     48                <a href=team_change_founder_form.php?teamid=$team->id><font color=red><strong>".tra("Respond to foundership request.")."</strong></font></a>  ".tra("If you don't respond by %1, %2 may assume foundership of this team.", $deadline, $user2->name)
     49                ;
    5050        }
    5151        echo "
    52             <li><a href=team_remove_inactive_form.php?teamid=$team->id>Remove members</a>
    53                 <br><span class=note>Remove inactive or unwanted members from this team</span>
    54             <li><a href=team_change_founder_form.php?teamid=$team->id>Change founder</a>
    55                 <br><span class=note>Transfer foundership to another member</span>
    56             <li><a href=team_admins.php?teamid=$team->id>Add/remove Team Admins</a>
    57                 <br><span class=note>Give selected team members Team Admin privileges</span>
     52            <li><a href=team_remove_inactive_form.php?teamid=$team->id>".tra("Remove members")."</a>
     53                <br><span class=note>".tra("Remove inactive or unwanted members from this team")."</span>
     54            <li><a href=team_change_founder_form.php?teamid=$team->id>".tra("Change founder")."</a>
     55                <br><span class=note>".tra("Transfer foundership to another member")."</span>
     56            <li><a href=team_admins.php?teamid=$team->id>".tra("Add/remove Team Admins")."</a>
     57                <br><span class=note>".tra("Give selected team members Team Admin privileges")."</span>
    5858
    59             <li><a href=team_manage.php?teamid=$team->id&action=delete&$tokens>Remove team</a>
    60                 <br><span class=note>Allowed only if team has no members</a>
    61             <li><a href=team_forum.php?teamid=$team->id&cmd=manage>Message board</a>
    62                 <br><span class=note>Create or manage team message board</span>
     59            <li><a href=team_manage.php?teamid=$team->id&action=delete&$tokens>".tra("Remove team")."</a>
     60                <br><span class=note>".tra("Allowed only if team has no members")."</a>
     61            <li><a href=team_forum.php?teamid=$team->id&cmd=manage>".tra("Message board")."</a>
     62                <br><span class=note>".tra("Create or manage a team message board")."</span>
    6363        ";
    6464    }
    6565    echo "
    6666
    6767        <p>
    6868        <li>
    69             To have this team created on all BOINC projects
    70             (current and future) you can make it into a
    71             <a href=http://boinc.berkeley.edu/teams/>BOINC-wide team</a>.
     69            ".tra("To have this team created on all BOINC projects (current and future) you can make it into a %1BOINC-wide team%2.", "<a href=http://boinc.berkeley.edu/teams/>", "</a>")."
    7270        <li>
    73             Team admins are encouraged to join and participate in the Google
    74             <a href=http://groups.google.com/group/boinc-team-founders>boinc-team-founders</a> group.
     71            ".tra("Team admins are encouraged to join and participate in the Google %1boinc-team-founders%2 group.", "<a href=http://groups.google.com/group/boinc-team-founders>", "</a>")."
    7572        <li>
    76             Other resources for BOINC team admins
    77             are available from a third-party site,
    78             <a href=http://www.boincteams.com>www.boincteams.com</a>.
     73            ".tra("Other resources for BOINC team admins are available from a third-party site, %1www.boincteams.com%2.", "<a href=http://www.boincteams.com>", "</a>")."
    7974    </ul>
    8075    ";
    8176
     
    8580$user = get_logged_in_user(true);
    8681$teamid = get_int('teamid');
    8782$team = BoincTeam::lookup_id($teamid);
    88 if (!$team) error_page("no such team");
     83if (!$team) error_page(tra("no such team"));
    8984
    9085$action = get_str('action', true);
    9186if ($action == 'delete') {
    9287    require_founder_login($user, $team);
    9388    if (team_count_members($team->id) > 0) {
    94         error_page("Can't delete non-empty team");
     89        error_page(tra("Can't delete non-empty team"));
    9590    }
    9691    check_tokens($user->authenticator);
    9792    $team->delete();
    98     page_head("Team $team->name deleted");
     93    page_head(tra("Team %1 deleted", $team->name));
    9994    page_tail();
    10095} else {
    10196    require_admin($user, $team);
  • user/team_members.php

     
    3030if (!$offset) $offset=0;
    3131
    3232if ($offset > 1000) {
    33     error_page("Limit exceeded:  Can only display the first 1000 members.");
     33    error_page(tra("Limit exceeded:  Can only display the first 1000 members."));
    3434}
    3535
    3636$teamid = get_int("teamid");
     
    4040
    4141$team = BoincTeam::lookup_id($teamid);
    4242
    43 page_head("Members of <a href=team_display.php?teamid=$teamid>$team->name</a>");
     43page_head(tra("Members of %1", "<a href=team_display.php?teamid=$teamid>$team->name</a>"));
    4444display_team_members($team, $offset, $sort_by);
    4545page_tail();
    4646
  • user/team_quit_action.php

     
    2929    user_quit_team($user);
    3030    Header("Location: home.php");
    3131} else {
    32     page_head("Unable to quit team");
    33     echo "Team doesn't exist, or you don't belong to it.\n";
     32    page_head(tra("Unable to quit team"));
     33    echo tra("Team doesn't exist, or you don't belong to it.");
    3434}
    3535
    3636page_tail();
  • user/team_quit_form.php

     
    2525
    2626$team = lookup_team($user->teamid);
    2727if (!$team) {
    28     error_page("No such team");
     28    error_page(tra("No such team"));
    2929}
    3030
    31 page_head("Quit $team->name");
    32 echo "
    33     <b>Please note before quitting a team:</b>
    34     <ul>
    35     <li>If you quit a team, you may rejoin later,
    36     or join any other team you desire
    37     <li>Quitting a team does not affect your personal credit
    38     statistics in any way.
    39     </ul>
    40     </p>
    41     <form method=\"post\" action=\"team_quit_action.php\">";
     31page_head(tra("Quit %1", $team->name));
     32echo tra("<strong>Please note before quitting a team:</strong>
     33         <ul>
     34         <li>If you quit a team, you may rejoin later, or join any other team you desire
     35         <li>Quitting a team does not affect your personal credit statistics in any way.
     36         </ul>")
     37    ."<form method=\"post\" action=\"team_quit_action.php\">";
    4238echo form_tokens($user->authenticator);
    4339echo "<input type=\"hidden\" name=\"id\" value=\"$team->id\">
    44     <input type=\"submit\" value=\"Quit Team\">
     40    <input type=\"submit\" value=\"".tra("Quit Team")."\">
    4541    </form>
    4642";
    4743page_tail();
  • user/team_remove_inactive_action.php

     
    2323$user = get_logged_in_user();
    2424$teamid = post_int("id");
    2525$team = BoincTeam::lookup_id($teamid);
    26 if (!$team) error_page("No such team");
     26if (!$team) error_page(tra("No such team"));
    2727require_founder_login($user, $team);
    2828
    29 page_head("Removing users from $team->name");
     29page_head(tra("Removing users from %1", $team->name));
    3030$ndel = 0;
    3131for ($i=0; $i<$_POST["ninactive_users"]; $i++) {
    3232    $userid = post_int("remove_$i", true);
     
    3434    $user = BoincUser::lookup_id($userid);
    3535    if (!$user) continue;
    3636    if ($user->teamid != $team->id) {
    37         echo "<br>$user->name is not a member of $team->name";
     37        echo "<br />".tra("%1 is not a member of %2", $user->name, $team->name);
    3838    } else {
    3939        user_quit_team($user);
    40         echo "<br>$user->name has been removed";
     40        echo "<br />".tra("%1 has been removed", $user->name);
    4141        $ndel++;
    4242    }
    4343}
  • user/team_remove_inactive_form.php

     
    2727$team = BoincTeam::lookup_id($teamid);
    2828if (!$team) error_page("no such team");
    2929require_admin($logged_in_user, $team);
    30 page_head("Remove members from $team->name");
     30page_head(tra("Remove members from %1", $team->name));
    3131echo "
    3232    <form method=\"post\" action=\"team_remove_inactive_action.php\">
    3333    <input type=\"hidden\" name=\"id\" value=\"".$team->id."\">
    3434";
    3535start_table();
    3636echo "<tr>
    37     <th>Remove?</th>
    38     <th>Name (ID)</th>
    39     <th>Total credit</th>
    40     <th>Recent average credit</th>
     37    <th>".tra("Remove?")."</th>
     38    <th>".tra("Name (ID)")."</th>
     39    <th>".tra("Total credit")."</th>
     40    <th>".tra("Recent average credit")."</th>
    4141    </tr>
    4242";
    4343
     
    6060}
    6161end_table();
    6262if ($ninactive_users == 0) {
    63     echo "<p>No members are eligible for removal.";
     63    echo "<p>".tra("No members are eligible for removal.")."</p>";
    6464} else {
    6565    echo "<input type=hidden name=ninactive_users value=$ninactive_users>";
    66     echo "<input type=submit value=\"Remove users\">";
     66    echo "<input type=submit value=\"".tra("Remove users")."\">";
    6767}
    6868echo "</form>";
    6969page_tail();
  • user/team_search.php

     
    6262    start_table();
    6363    echo "
    6464        <tr>
    65         <th>Team name</th>
    66         <th>Description</th>
    67         <th>Average credit</th>
    68         <th>Type</th>
    69         <th>Country</th>
     65        <th>".tra("Team name")."</th>
     66        <th>".tra("Description")."</th>
     67        <th>".tra("Average credit")."</th>
     68        <th>".tra("Type")."</th>
     69        <th>".tra("Country")."</th>
    7070        </tr>
    7171    ";
    7272    $i = 0;
     
    124124    }
    125125
    126126    if (sizeof($list) == 0) {
    127         echo "
    128             No teams were found matching your criteria.
    129             Try another search.
    130             <p>
    131             Or you can <a href=team_create_form.php>create a new team</a>.
    132             <p>
    133         ";
     127        echo tra("No teams were found matching your criteria. Try another search.")
     128            ."<p>"
     129            .tra("Or you can %1create a new team%2.", "<a href=team_create_form.php>", "</a>")
     130            ."</p>\n";
    134131        team_search_form($params);
    135132    } else {
    136         echo "
    137             The following teams match one or more of your search criteria.
     133        echo tra("The following teams match one or more of your search criteria.
    138134            To join a team, click its name to go to the team page,
    139                then click <b>Join this team</b>.
    140             <p>
     135               then click %1Join this team%2.", "<strong>", "</strong>")
     136            ."<p>
    141137        ";
    142138        sort_list($list);
    143139        show_list($list);
    144         echo "<h2>Change your search</h2>";
     140        echo "<h2>".tra("Change your search")."</h2>";
    145141        team_search_form($params);
    146142    }
    147143}
     
    153149    $params->country = $_GET['country'];
    154150    $params->type = $_GET['type'];
    155151    $params->active = get_str('active', true);
    156     page_head("Team search results");
     152    page_head(tra("Team search results"));
    157153    search($params);
    158154} else {
    159     page_head("Find a team", 'document.form.keywords.focus()');
    160     echo "
    161         You can team up with other people with similar interests,
    162         or from the same country, company, or school.
    163         <p>
    164         Use this form to find teams that might be right for you.
    165         <p>
    166     ";
     155    page_head(tra("Find a team"), 'document.form.keywords.focus()');
     156    echo tra("You can team up with other people with similar interests, or from the same country, company, or school.")
     157        ."<p>"
     158        .tra("Use this form to find teams that might be right for you.")
     159        ."</p>\n";
    167160    team_search_form($params);
    168161    if (isset($_COOKIE['init'])) {
    169         echo "
    170             <p>
    171             <a href=home.php>Click here</a>
    172             if you're not interested in joining a team right now.
    173         ";
     162        echo "<p>
     163            ".tra("%1I'm not interested%2 in joining a team right now.", "<a href=home.php>", "</a>");
    174164    }
    175165}
    176166page_tail();