Add missing i18n calls to winners page

This commit is contained in:
james 2009-03-31 15:20:48 +00:00
parent e2b78cc707
commit c11967a9df

View File

@ -78,7 +78,7 @@ if($_GET['year'] && $_GET['type'])
echo "<br />"; echo "<br />";
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
echo "<h3>$r->name</h3> \n"; echo "<h3>".i18n($r->name)."</h3> \n";
$pq=mysql_query("SELECT $pq=mysql_query("SELECT
award_prizes.prize, award_prizes.prize,
@ -108,16 +108,16 @@ if($_GET['year'] && $_GET['type'])
echo "&nbsp;"; echo "&nbsp;";
echo "&nbsp;"; echo "&nbsp;";
echo "<b>"; echo "<b>";
echo "$pr->prize"; echo i18n($pr->prize);
if(($pr->cash || $pr->scholarship) && $config['winners_show_prize_amounts'] == 'yes') if(($pr->cash || $pr->scholarship) && $config['winners_show_prize_amounts'] == 'yes')
{ {
echo " ("; echo " (";
if($pr->cash && $pr->scholarship) if($pr->cash && $pr->scholarship)
echo "\$$pr->cash cash / \$$pr->scholarship scholarship"; echo i18n("\$%1 cash / \$%2 scholarship",array($pr->cash,$pr->scholarship),array("Cash dollar value","Scholarship dollar value"));
else if($pr->cash) else if($pr->cash)
echo "\$$pr->cash cash"; echo i18n("\$%1 cash",array($pr->cash),array("Cash dollar value"));
else if($pr->scholarship) else if($pr->scholarship)
echo "\$$pr->scholarship scholarship"; echo i18n("\$%1 scholarship",array($pr->scholarship),array("Scholarship dollar value"));
echo ")"; echo ")";
} }
@ -172,20 +172,20 @@ if($_GET['year'] && $_GET['type'])
echo "&nbsp&nbsp;&nbsp;&nbsp;"; echo "&nbsp&nbsp;&nbsp;&nbsp;";
echo "&nbsp&nbsp;&nbsp;&nbsp;"; echo "&nbsp&nbsp;&nbsp;&nbsp;";
if($studnum > 1) if($studnum > 1)
echo "Students: $students"; echo i18n("Students").": $students";
else else
echo "Student: $students"; echo i18n("Student").": $students";
echo "<br />"; echo "<br />";
echo "&nbsp&nbsp;&nbsp;&nbsp;"; echo "&nbsp&nbsp;&nbsp;&nbsp;";
echo "&nbsp&nbsp;&nbsp;&nbsp;"; echo "&nbsp&nbsp;&nbsp;&nbsp;";
echo "School: $school"; echo i18n("School").": $school";
echo "<br />"; echo "<br />";
} }
else else
{ {
echo "&nbsp&nbsp;&nbsp;&nbsp;"; echo "&nbsp&nbsp;&nbsp;&nbsp;";
echo "Prize not awarded"; echo i18n("Prize not awarded");
echo "<br />"; echo "<br />";
} }
echo "<br />"; echo "<br />";