Ticket #1009: leftover-i18n.diff

File leftover-i18n.diff, 6.5 KB (added by Christian Beer, 14 years ago)

some leftover translatable files

  • show_host_detail.php

     
    2626$hostid = get_int("hostid");
    2727$ipprivate = get_str("ipprivate", true);
    2828$host = BoincHost::lookup_id($hostid);
    29 if (!$host) {
    30     echo "Couldn't find computer";
    31     exit();
    32 }
     29if (!$host) error_page(tra("Couldn't find computer - please check the ID and try again"));
    3330
    3431$user = get_logged_in_user(false);
    3532if ($user->id != $host->userid) {
    3633    $user = null;
    3734}
    3835
    39 page_head("Computer $hostid");
     36page_head(tra("Computer %1", $hostid));
    4037show_host($host, $user, $ipprivate);
    4138page_tail();
    4239
  • sample_index.php

     
    2222require_once("../inc/cache.inc");
    2323require_once("../inc/uotd.inc");
    2424require_once("../inc/sanitize_html.inc");
    25 require_once("../inc/translation.inc");
    2625require_once("../inc/text_transform.inc");
    2726require_once("../project/project.inc");
    2827
  • show_coproc.php

     
    1717
    1818function title($mode) {
    1919    switch ($mode) {
    20     case 'host': return "Top CUDA hosts";
    21     case 'user': return "Top CUDA users";
    22     case 'team': return "Top CUDA teams";
    23     case 'model': return "Top CUDA models";
    24     case 'day': return "Daily CUDA credit";
     20    case 'host': return tra("Top CoProc hosts");
     21    case 'user': return tra("Top CoProc users");
     22    case 'team': return tra("Top CoProc teams");
     23    case 'model': return tra("Top CoProc models");
     24    case 'day': return tra("Daily CoProc credit");
    2525    }
    2626}
    2727
     
    2929    echo "<tr><th>";
    3030    switch ($mode) {
    3131    case 'host':
    32         echo "Computer ID<br><span class=note>click for details</span>";
     32        echo tra("Computer ID %1click for details%2", "<br><span class=note>", "</span>");
    3333        break;
    3434    case 'user':
    35         echo "User";
     35        echo tra("User");
    3636        break;
    3737    case 'team':
    38         echo "Team";
     38        echo tra("Team");
    3939        break;
    4040    case 'model':
    41         echo "Model";
     41        echo tra("Model");
    4242        break;
    4343    case 'day':
    44         echo "Date";
     44        echo tra("Date");
    4545        break;
    4646    }
    47     echo "</th><th>CUDA Credit</th><th>Number of CUDA jobs</th></tr>\n";
     47    echo "</th><th>".tra("CoProc Credit")."</th><th>".tra("Number of CoProc jobs")."</th></tr>\n";
    4848}
    4949
    5050function show_row($x, $y, $mode, $i) {
     
    6363        if ($team) {
    6464            echo "<a href=team_display.php?teamid=$x>$team->name</a>";
    6565        } else {
    66             echo "(no team)";
     66            echo tra("(no team)");
    6767        }
    6868        break;
    6969    case 'model':
     
    7878
    7979$mode = get_str('mode', true);
    8080if (!$mode) {
    81     page_head("Show GPU info");
     81    page_head(tra("Show CoProc info"));
    8282    echo "
    8383        <ul>
    84         <li> <a href=show_coproc.php?mode=host>Hosts</a>
    85         <li> <a href=show_coproc.php?mode=user>Users</a>
    86         <li> <a href=show_coproc.php?mode=team>Teams</a>
    87         <li> <a href=show_coproc.php?mode=model>GPU models</a>
    88         <li> <a href=show_coproc.php?mode=day>Day</a>
     84        <li> <a href=show_coproc.php?mode=host>".tra("Hosts")."</a>
     85        <li> <a href=show_coproc.php?mode=user>".tra("Users<")."/a>
     86        <li> <a href=show_coproc.php?mode=team>".tra("Teams")."</a>
     87        <li> <a href=show_coproc.php?mode=model>".tra("CoProc models")."</a>
     88        <li> <a href=show_coproc.php?mode=day>".tra("Day")."</a>
    8989        </ul>
    9090    ";
    9191    page_tail();
  • show_user.php

     
    8080        set_cache_data(serialize($data), $cache_args);
    8181    }
    8282    if (!$user->id) {
    83         error_page("No such user found - please check the ID and try again.");
     83        error_page(tra("No such user found - please check the ID and try again."));
    8484    }
    8585
    8686    $logged_in_user = get_logged_in_user(false);
  • profile_search_action.php

     
    3131if (!$offset) $offset=0;
    3232$count = 10;
    3333
    34 page_head("Profiles containing '$search_string'");
     34page_head(tra("Profiles containing '%1'", $search_string));
    3535$profiles = BoincProfile::enum("match(response1, response2) against ('$search_string') limit $offset,$count");
    3636start_table();
    3737echo "
    38     <tr><th>User name</th>
    39     <th>Joined project</th>
    40     <th>Country</th>
    41     <th>Total credit</th>
    42     <th>Recent credit</th></tr>
     38    <tr><th>".tra("User name")."</th>
     39    <th>".tra("Joined project")."</th>
     40    <th>".tra("Country")."</th>
     41    <th>".tra("Total credit")."</th>
     42    <th>".tra("Recent credit")."</th></tr>
    4343";
    4444$n = 0;
    4545foreach($profiles as $profile) {
     
    4949end_table();
    5050
    5151if ($offset==0 && $n==0) {
    52     echo "No profiles found containing '$search_string'";
     52    echo tra("No profiles found containing '%1'", $search_string);
    5353}
    5454
    5555if ($n==$count) {
    5656    $s = urlencode($search_string);
    5757    $offset += $count;
    5858    echo "
    59         <a href=profile_search_action.php?search_string=$s&offset=$offset>Next $count</a>
     59        <a href=profile_search_action.php?search_string=$s&offset=$offset>".tra("Next %1", $count)."</a>
    6060    ";
    6161
    6262}
  • team.php

     
    2020include_once("../inc/util.inc");
    2121include_once("../inc/team.inc");
    2222
    23 page_head("Teams");
     23page_head(tra("Teams"));
    2424
    25 echo "<p>".tra("%1 participants may form %2teams%3", PROJECT, "<b>", "</b>") ."
     25echo "<p>".tra("%1 participants may form %2teams%3", PROJECT, "<strong>", "</strong>") ."
    2626    <p>
    2727    ". tra("You may belong to only one team. You can join or quit a team at any time."). "
    2828    <p>" .
    29     tra("Each team has a %1founder%2 who may:", "<b>", "</b>") . "
     29    tra("Each team has a %1founder%2 who may:", "<strong>", "</strong>") . "
    3030    <ul>
    3131    <li> " . tra("access team members' email addresses") . "
    3232    <li> " . tra("edit the team's name and description") . "
     33    <li> " . tra("add or remove team admins") . "
    3334    <li> " . tra("remove members from the team") . "
    3435    <li> " . tra("disband a team if it has no members") . "
    3536    </ul>