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 "$x\n"; + echo "$x\n"; } function row2($x, $y, $show_error=false) { @@ -278,11 +278,11 @@ function row2($x, $y, $show_error=false) { $class1 = 'fieldname'; $class2 = 'fieldvalue'; } - echo "$x$y\n"; + echo "$x$y\n"; } function row2_init($x, $y) { - echo "$x$y\n"; + echo "$x$y\n"; } function row2_plain($x, $y) { @@ -326,14 +326,14 @@ function random_string() { function url_tokens($auth) { $now = time(); $ttok = md5((string)$now.$auth); - return "&tnow=$now&ttok=$ttok"; + return "&tnow=$now&ttok=$ttok"; } function form_tokens($auth) { $now = time(); $ttok = md5((string)$now.$auth); - return " - + return " + "; } diff --git a/html/languages/translations/en.po b/html/languages/translations/en.po index 77de6e9d42..de8d42af35 100644 --- a/html/languages/translations/en.po +++ b/html/languages/translations/en.po @@ -479,3 +479,136 @@ msgstr "" msgid "LINKS_QA" msgstr "Questions and Answers" + +######################################### +# "Your account" page (home.php) +######################################### + +msgid "Your account" +msgstr "" + +msgid "Welcome to %1" +msgstr "" + +msgid "View and edit your account preferences using the links below." +msgstr "" + +msgid "If you have not already done so, %1download BOINC client software%2." +msgstr "" + +msgid "Account information" +msgstr "" + +msgid "Email address" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "URL" +msgstr "" + +msgid "Country" +msgstr "" + +msgid "Postal code" +msgstr "" + +msgid "Change" +msgstr "" + +msgid "email address" +msgstr "" + +msgid "password" +msgstr "" + +msgid "other account info" +msgstr "" + +msgid "Log out" +msgstr "" + +msgid "Community" +msgstr "" + +msgid "Create" +msgstr "" + +msgid "Profile" +msgstr "" + +msgid "Teams" +msgstr "" + +msgid "Team" +msgstr "" + +msgid "None" +msgstr "" + +msgid "management functions" +msgstr "" + +msgid "Quit team" +msgstr "" + +msgid "find a team" +msgstr "" + +msgid "Preferences" +msgstr "" + +msgid "General preferences" +msgstr "" + +msgid "specify when and how BOINC uses your computer" +msgstr "" + +msgid "View or edit" +msgstr "" + +msgid "%1 preferences" +msgstr "" + +msgid "control resource share and customize graphics" +msgstr "" + +msgid "Message board preferences" +msgstr "" + +msgid "configure features and appearance of message boards" +msgstr "" + +msgid "Work done" +msgstr "" + +msgid "%1 member since" +msgstr "" + +msgid "Pending credit" +msgstr "" + +msgid "View" +msgstr "" + +msgid "Computers on this account" +msgstr "" + +msgid "Tasks" +msgstr "" + +msgid "Cross-project ID" +msgstr "" + +msgid "Cross-project statistics" +msgstr "" + +msgid "Stats on your cell phone" +msgstr "" + +msgid "Account number" +msgstr "" + +msgid "Used in URLs" +msgstr "" diff --git a/html/languages/translations/lt.po b/html/languages/translations/lt.po index 8651530b5d..879e1cb7fa 100644 --- a/html/languages/translations/lt.po +++ b/html/languages/translations/lt.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2007-09-12 17:28+0200\n" +"PO-Revision-Date: 2007-10-30 21:31+0200\n" "Last-Translator: Rytis Slatkevičius \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -464,9 +464,153 @@ msgstr "Atsakyti" msgid "Block user" msgstr "Blokuoti vartotoją" +msgid "With selected" +msgstr "Su pasirinktais" + +msgid "Mark as read" +msgstr "Pažymėti kaip perskaitytus" + +msgid "Mark as unread" +msgstr "Pažymėti kaip neskaitytus" + # ######################################## # Links from the main page # ######################################## msgid "LINKS_QA" msgstr "Klausimai ir Atsakymai" +# ######################################## +# "Your account" page (home.php) +# ######################################## +msgid "Your account" +msgstr "Jūsų abonementas" + +msgid "Welcome to %1" +msgstr "Sveiki prisijungę prie %1" + +msgid "View and edit your account preferences using the links below." +msgstr "Peržiūrėkite ir keiskite abonemento nustatymus naudodamiesi nuorodomis žemiau." + +msgid "If you have not already done so, %1download BOINC client software%2." +msgstr "Jei to dar nepadarėte, %1parsisiųskite BOINC programinę įrangą%2." + +msgid "Account information" +msgstr "Abonemento informacija" + +msgid "Email address" +msgstr "El. pašto adresas" + +msgid "Name" +msgstr "Vardas" + +msgid "URL" +msgstr "Tinklapis" + +msgid "Country" +msgstr "Valstybė" + +msgid "Postal code" +msgstr "Pašto kodas" + +msgid "Change" +msgstr "Pakeisti" + +msgid "email address" +msgstr "el. pašto adresą" + +msgid "password" +msgstr "slaptažodį" + +# ######################################## +# "Your account" page (home.php) +# ######################################## +msgid "other account info" +msgstr "kitą abonemento informaciją" + +msgid "Log out" +msgstr "Atsijungti" + +msgid "Community" +msgstr "Bendruomenė" + +msgid "Create" +msgstr "Sukurti" + +msgid "Profile" +msgstr "Aprašymas" + +msgid "Teams" +msgstr "Komandos" + +msgid "Team" +msgstr "Komanda" + +msgid "None" +msgstr "Nėra" + +msgid "management functions" +msgstr "valdymo funkcijos" + +msgid "Quit team" +msgstr "Palikti komandą" + +msgid "find a team" +msgstr "raskite komandą" + +msgid "Preferences" +msgstr "Nustatymai" + +msgid "General preferences" +msgstr "Bendrieji nustatymai" + +msgid "specify when and how BOINC uses your computer" +msgstr "nurodykite, kada ir kaip BOINC naudos jūsų kompiuterį" + +msgid "View or edit" +msgstr "Peržiūrėti arba pakeisti" + +msgid "%1 preferences" +msgstr "%1 nustatymai" + +msgid "control resource share and customize graphics" +msgstr "valdykite resursų padalijimą ir keiskite grafikos nustatymus" + +msgid "Message board preferences" +msgstr "Diskusijų lentos nustatymai" + +msgid "configure features and appearance of message boards" +msgstr "nustatykite diskusijų lentos funkcijas ir išvaizdą" + +msgid "Work done" +msgstr "Atlikta darbo" + +msgid "%1 member since" +msgstr "%1 narys nuo" + +msgid "Pending credit" +msgstr "Laukiamas kreditas" + +msgid "View" +msgstr "Peržiūrėti" + +msgid "Computers on this account" +msgstr "Abonementui priskirti kompiuteriai" + +msgid "Tasks" +msgstr "Užduotys" + +msgid "Cross-project ID" +msgstr "Tarpprojektinis ID" + +msgid "Cross-project statistics" +msgstr "Tarpprojektinė statistika" + +msgid "Stats on your cell phone" +msgstr "Statistika mobiliajame telefone" + +msgid "Account number" +msgstr "Abonemento numeris" + +msgid "Used in URLs" +msgstr "Naudojamas internetiniuose adresuose" + diff --git a/html/user/home.php b/html/user/home.php index 4136320c90..18955e04e0 100644 --- a/html/user/home.php +++ b/html/user/home.php @@ -14,27 +14,24 @@ $user = get_other_projects($user); $init = isset($_COOKIE['init']); $via_web = isset($_COOKIE['via_web']); +if ($via_web) { + setcookie('via_web', '', time()-3600); +} if ($init) { setcookie('init', '', time()-3600); - page_head("Welcome to ".PROJECT); - 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);