summaryrefslogtreecommitdiffstats
path: root/playlist.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 /playlist.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 'playlist.php')
-rw-r--r--playlist.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/playlist.php b/playlist.php
index c09e912f..c15918b8 100644
--- a/playlist.php
+++ b/playlist.php
@@ -69,7 +69,7 @@ switch ($_REQUEST['action']) {
$playlist->create($playlist_name,$playlist_type);
$_SESSION['data']['playlist_id'] = $playlist->id;
- show_confirmation(_('Playlist Created'), sprintf(_('%1$s (%2$s) has been created'), $playlist_name, $playlist_type),'playlist.php');
+ show_confirmation(T_('Playlist Created'), sprintf(T_('%1$s (%2$s) has been created'), $playlist_name, $playlist_type),'playlist.php');
break;
case 'delete_playlist':
// If we made it here, we didn't have sufficient rights.
@@ -105,11 +105,11 @@ switch ($_REQUEST['action']) {
if($result == false) {
$url = Config::get('web_path') . '/playlist.php?action=show_import_playlist';
- $title = _('Playlist Not Imported');
+ $title = T_('Playlist Not Imported');
$body = $reason;
} else {
$url = Config::get('web_path') . '/playlist.php?action=show_playlist&amp;playlist_id='.$playlist_id;
- $title = _('Playlist Imported');
+ $title = T_('Playlist Imported');
$body = basename($_FILES['filename']['name']);
$body .= "<br />";
$body .= $reason;
@@ -141,7 +141,7 @@ switch ($_REQUEST['action']) {
prune_empty_playlists();
$url = Config::get('web_path') . '/playlist.php';
- $title = _('Empty Playlists Deleted');
+ $title = T_('Empty Playlists Deleted');
$body = '';
show_confirmation($title,$body,$url);
break;