From 2ce36384da97946bc6fe324a8c32a99c9b2d7873 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Wed, 8 Oct 2008 04:19:07 +0800 Subject: Setup translation for addvote.php Signed-off-by: Callan Barrett Signed-off-by: Loui Chang --- web/html/addvote.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/web/html/addvote.php b/web/html/addvote.php index 8e4df79..449bbb0 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.

+

"; } ?>
-Applicant/TU: + '> -(empty if not applicable) +
-Length in days: + '> -(defaults to 7 if empty) +
-Proposal:
+

@@ -84,9 +84,9 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
Back"; + print "" . __("Back") . ""; } else { - print "You are not allowed to access this area.\n"; + print __("You are not allowed to access this area."); } html_footer(AUR_VERSION); -- cgit v1.2.3-70-g09d2