diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-03-31 17:01:04 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-04-12 21:13:29 -0400 |
commit | f65076b93d91fe9718cf9bef37638d64290b9f28 (patch) | |
tree | 40fbc65baffab34971d8c7b685ef9c99e0f4014f /templates/show_democratic_playlist.inc.php | |
parent | 15457b16f17a141fa76a3b9882892362b601787c (diff) | |
download | ampache-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_democratic_playlist.inc.php')
-rw-r--r-- | templates/show_democratic_playlist.inc.php | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/templates/show_democratic_playlist.inc.php b/templates/show_democratic_playlist.inc.php index 10f21f91..b1b01cf9 100644 --- a/templates/show_democratic_playlist.inc.php +++ b/templates/show_democratic_playlist.inc.php @@ -47,7 +47,7 @@ if (!count($object_ids)) { ?> <tr> <td> - <?php echo _('Playing from base Playlist'); ?>: + <?php echo T_('Playing from base Playlist'); ?>: <a href="<?php echo $web_path; ?>/playlist.php?action=show_playlist&playlist_id=<?php echo $playlist->id; ?>"> <?php echo scrub_out($playlist->name); ?> </a> @@ -59,14 +59,14 @@ if (!count($object_ids)) { else { ?> <tr class="th-top"> - <th class="cel_action"><?php echo _('Action'); ?></th> - <th class="cel_votes"><?php echo _('Votes'); ?></th> - <th class="cel_title"><?php echo _('Title'); ?></th> - <th class="cel_album"><?php echo _('Album'); ?></th> - <th class="cel_artist"><?php echo _('Artist'); ?></th> - <th class="cel_time"><?php echo _('Time'); ?></th> + <th class="cel_action"><?php echo T_('Action'); ?></th> + <th class="cel_votes"><?php echo T_('Votes'); ?></th> + <th class="cel_title"><?php echo T_('Title'); ?></th> + <th class="cel_album"><?php echo T_('Album'); ?></th> + <th class="cel_artist"><?php echo T_('Artist'); ?></th> + <th class="cel_time"><?php echo T_('Time'); ?></th> <?php if (Access::check('interface','100')) { ?> - <th class="cel_admin"><?php echo _('Admin'); ?></th> + <th class="cel_admin"><?php echo T_('Admin'); ?></th> <?php } ?> </tr> <?php @@ -79,9 +79,9 @@ foreach($object_ids as $row_id=>$data) { <tr class="<?php echo flip_class(); ?>"> <td class="cel_action"> <?php if ($democratic->has_vote($media->id)) { ?> - <?php echo Ajax::button('?page=democratic&action=delete_vote&row_id=' . $row_id,'delete',_('Remove Vote'),'remove_vote_' . $row_id); ?> + <?php echo Ajax::button('?page=democratic&action=delete_vote&row_id=' . $row_id,'delete', T_('Remove Vote'),'remove_vote_' . $row_id); ?> <?php } else { ?> - <?php echo Ajax::button('?page=democratic&action=add_vote&object_id=' . $media->id . '&type=' . scrub_out($data['object_type']),'tick',_('Add Vote'),'remove_vote_' . $row_id); ?> + <?php echo Ajax::button('?page=democratic&action=add_vote&object_id=' . $media->id . '&type=' . scrub_out($data['object_type']),'tick', T_('Add Vote'),'remove_vote_' . $row_id); ?> <?php } ?> </td> <td class="cel_votes" ><?php echo scrub_out($democratic->get_vote($row_id)); ?></td> @@ -91,7 +91,7 @@ foreach($object_ids as $row_id=>$data) { <td class="cel_time"><?php echo $media->f_time; ?></td> <?php if (Access::check('interface','100')) { ?> <td class="cel_admin"> - <?php echo Ajax::button('?page=democratic&action=delete&row_id=' . $row_id,'disable',_('Delete'),'delete_row_' . $row_id); ?> + <?php echo Ajax::button('?page=democratic&action=delete&row_id=' . $row_id,'disable', T_('Delete'),'delete_row_' . $row_id); ?> </td> <?php } ?> </tr> @@ -99,14 +99,14 @@ foreach($object_ids as $row_id=>$data) { } // end foreach ?> <tr class="th-bottom"> - <th class="cel_action"><?php echo _('Action'); ?></th> - <th class="cel_votes"><?php echo _('Votes'); ?></th> - <th class="cel_title"><?php echo _('Title'); ?></th> - <th class="cel_album"><?php echo _('Album'); ?></th> - <th class="cel_artist"><?php echo _('Artist'); ?></th> - <th class="cel_time"><?php echo _('Time'); ?></th> + <th class="cel_action"><?php echo T_('Action'); ?></th> + <th class="cel_votes"><?php echo T_('Votes'); ?></th> + <th class="cel_title"><?php echo T_('Title'); ?></th> + <th class="cel_album"><?php echo T_('Album'); ?></th> + <th class="cel_artist"><?php echo T_('Artist'); ?></th> + <th class="cel_time"><?php echo T_('Time'); ?></th> <?php if (Access::check('interface','100')) { ?> - <th class="cel_admin"><?php echo _('Admin'); ?></th> + <th class="cel_admin"><?php echo T_('Admin'); ?></th> <?php } ?> </tr> <?php |