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_song.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_song.inc.php')
-rw-r--r-- | templates/show_song.inc.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index f3cfd638..794ceb43 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -29,22 +29,22 @@ $icon = $song->enabled ? 'disable' : 'enable'; $button_flip_state_id = 'button_flip_state_' . $song->id; ?> -<?php show_box_top($song->title . ' ' . _('Details'), 'box box_song_details'); ?> +<?php show_box_top($song->title . ' ' . T_('Details'), 'box box_song_details'); ?> <dl class="song_details"> <?php if (Config::get('ratings')) { ?> -<dt class="<?php echo flip_class(); ?>"><?php echo _('Rating'); ?></dt> +<dt class="<?php echo flip_class(); ?>"><?php echo T_('Rating'); ?></dt> <dd><div id="rating_<?php echo $song->id; ?>_song"><?php Rating::show($song->id,'song'); ?></div></dd> <?php } ?> -<dt class="<?php echo $rowparity; ?>"><?php echo _('Action'); ?></dt> +<dt class="<?php echo $rowparity; ?>"><?php echo T_('Action'); ?></dt> <dd class="<?php echo flip_class(); ?>"> - <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_song_' . $song->id); ?> + <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add', T_('Add'),'add_song_' . $song->id); ?> <?php if (Access::check_function('download')) { ?> - <a href="<?php echo Song::play_url($song->id); ?>"><?php echo get_user_icon('link',_('Link')); ?></a> - <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&song_id=<?php echo $song->id; ?>"><?php echo get_user_icon('download',_('Download')); ?></a> + <a href="<?php echo Song::play_url($song->id); ?>"><?php echo get_user_icon('link', T_('Link')); ?></a> + <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&song_id=<?php echo $song->id; ?>"><?php echo get_user_icon('download', T_('Download')); ?></a> <?php } ?> <?php if (Access::check('interface','75')) { ?> <span id="<?php echo($button_flip_state_id); ?>"> - <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> + <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon, T_(ucfirst($icon)),'flip_song_' . $song->id); ?> </span> <?php } ?> </dd> @@ -72,7 +72,7 @@ $button_flip_state_id = 'button_flip_state_' . $song->id; if(trim($value)) { $rowparity = flip_class(); - echo "<dt class=\"".$rowparity."\">" . _($key) . "</dt><dd class=\"".$rowparity."\">" . $value . "</dd>"; + echo "<dt class=\"".$rowparity."\">" . T_($key) . "</dt><dd class=\"".$rowparity."\">" . $value . "</dd>"; } } ?> |