Add a bunch of missing i18n()'s

This commit is contained in:
james 2008-10-06 19:09:00 +00:00
parent f569ed3e13
commit b3bfb560f9
4 changed files with 20 additions and 20 deletions

View File

@ -217,24 +217,24 @@
} }
echo "<br />"; echo "<br />";
echo "<a href=\"schools.php?action=add\">Add New School</a>\n"; echo "<a href=\"schools.php?action=add\">".i18n("Add new school")."</a>\n";
echo "<br />"; echo "<br />";
echo "<a href=\"schoolsimport.php?action=add\">Import Schools from CSV</a>\n"; echo "<a href=\"schoolsimport.php?action=add\">".i18n("Import schools from CSV")."</a>\n";
echo "<br />"; echo "<br />";
echo "<a href=\"schools.php?action=makeaccesscodes\">Create Access Code for any school without one</a>\n"; echo "<a href=\"schools.php?action=makeaccesscodes\">".i18n("Create Access Code for any school without one")."</a>\n";
echo "<br />"; echo "<br />";
echo "<a onclick=\"return confirmClick('".i18n("Are you sure you want to remove all access codes from all schools?")."')\" href=\"schools.php?action=clearaccesscodes\">Remove Access Codes from all schools</a>\n"; echo "<a onclick=\"return confirmClick('".i18n("Are you sure you want to remove all access codes from all schools?")."')\" href=\"schools.php?action=clearaccesscodes\">".i18n("Remove Access Codes from all schools")."</a>\n";
echo "<br />"; echo "<br />";
echo "<table class=\"summarytable\">"; echo "<table class=\"summarytable\">";
echo "<tr>"; echo "<tr>";
echo " <th>School</th>"; echo " <th>".i18n("School")."</th>";
echo " <th>Address</th>"; echo " <th>".i18n("Address")."</th>";
echo " <th>Phone</th>"; echo " <th>".i18n("Phone")."</th>";
echo " <th>Contact</th>"; echo " <th>".i18n("Contact")."</th>";
if($config['participant_registration_type']=="schoolpassword") if($config['participant_registration_type']=="schoolpassword")
echo " <th>Reg Pass</th>"; echo " <th>".i18n("Reg Pass")."</th>";
echo " <th>Access Code</th>"; echo " <th>".i18n("Access Code")."</th>";
echo " <th>Action</th>"; echo " <th>".i18n("Action")."</th>";
echo "</tr>\n"; echo "</tr>\n";
$q=mysql_query("SELECT * FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER BY school"); $q=mysql_query("SELECT * FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER BY school");

View File

@ -226,11 +226,11 @@ else
echo "<hr />\n"; echo "<hr />\n";
echo "<h3>".i18n("Restore Database")."</h3>\n"; echo "<h3>".i18n("Restore Database")."</h3>\n";
echo i18n(error("WARNING: Importing a backup will completely DESTROY all data currently in the database and replace it with what is in the backup file")); echo error(i18n("WARNING: Importing a backup will completely DESTROY all data currently in the database and replace it with what is in the backup file"));
echo "<form method=\"post\" action=\"backuprestore.php\" enctype=\"multipart/form-data\">\n"; echo "<form method=\"post\" action=\"backuprestore.php\" enctype=\"multipart/form-data\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"restore\">\n"; echo "<input type=\"hidden\" name=\"action\" value=\"restore\">\n";
echo "<input type=\"file\" name=\"restore\">\n"; echo "<input type=\"file\" name=\"restore\">\n";
echo "<input type=\"submit\" value=\"Upload Restore File\">\n"; echo "<input type=\"submit\" value=\"".i18n("Upload Restore File")."\">\n";
echo "</form>\n"; echo "</form>\n";

View File

@ -76,9 +76,9 @@
echo "<tr class=\"$trclass\">"; echo "<tr class=\"$trclass\">";
echo "<td align=\"right\">"; echo "<td align=\"right\">";
if($r->cat==$category) if($r->cat==$category)
echo "<b>$r->cat</b>"; echo "<b>".i18n($r->cat)."</b>";
else else
echo "<a href=\"".$_SERVER['PHP_SELF']."?category=".urlencode($r->cat)."\">$r->cat</a>"; echo "<a href=\"".$_SERVER['PHP_SELF']."?category=".urlencode($r->cat)."\">".i18n($r->cat)."</a>";
echo "</td>"; echo "</td>";
echo "</tr>\n"; echo "</tr>\n";
} }

View File

@ -223,7 +223,7 @@ function config_editor($category, $year, $array_name, $self)
$line++; $line++;
print("<tr class=\"$trclass\">"); print("<tr class=\"$trclass\">");
print("<td>{$var[$k]['desc']}</td>"); print("<td>".i18n($var[$k]['desc'])."</td>");
print("<td>"); print("<td>");
$val = htmlspecialchars($var[$k]['val']); $val = htmlspecialchars($var[$k]['val']);
@ -233,9 +233,9 @@ function config_editor($category, $year, $array_name, $self)
case "yesno": case "yesno":
print("<select name=\"$name\">"); print("<select name=\"$name\">");
$sel = ($val == 'yes') ? 'selected=selected' : ''; $sel = ($val == 'yes') ? 'selected=selected' : '';
print("<option $sel value=\"yes\">Yes</option>"); print("<option $sel value=\"yes\">".i18n("Yes")."</option>");
$sel = ($val == 'no') ? 'selected=selected' : ''; $sel = ($val == 'no') ? 'selected=selected' : '';
print("<option $sel value=\"no\">No</option>"); print("<option $sel value=\"no\">".i18n("No")."</option>");
print("</select>"); print("</select>");
break; break;
case "enum": case "enum":
@ -273,7 +273,7 @@ function config_editor($category, $year, $array_name, $self)
if($e_val == "") $e_val = $e_key; if($e_val == "") $e_val = $e_key;
$sel = in_array($e_key, $val) ? 'selected=selected' : ''; $sel = in_array($e_key, $val) ? 'selected=selected' : '';
print("<option $sel value=\"$e_key\">$e_val</option>"); print("<option $sel value=\"$e_key\">".i18n($e_val)."</option>");
} }
print("</select>"); print("</select>");
break; break;
@ -302,7 +302,7 @@ function config_editor($category, $year, $array_name, $self)
$ch = (in_array($e_key, $val)) ? 'checked="checked"' : ''; $ch = (in_array($e_key, $val)) ? 'checked="checked"' : '';
print("<input type=\"checkbox\" name=\"{$name}[]\" value=\"$e_key\" $ch />"); print("<input type=\"checkbox\" name=\"{$name}[]\" value=\"$e_key\" $ch />");
print("$e_val<br />"); print(i18n($e_val)."<br />");
} }
if($c > 5) print("</td></tr></table>"); if($c > 5) print("</td></tr></table>");