summaryrefslogtreecommitdiffstats
path: root/web/html/tu.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-22 20:57:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-22 20:57:07 +0200
commit58907e0bffb5a7d2d0bfc05cec28f366432bb3e8 (patch)
treed0567e509e8769d2b1363af45c1b48cf18563715 /web/html/tu.php
parentadbb59308024bfb6386eaa4a9d1a2eb6591b8456 (diff)
downloadaur-gettext.tar.gz
aur-gettext.tar.xz
use php's gettext modulegettext
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'web/html/tu.php')
-rw-r--r--web/html/tu.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index 6e202c80..c16ca5e6 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -29,7 +29,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$row = mysql_fetch_assoc($results);
if (empty($row)) {
- print __("Could not retrieve proposal details.");
+ print _("Could not retrieve proposal details.");
} else {
$isrunning = $row['End'] > time() ? 1 : 0;
@@ -62,13 +62,13 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$errorvote = "";
if ($isrunning == 0) {
$canvote = 0;
- $errorvote = __("Voting is closed for this proposal.");
+ $errorvote = _("Voting is closed for this proposal.");
} else if ($row['User'] == username_from_sid($_COOKIE["AURSID"])) {
$canvote = 0;
- $errorvote = __("You cannot vote in an proposal about you.");
+ $errorvote = _("You cannot vote in an proposal about you.");
} else if ($hasvoted != 0) {
$canvote = 0;
- $errorvote = __("You've already voted for this proposal.");
+ $errorvote = _("You've already voted for this proposal.");
}
if ($canvote == 1) {
@@ -89,7 +89,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
# Can't vote anymore
#
$canvote = 0;
- $errorvote = __("You've already voted for this proposal.");
+ $errorvote = _("You've already voted for this proposal.");
# Update if they voted
$result = db_query($qvoted, $dbh);
if ($result) {
@@ -105,7 +105,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
include("tu_details.php");
}
} else {
- print __("Vote ID not valid.");
+ print _("Vote ID not valid.");
}
} else {
@@ -137,7 +137,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$q = "SELECT * FROM TU_VoteInfo WHERE End > " . time() . " ORDER BY Submitted " . $order;
$result = db_query($q, $dbh);
- $type = __("Current Votes");
+ $type = _("Current Votes");
include("tu_list.php");
?>
@@ -145,21 +145,21 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$q = "SELECT * FROM TU_VoteInfo WHERE End < " . time() . " ORDER BY Submitted " . $order . $lim;
$result = db_query($q, $dbh);
- $type = __("Past Votes");
+ $type = _("Past Votes");
include("tu_list.php");
$qnext = "SELECT ID FROM TU_VoteInfo";
$nextresult = db_query($qnext, $dbh);
?>
<div class="pgbox">
-<p><a href='addvote.php'><?php print __("Add Proposal") ?></a></p>
+<p><a href='addvote.php'><?php print _("Add Proposal") ?></a></p>
<?php if (mysql_num_rows($result)) { $by = htmlentities($by, ENT_QUOTES); ?>
<?php if ($off != 0) { $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
- <a href='tu.php?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print __("Back") ?></a>
+ <a href='tu.php?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print _("Back") ?></a>
<?php } ?>
<?php if (($off + $limit) < mysql_num_rows($nextresult)) { $forw = $off + $limit; ?>
- <a href='tu.php?off=<?php print $forw ?>&amp;by=<?php print $by ?>'><?php print __("Next") ?></a>
+ <a href='tu.php?off=<?php print $forw ?>&amp;by=<?php print $by ?>'><?php print _("Next") ?></a>
<?php } ?>
<?php } ?>
</div>