From 4a6f9d0e4e592fe9c96181d86858237c2aec9b73 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 10 Mar 2011 16:01:24 +0000 Subject: [PATCH] Fix some missing tranaslations on the special awards signup page --- register_participants_spawards.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/register_participants_spawards.php b/register_participants_spawards.php index 166a8f9..5e6fef6 100644 --- a/register_participants_spawards.php +++ b/register_participants_spawards.php @@ -27,13 +27,11 @@ include "projects.inc.php"; //authenticate based on email address and registration number from the SESSION - if(!$_SESSION['email']) - { + if(!$_SESSION['email']) { header("Location: register_participants.php"); exit; } - if(!$_SESSION['registration_number']) - { + if(!$_SESSION['registration_number']) { header("Location: register_participants.php"); exit; } @@ -47,8 +45,7 @@ "AND students.year=".$config['FAIRYEAR']); echo mysql_error(); - if(mysql_num_rows($q)==0) - { + if(mysql_num_rows($q)==0) { header("Location: register_participants.php"); exit; @@ -171,8 +168,8 @@ else if($newstatus=="complete") $nominatedawards=getSpecialAwardsNominatedForProject($project->id); $eligibleawards = array_merge(array(array( 'id'=> -1, - 'name' => "I do not wish to self-nominate for any special awards", - 'criteria' => "Select this option if you do not wish to self-nominate you project for any special awards.
", + 'name' => i18n("I do not wish to self-nominate for any special awards"), + 'criteria' => i18n("Select this option if you do not wish to self-nominate you project for any special awards.")."
", 'self_nominate' => 'yes')), $eligibleawards); /* See if they have the -1 award selected */ @@ -202,10 +199,10 @@ else if($newstatus=="complete") if(in_array($eaward['id'],$nominatedawards_list)) $ch="checked=\"checked\""; else $ch=""; echo ""; echo ""; - echo "".$eaward['name'].""; + echo "".i18n($eaward['name']).""; echo ""; echo ""; - echo $eaward['criteria']; + echo i18n($eaward['criteria']); if($eaward['id'] != -1) echo '

'; echo ""; }