From c11967a9df72685749aa075378a85441001307b2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 31 Mar 2009 15:20:48 +0000 Subject: [PATCH] Add missing i18n calls to winners page --- winners.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/winners.php b/winners.php index cd8ec87..4c09389 100644 --- a/winners.php +++ b/winners.php @@ -78,7 +78,7 @@ if($_GET['year'] && $_GET['type']) echo "
"; while($r=mysql_fetch_object($q)) { - echo "

$r->name

\n"; + echo "

".i18n($r->name)."

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