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_object_rating_static.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_object_rating_static.inc.php')
-rw-r--r-- | templates/show_object_rating_static.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/show_object_rating_static.inc.php b/templates/show_object_rating_static.inc.php index 285d3bb3..198bb3b3 100644 --- a/templates/show_object_rating_static.inc.php +++ b/templates/show_object_rating_static.inc.php @@ -39,17 +39,17 @@ $base_url = Config::get('ajax_url') . '?action=set_rating&rating_type=' . $r if ($width < 0) $width = 0; //set the current rating background - echo "<li class=\"current-rating\" style=\"width:${width}%\" >" . _('Current rating: '); + echo "<li class=\"current-rating\" style=\"width:${width}%\" >" . T_('Current rating: '); if ($rating->rating <= 0) { - echo _('not rated yet') . "</li>\n"; + echo T_('not rated yet') . "</li>\n"; } - else printf(_('%s of 5') ,$rating->preciserating); echo "</li>\n"; + else printf(T_('%s of 5') ,$rating->preciserating); echo "</li>\n"; for ($i=1; $i<6; $i++) { ?> <li> - <span class="star<?php echo $i; ?>" title="<?php echo $i.' '._('out of'); ?> 5"><?php echo $i; ?></span> + <span class="star<?php echo $i; ?>" title="<?php echo $i.' ' . T_('out of'); ?> 5"><?php echo $i; ?></span> </li> <?php } |