diff --git a/web/html/addvote.php b/web/html/addvote.php
index 8e4df795..449bbb0d 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -2,7 +2,7 @@
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
-include("pkgfuncs_po.inc");
+include("tu_po.inc");
include("aur.inc");
set_lang();
check_sid();
@@ -25,23 +25,23 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$check = mysql_num_rows(db_query($qcheck, $dbh));
if ($check == 0) {
- $error.= "
Username does not exist.
";
+ $error.= "" . __("Username does not exist.") . "
";
} else {
$qcheck = "SELECT * FROM TU_VoteInfo WHERE User = '" . mysql_real_escape_string($_POST['user']) . "'";
$qcheck.= " AND End > UNIX_TIMESTAMP()";
$check = mysql_num_rows(db_query($qcheck, $dbh));
if ($check != 0) {
- $error.= "" . htmlentities($_POST['user']) . " already has proposal running for them.
";
+ $error.= "" . __("%s already has proposal running for them.", htmlentities($_POST['user'])) . "
";
}
}
}
if (!empty($_POST['length'])) {
if (!is_numeric($_POST['length'])) {
- $error.= "Length must be a number.
";
+ $error.= "" . __("Length must be a number.") . "
";
} else if ($_POST['length'] < 1) {
- $error.= "Length must be at least 1.
";
+ $error.= "" . __("Length must be at least 1.") . "
";
} else {
$len = (60*60*24)*$_POST['length'];
}
@@ -50,7 +50,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
}
if (empty($_POST['agenda'])) {
- $error.= "Proposal cannot be empty.
";
+ $error.= "" . __("Proposal cannot be empty.") . "
";
}
}
@@ -62,21 +62,21 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$q.= ", " . uid_from_sid($_COOKIE["AURSID"]) . ")";
db_query($q, $dbh);
- print "New proposal submitted.
\n";
+ print "" . __("New proposal submitted.") . "
\n";
} else {
?>
-Submit a proposal to vote on.
+
"; } ?>