Fix some missing tranaslations on the special awards signup page

This commit is contained in:
james 2011-03-10 16:01:24 +00:00
parent 369542ecde
commit 4a6f9d0e4e

View File

@ -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.<hr>",
'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.")."<hr>",
'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 "<input onclick=\"checkboxclicked(this)\" $ch type=\"checkbox\" name=\"spaward[]\" value=\"".$eaward['id']."\" />";
echo "</td><td>";
echo "<b>".$eaward['name']."</b>";
echo "<b>".i18n($eaward['name'])."</b>";
echo "</td></tr>";
echo "<tr><td>";
echo $eaward['criteria'];
echo i18n($eaward['criteria']);
if($eaward['id'] != -1) echo '<br /><br />';
echo "</td></tr>";
}