diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-06-22 20:57:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-06-22 20:57:07 +0200 |
commit | 58907e0bffb5a7d2d0bfc05cec28f366432bb3e8 (patch) | |
tree | d0567e509e8769d2b1363af45c1b48cf18563715 /web/template/tu_details.php | |
parent | adbb59308024bfb6386eaa4a9d1a2eb6591b8456 (diff) | |
download | aur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.gz aur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.xz |
use php's gettext modulegettext
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'web/template/tu_details.php')
-rw-r--r-- | web/template/tu_details.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 7d6c305d..b926615a 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -1,24 +1,24 @@ <div class="pgbox"> -<div class="pgboxtitle"><span class="f3"><?php print __("Proposal Details") ?></span></div> +<div class="pgboxtitle"><span class="f3"><?php print _("Proposal Details") ?></span></div> <div class="pgboxbody"> <?php if ($isrunning == 1) { ?> <p style='font-weight: bold; color: red'> -<?php print __("This vote is still running.") ?> +<?php print _("This vote is still running.") ?> </p> <?php } ?> <p> -<?php echo __('User') ?>: <b> +<?php echo _('User') ?>: <b> <?php if (!empty($row['User'])) { ?> <a href='packages.php?K=<?php print $row['User'] ?>&SeB=m'><?php print $row['User'] ?></a> <?php } else { ?> N/A <?php } ?> </b><br /> -<?php print __("Submitted: %s by %s", "<b>" . gmdate("r", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br /> -<?php print __('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p> +<?php printf(_("Submitted: %s by %s"), "<b>" . gmdate("r", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br /> +<?php print _('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p> <p> <?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?> @@ -26,11 +26,11 @@ N/A <table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'> <tr> -<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th> -<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th> -<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Abstain") ?></span></th> -<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Total") ?></span></th> -<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __('Voted') ?></span></th> +<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Yes") ?></span></th> +<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("No") ?></span></th> +<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Abstain") ?></span></th> +<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Total") ?></span></th> +<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _('Voted') ?></span></th> </tr> <tr> <td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td> @@ -39,9 +39,9 @@ N/A <td class='data1'><span class='f5'><span class='blue'><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></span></span></td> <td class='data1'><span class='f5'><span class='blue'> <?php if ($hasvoted == 0) { ?> -<span style='color: red; font-weight: bold'><?php print __("No") ?></span> +<span style='color: red; font-weight: bold'><?php print _("No") ?></span> <?php } else { ?> -<span style='color: green; font-weight: bold'><?php print __("Yes") ?></span> +<span style='color: green; font-weight: bold'><?php print _("Yes") ?></span> <?php } ?> </span></span></td> </tr> @@ -52,7 +52,7 @@ N/A if (!$isrunning) { ?> <div class="pgbox"> <div class="pgboxtitle"> - <span class="f3"><?php echo __('Voters'); ?></span> + <span class="f3"><?php echo _('Voters'); ?></span> </div> <div class="pgboxbody"> <?php echo $whovoted; ?> @@ -66,9 +66,9 @@ if (!$isrunning) { ?> <?php if ($canvote == 1) { ?> <form action='tu.php?id=<?php print $row['ID'] ?>' method='post'> <fieldset> -<input type='submit' class='button' name='voteYes' value='<?php print __("Yes") ?>' /> -<input type='submit' class='button' name='voteNo' value='<?php print __("No") ?>' /> -<input type='submit' class='button' name='voteAbstain' value='<?php print __("Abstain") ?>' /> +<input type='submit' class='button' name='voteYes' value='<?php print _("Yes") ?>' /> +<input type='submit' class='button' name='voteNo' value='<?php print _("No") ?>' /> +<input type='submit' class='button' name='voteAbstain' value='<?php print _("Abstain") ?>' /> <input type='hidden' name='doVote' value='1' /> </fieldset> </form> |