diff --git a/html/inc/stats_sites.inc b/html/inc/stats_sites.inc
index 51323917ad..891afbd967 100644
--- a/html/inc/stats_sites.inc
+++ b/html/inc/stats_sites.inc
@@ -8,16 +8,16 @@ $cpid_stats_sites = array(
"http://www.allprojectstats.com/showuser.php?id=%s"
),
array("BOINCstats",
- "http://www.boincstats.com/stats/boinc_user_graph.php?pr=bo&id=%s"
+ "http://www.boincstats.com/stats/boinc_user_graph.php?pr=bo&id=%s"
),
array("BOINC Statistics for the WORLD!",
"http://www.boincsynergy.com/stats/boinc-individual.php?cpid=%s"
),
array("BOINC Combined Statistics",
- "http://boinc.netsoft-online.com/e107_plugins/boinc/get_user.php?cpid=%s&html=1"
+ "http://boinc.netsoft-online.com/e107_plugins/boinc/get_user.php?cpid=%s&html=1"
),
array("The Knights Who Say 'Ni!'",
- "http://stats.kwsn.net/user.php?proj=all&cpid=%s"
+ "http://stats.kwsn.net/user.php?proj=all&cpid=%s"
),
array("Team Starfire World BOINC Stats 'N Stones",
"http://statsnstones.tswb.org/userdetail.aspx?cpid=%s"
diff --git a/html/inc/user.inc b/html/inc/user.inc
index db41670aea..bb4b7d9251 100644
--- a/html/inc/user.inc
+++ b/html/inc/user.inc
@@ -123,29 +123,29 @@ require_once("../inc/stats_sites.inc");
//
function show_user_stats_private($user) {
global $cpid_stats_sites;
- row1("Work done");
- row2(PROJECT." member since", date_str($user->create_time));
+ row1(tra("Work done"));
+ row2(tra("%1 member since", PROJECT), date_str($user->create_time));
show_credit($user);
$config = get_config();
if (parse_bool($config, "show_results")) {
- row2("Pending credit", "View");
+ row2(tra("Pending credit"), "".tra("View")."");
}
- row2("Computers on this account",
- "View"
+ row2(tra("Computers on this account"),
+ "".tra("View").""
);
- row2("Tasks", "id>View");
+ row2(tra("Tasks"), "id\">".tra("View")."");
$cpid = md5($user->cross_project_id . $user->email_addr);
$x = "";
shuffle($cpid_stats_sites);
foreach ($cpid_stats_sites as $site) {
$name = $site[0];
$y = sprintf($site[1], $cpid);
- $x .= "$name
";
+ $x .= "$name
";
}
- $x .= "
Cross-project ID: $cpid\n";
- row2("Cross-project statistics", $x);
- row2("Stats on your cell phone", URL_BASE."/userw.php?id=$user->id");
- row2("Account number
Used in URLs", $user->id);
+ $x .= "
".tra("Cross-project ID").": $cpid\n";
+ row2(tra("Cross-project statistics"), $x);
+ row2(tra("Stats on your cell phone"), URL_BASE."userw.php?id=$user->id");
+ row2(tra("Account number")."
".tra("Used in URLs")."", $user->id);
}
// show static user info (private)
@@ -157,65 +157,65 @@ function show_user_info_private($user) {
$email_text = "Verification pending";
}
- row1("Account information");
- row2("Email address
", $email_text);
- row2("Name", $user->name);
+ row1(tra("Account information"));
+ row2(tra("Email address"), $email_text);
+ row2(tra("Name"), $user->name);
if (strlen($user->url)) {
$x = "http://$user->url";
} else {
$x = "none";
}
- row2("URL", $x);
- row2("Country", $user->country);
- row2("Postal code", $user->postal_code);
- row2("Change", "email address | password | other account info");
- row2("", "authenticator).">Log out");
+ row2(tra("URL"), $x);
+ row2(tra("Country"), $user->country);
+ row2(tra("Postal code"), $user->postal_code);
+ row2(tra("Change"), "".tra("email address")." | ".tra("password")." | ".tra("other account info")."");
+ row2("", "authenticator)."\">".tra("Log out")."");
- row1("Community");
+ row1(tra("Community"));
if ($user->has_profile) {
- $x = "id>View or edit | Delete";
+ $x = "id\">".tra("View or edit")." | ".tra("Delete")."";
} else {
- $x = "Create";
+ $x = "".tra("Create")."";
}
- row2("Profile", $x);
+ row2(tra("Profile"), $x);
$tot = total_posts($user);
if ($tot) {
- row2("Message boards", "id>$tot posts");
+ row2(tra("Message boards"), "id>".tra("%1 posts", $tot)."");
}
- row2("Private messages", pm_notification($user));
+ row2(tra("Private messages"), pm_notification($user));
- row1("Teams");
+ row1(tra("Teams"));
if ($user->teamid) {
$team = lookup_team($user->teamid);
- $x = "id>$team->name
- | Quit team";
+ $x = "id\">$team->name
+ | ".tra("Quit team")."";
if ($team->userid == $user->id) {
- $x .= " | management functions";
+ $x .= " | ".tra("management functions")."";
}
- row2("Team", $x);
+ row2(tra("Team"), $x);
} else {
- row2("Team", "None (find a team)");
+ row2(tra("Team"), tra("None")." | ".tra("find a team")."");
}
$teams_founded = BoincTeam::enum("userid=$user->id");
foreach ($teams_founded as $team) {
if ($team->id != $user->teamid) {
- row2("founder but not member of", "id>$team->name | id."\">management functions");
+ row2(tra("Founder but not member of"), "id\">$team->name | id."\">".tra("management functions")."");
}
}
- row1("Preferences");
+ row1("".tra("Preferences"));
row2(
- "General preferences
specify when and how BOINC uses your computer",
- "View or edit"
+ tra("General preferences")."
".tra("specify when and how BOINC uses your computer")."",
+ "".tra("View or edit").""
);
- row2(PROJECT." preferences
control resource share and customize graphics",
- "View or edit"
+ row2(tra("%1 preferences", PROJECT)."
".tra("control resource share and customize graphics")."",
+ "".tra("View or edit").""
);
- row2("Message board preferences
configure features and appearance of message boards",
- "View or edit"
+ row2(tra("Message board preferences")."
".tra("configure features and appearance of message boards")."",
+ "".tra("View or edit").""
);
}
@@ -267,7 +267,7 @@ function show_profile_link($user) {
function show_user_page_private($user) {
$config = get_config();
- start_table("width=100%");
+ start_table("width=\"100%\"");
show_user_info_private($user);
show_user_stats_private($user);
diff --git a/html/inc/util.inc b/html/inc/util.inc
index a4fddc82ca..f55eafe580 100644
--- a/html/inc/util.inc
+++ b/html/inc/util.inc
@@ -265,7 +265,7 @@ function table_row() {
}
function row1($x, $ncols=2, $class="heading") {
- echo "
- View and edit your account preferences using the links below. - "; + page_head(tra("Welcome to %1", PROJECT); + echo "
".tra("View and edit your account preferences using the links below.")."
\n"; if ($via_web) { - setcookie('via_web', '', time()-3600); echo "If you have not already done so, - download BOINC client software. + download BOINC client software.
"; } } else { page_head("Your account"); } -echo "\n"; - show_user_page_private($user); show_other_projects($user, true); project_user_page_private($user);