Ticket #1009: leftover-i18n.diff
File leftover-i18n.diff, 6.5 KB (added by , 14 years ago) |
---|
-
show_host_detail.php
26 26 $hostid = get_int("hostid"); 27 27 $ipprivate = get_str("ipprivate", true); 28 28 $host = BoincHost::lookup_id($hostid); 29 if (!$host) { 30 echo "Couldn't find computer"; 31 exit(); 32 } 29 if (!$host) error_page(tra("Couldn't find computer - please check the ID and try again")); 33 30 34 31 $user = get_logged_in_user(false); 35 32 if ($user->id != $host->userid) { 36 33 $user = null; 37 34 } 38 35 39 page_head( "Computer $hostid");36 page_head(tra("Computer %1", $hostid)); 40 37 show_host($host, $user, $ipprivate); 41 38 page_tail(); 42 39 -
sample_index.php
22 22 require_once("../inc/cache.inc"); 23 23 require_once("../inc/uotd.inc"); 24 24 require_once("../inc/sanitize_html.inc"); 25 require_once("../inc/translation.inc");26 25 require_once("../inc/text_transform.inc"); 27 26 require_once("../project/project.inc"); 28 27 -
show_coproc.php
17 17 18 18 function title($mode) { 19 19 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"); 25 25 } 26 26 } 27 27 … … 29 29 echo "<tr><th>"; 30 30 switch ($mode) { 31 31 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>"); 33 33 break; 34 34 case 'user': 35 echo "User";35 echo tra("User"); 36 36 break; 37 37 case 'team': 38 echo "Team";38 echo tra("Team"); 39 39 break; 40 40 case 'model': 41 echo "Model";41 echo tra("Model"); 42 42 break; 43 43 case 'day': 44 echo "Date";44 echo tra("Date"); 45 45 break; 46 46 } 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"; 48 48 } 49 49 50 50 function show_row($x, $y, $mode, $i) { … … 63 63 if ($team) { 64 64 echo "<a href=team_display.php?teamid=$x>$team->name</a>"; 65 65 } else { 66 echo "(no team)";66 echo tra("(no team)"); 67 67 } 68 68 break; 69 69 case 'model': … … 78 78 79 79 $mode = get_str('mode', true); 80 80 if (!$mode) { 81 page_head( "Show GPU info");81 page_head(tra("Show CoProc info")); 82 82 echo " 83 83 <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> 89 89 </ul> 90 90 "; 91 91 page_tail(); -
show_user.php
80 80 set_cache_data(serialize($data), $cache_args); 81 81 } 82 82 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.")); 84 84 } 85 85 86 86 $logged_in_user = get_logged_in_user(false); -
profile_search_action.php
31 31 if (!$offset) $offset=0; 32 32 $count = 10; 33 33 34 page_head( "Profiles containing '$search_string'");34 page_head(tra("Profiles containing '%1'", $search_string)); 35 35 $profiles = BoincProfile::enum("match(response1, response2) against ('$search_string') limit $offset,$count"); 36 36 start_table(); 37 37 echo " 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> 43 43 "; 44 44 $n = 0; 45 45 foreach($profiles as $profile) { … … 49 49 end_table(); 50 50 51 51 if ($offset==0 && $n==0) { 52 echo "No profiles found containing '$search_string'";52 echo tra("No profiles found containing '%1'", $search_string); 53 53 } 54 54 55 55 if ($n==$count) { 56 56 $s = urlencode($search_string); 57 57 $offset += $count; 58 58 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> 60 60 "; 61 61 62 62 } -
team.php
20 20 include_once("../inc/util.inc"); 21 21 include_once("../inc/team.inc"); 22 22 23 page_head( "Teams");23 page_head(tra("Teams")); 24 24 25 echo "<p>".tra("%1 participants may form %2teams%3", PROJECT, "< b>", "</b>") ."25 echo "<p>".tra("%1 participants may form %2teams%3", PROJECT, "<strong>", "</strong>") ." 26 26 <p> 27 27 ". tra("You may belong to only one team. You can join or quit a team at any time."). " 28 28 <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>") . " 30 30 <ul> 31 31 <li> " . tra("access team members' email addresses") . " 32 32 <li> " . tra("edit the team's name and description") . " 33 <li> " . tra("add or remove team admins") . " 33 34 <li> " . tra("remove members from the team") . " 34 35 <li> " . tra("disband a team if it has no members") . " 35 36 </ul>