- web: fixed bugs in Bulgarian translation file

svn path=/trunk/boinc/; revision=14916
This commit is contained in:
David Anderson 2008-03-14 21:40:18 +00:00
parent aefe4ee18b
commit 32022aa71e
6 changed files with 56 additions and 8 deletions

View File

@ -2387,3 +2387,11 @@ David Mar 14 2008
lib/
app_ipc.C,h
David Mar 14 2008
- web: fixed bugs in Bulgarian translation file
html/inc/
translation.inc
languages/translations/
bg.po

View File

@ -212,4 +212,18 @@ function show_link($url) {
echo "<br><a href=$url>$url</a>";
}
function parse_element($xml, $tag) {
$element = null;
$closetag = "</" . substr($tag,1);
$x = strstr($xml, $tag);
if ($x) {
if (strstr($tag, "/>")) return $tag;
$y = substr($x, strlen($tag));
$n = strpos($y, $closetag);
if ($n) {
$element = substr($y, 0, $n);
}
}
return trim($element);
}
?>

View File

@ -20,7 +20,7 @@ function show_participant() {
<table cellpadding=8>
<tr><td class=fieldname>
<center>
<span class=section_title>Featured volunteer</span>
<span class=section_title>Computing power</span>
<br>
<a class=heading href=chart_list.php><b>Top 100</a>
&middot; <a class=heading href=http://boinc.netsoft-online.com/e107_plugins/boinc/u_rank.php?list=tc_p1c1><b>Single-computer</a>
@ -29,10 +29,34 @@ function show_participant() {
</td></tr>
<tr><td>
";
show_totals();
include("piecharts/$i.html");
echo "</td></tr></table>";
}
function show_totals() {
$fn = "boinc_state.xml";
if (!file_exists($fn) || filemtime($fn) < time()-86400) {
$x = file_get_contents("http://www.boincstats.com/xml/boinc_state.php");
if ($x) {
$f = fopen($fn, "w");
fwrite($f, $x);
} else return;
}
$x = file_get_contents($fn);
$users = parse_element($x, "<participants_active>");
$hosts = parse_element($x, "<hosts_active>");
$credit_day = parse_element($x, "<credit_day>");
$users = number_format($users);
$hosts = number_format($hosts);
$teraflops = number_format($credit_day/100000, 2);
echo "Active: $users volunteers, $hosts computers.
<br>Average: $teraflops TeraFLOPS over last 24 hours.
<hr size=1 width=80%>
";
}
function show_news_items() {
require_once("boinc_news.php");
require_once("../html/inc/news.inc");

View File

@ -37,8 +37,8 @@ $biomed = array(
),
array(
"Predictor@home",
"http://predictor.scripps.edu/",
"Scripps Research Institute",
"http://predictor.chem.lsa.umich.edu/",
"University of Michigan",
"Biology",
"Protein structure prediction starts from a sequence of amino acids and attempts to predict the folded, functioning, form of the protein. Predicting the structure of an unknown protein is a critical problem in enabling structure-based drug design to treat new and existing diseases.",
"predictor.jpg"

View File

@ -416,7 +416,9 @@ function language_log($message, $loglevel=0){
}
}
if (languagesNeedsRebuild($lang_language_dir, $lang_translations_dir, $lang_prj_translations_dir, $lang_compiled_dir) || get_str("compile_languages",true)){
$compile_languages = false;
if (isset($_GET['compile_languages'])) $compile_languages = true;
if (languagesNeedsRebuild($lang_language_dir, $lang_translations_dir, $lang_prj_translations_dir, $lang_compiled_dir) || $compile_languages){
buildLanguages($lang_language_dir,$lang_translations_dir,$lang_prj_translations_dir, $lang_compiled_dir);
}

View File

@ -117,10 +117,10 @@ msgid "POLL_FNETWORK"
msgstr "имах проблеми с мрежовата връзка"
msgid "POLL_FATTACH"
msgstr "не можах да се "прикача" към проект"
msgstr "не можах да се прикача към проект"
msgid "POLL_FWORK"
msgstr ""прикачих" се към проект, но така и не получих работа"
msgstr "прикачих се към проект, но така и не получих работа"
msgid "POLL_NEVER"
msgstr "Не - никога не съм използвал/а/ BOINC, защото..."
@ -192,7 +192,7 @@ msgid "POLL_WPERS"
msgstr "приятели, роднини, или колеги"
msgid "POLL_WTEAM"
msgstr "форуми или "дъски за съобщения""
msgstr "форуми или дъски за съобщения"
msgid "POLL_WBOINC"
msgstr "официалния BOINC уеб-сайт"
@ -213,7 +213,7 @@ msgid "POLL_CREDIT_MORE"
msgstr "получаването на повече кредит в дадения проект спрямо останалите"
msgid "POLL_MB_FRIENDLY"
msgstr "полезни и добре организирани "дъски за съобщения"/форуми"
msgstr "полезни и добре организирани дъски за съобщения/форуми"
msgid "POLL_MB_STAFF"
msgstr "участието на хора от проекта във форумите"