diff options
Diffstat (limited to 'web/html/addvote.php')
-rw-r--r-- | web/html/addvote.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php index fe3037d5..bde0f19d 100644 --- a/web/html/addvote.php +++ b/web/html/addvote.php @@ -30,7 +30,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") { } 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()"; @@ -43,16 +43,16 @@ if ($atype == "Trusted User" OR $atype == "Developer") { } if ($check != 0) { - $error.= __("%s already has proposal running for them.", htmlentities($_POST['user'])); + $error.= sprintf(_("%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']; } @@ -61,7 +61,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") { } if (empty($_POST['agenda'])) { - $error.= __("Proposal cannot be empty."); + $error.= _("Proposal cannot be empty."); } } @@ -73,7 +73,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") { $q.= ", " . uid_from_sid($_COOKIE["AURSID"]) . ")"; db_query($q, $dbh); - print "<p class=\"pkgoutput\">" . __("New proposal submitted.") . "</p>\n"; + print "<p class=\"pkgoutput\">" . _("New proposal submitted.") . "</p>\n"; } else { ?> @@ -82,24 +82,24 @@ if ($atype == "Trusted User" OR $atype == "Developer") { <?php endif; ?> <div class="pgbox"> -<div class="pgboxtitle"><?php print __("Submit a proposal to vote on.") ?></div> +<div class="pgboxtitle"><?php print _("Submit a proposal to vote on.") ?></div> <div class="pgboxbody"> <form action='addvote.php' method='post'> <p> -<b><?php print __('Applicant/TU') ?></b> +<b><?php print _('Applicant/TU') ?></b> <input type='text' name='user' value='<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>' /> -<?php print __("(empty if not applicable)") ?> +<?php print _("(empty if not applicable)") ?> </p> <p> -<b><?php print __('Length in days') ?></b> +<b><?php print _('Length in days') ?></b> <input type='text' name='length' value='<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>' /> -<?php print __("(defaults to 7 if empty)") ?> +<?php print _("(defaults to 7 if empty)") ?> </p> <p> -<b><?php print __('Proposal') ?></b><br /> +<b><?php print _('Proposal') ?></b><br /> <textarea name='agenda' rows='25' cols='80'><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br /> <input type='hidden' name='addVote' value='1' /> -<input type='submit' class='button' value='<?php print __('Submit'); ?>' /> +<input type='submit' class='button' value='<?php print _('Submit'); ?>' /> </p> </form> </div> @@ -107,7 +107,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") { <?php } } else { - print __("You are not allowed to access this area."); + print _("You are not allowed to access this area."); } html_footer(AUR_VERSION); |