summaryrefslogtreecommitdiffstats
path: root/templates/show_random.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-03-31 17:01:04 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-12 21:13:29 -0400
commitf65076b93d91fe9718cf9bef37638d64290b9f28 (patch)
tree40fbc65baffab34971d8c7b685ef9c99e0f4014f /templates/show_random.inc.php
parent15457b16f17a141fa76a3b9882892362b601787c (diff)
downloadampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function.
Diffstat (limited to 'templates/show_random.inc.php')
-rw-r--r--templates/show_random.inc.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php
index c2ab692e..dcd0bd76 100644
--- a/templates/show_random.inc.php
+++ b/templates/show_random.inc.php
@@ -27,19 +27,19 @@
*/
?>
-<?php show_box_top(_('Play Random Selection'), 'box box_random'); ?>
+<?php show_box_top(T_('Play Random Selection'), 'box box_random'); ?>
<form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php?action=get_advanced&type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>">
<table class="tabledata" cellpadding="3" cellspacing="0">
<tr id="search_location">
- <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=song"><?php echo _('Songs'); ?></a><?php } else { echo _('Songs'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=album"><?php echo _('Albums'); ?></a><?php } else { echo _('Albums'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=artist"><?php echo _('Artists'); ?></a><?php } else { echo _('Artists'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=song"><?php echo T_('Songs'); ?></a><?php } else { echo T_('Songs'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=album"><?php echo T_('Albums'); ?></a><?php } else { echo T_('Albums'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=artist"><?php echo T_('Artists'); ?></a><?php } else { echo T_('Artists'); } ?></td>
</tr>
<tr id="search_blank_line"><td>&nbsp;</td></tr>
</table>
<table class="tabledata" cellpadding="0" cellspacing="0">
<tr id="search_item_count">
- <td><?php echo _('Item count'); ?></td>
+ <td><?php echo T_('Item count'); ?></td>
<td>
<?php $name = 'random_';
if ($_POST['random'] == -1) {
@@ -59,16 +59,16 @@
<option value="100"<?php echo $random_100; ?>>100</option>
<option value="500"<?php echo $random_500; ?>>500</option>
<option value="1000"<?php echo $random_1000; ?>>1000</option>
- <option value="-1" <?php echo $random_all; ?> ><?php echo _('All'); ?></option>
+ <option value="-1" <?php echo $random_all; ?> ><?php echo T_('All'); ?></option>
</select>
</td>
</tr>
<tr id="search_length">
- <td><?php echo _('Length'); ?></td>
+ <td><?php echo T_('Length'); ?></td>
<td>
<?php $name = 'length_' . intval($_POST['length']); ${$name} = ' selected="selected"'; ?>
<select name="length">
- <option value="0"<?php echo $length_0; ?>><?php echo _('Unlimited'); ?></option>
+ <option value="0"<?php echo $length_0; ?>><?php echo T_('Unlimited'); ?></option>
<option value="15"<?php echo $length_15; ?>><?php printf(ngettext('%d minute','%d minutes',15), "15"); ?></option>
<option value="30"<?php echo $length_30; ?>><?php printf(ngettext('%d minute','%d minutes',30), "30"); ?></option>
<option value="60"<?php echo $length_60; ?>><?php printf(ngettext('%d hour','%d hours',1), "1"); ?></option>
@@ -80,11 +80,11 @@
</td>
</tr>
<tr id="search_size_limit">
- <td><?php echo _('Size Limit'); ?></td>
+ <td><?php echo T_('Size Limit'); ?></td>
<td>
<?php $name = 'size_' . intval($_POST['size_limit']); ${$name} = ' selected="selected"'; ?>
<select name="size_limit">
- <option value="0"<?php echo $size_0; ?>><?php echo _('Unlimited'); ?></option>
+ <option value="0"<?php echo $size_0; ?>><?php echo T_('Unlimited'); ?></option>
<option value="64"<?php echo $size_64; ?>>64MB</option>
<option value="128"<?php echo $size_128; ?>>128MB</option>
<option value="256"<?php echo $size_256; ?>>256MB</option>
@@ -98,7 +98,7 @@
<?php require Config::get('prefix') . '/templates/show_rules.inc.php'; ?>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Enqueue'); ?>" />
+ <input type="submit" value="<?php echo T_('Enqueue'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>