summaryrefslogtreecommitdiffstats
path: root/templates/show_user.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_user.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_user.inc.php')
-rw-r--r--templates/show_user.inc.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/show_user.inc.php b/templates/show_user.inc.php
index cc085055..653cfd32 100644
--- a/templates/show_user.inc.php
+++ b/templates/show_user.inc.php
@@ -26,27 +26,27 @@
* @link http://www.ampache.org/
*/
-$last_seen = $client->last_seen ? date("m\/d\/y - H:i",$client->last_seen) : _('Never');
-$create_date = $client->create_date ? date("m\/d\/y - H:i",$client->create_date) : _('Unknown');
+$last_seen = $client->last_seen ? date("m\/d\/y - H:i",$client->last_seen) : T_('Never');
+$create_date = $client->create_date ? date("m\/d\/y - H:i",$client->create_date) : T_('Unknown');
$client->format();
?>
<?php show_box_top($client->fullname); ?>
<table cellspacing="0">
<tr>
<td valign="top">
- <strong><?php echo _('Full Name'); ?>:</strong> <?php echo $client->fullname; ?><br />
- <strong><?php echo _('Create Date'); ?>:</strong> <?php echo $create_date; ?><br />
- <strong><?php echo _('Last Seen'); ?>:</strong> <?php echo $last_seen; ?><br />
- <strong><?php echo _('Activity'); ?>:</strong> <?php echo $client->f_useage; ?><br />
+ <strong><?php echo T_('Full Name'); ?>:</strong> <?php echo $client->fullname; ?><br />
+ <strong><?php echo T_('Create Date'); ?>:</strong> <?php echo $create_date; ?><br />
+ <strong><?php echo T_('Last Seen'); ?>:</strong> <?php echo $last_seen; ?><br />
+ <strong><?php echo T_('Activity'); ?>:</strong> <?php echo $client->f_useage; ?><br />
<?php if ($client->is_logged_in() AND $client->is_online()) { ?>
- <i style="color:green;"><?php echo _('User is Online Now'); ?></i>
+ <i style="color:green;"><?php echo T_('User is Online Now'); ?></i>
<?php } else { ?>
- <i style="color:red;"><?php echo _('User is Offline Now'); ?></i>
+ <i style="color:red;"><?php echo T_('User is Offline Now'); ?></i>
<?php } ?>
</td>
<td valign="top">
- <h2><?php echo _('Active Playlist'); ?></h2>
+ <h2><?php echo T_('Active Playlist'); ?></h2>
<div style="padding-left:10px;">
<?php
$tmp_playlist = new tmpPlaylist(tmpPlaylist::get_from_userid($client->id));