summaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/browse_filters.inc.php22
-rw-r--r--templates/error_page.inc.php6
-rw-r--r--templates/footer.inc.php4
-rw-r--r--templates/header.inc.php10
-rw-r--r--templates/install_header.inc.php12
-rw-r--r--templates/list_header.inc.php4
-rw-r--r--templates/rightbar.inc.php26
-rw-r--r--templates/show_access_list.inc.php38
-rw-r--r--templates/show_account.inc.php12
-rw-r--r--templates/show_add_access.inc.php38
-rw-r--r--templates/show_add_access_current.inc.php24
-rw-r--r--templates/show_add_access_local.inc.php36
-rw-r--r--templates/show_add_access_rpc.inc.php36
-rw-r--r--templates/show_add_catalog.inc.php48
-rw-r--r--templates/show_add_live_stream.inc.php16
-rw-r--r--templates/show_add_playlist.inc.php8
-rw-r--r--templates/show_add_shout.inc.php8
-rw-r--r--templates/show_add_user.inc.php26
-rw-r--r--templates/show_adds_catalog.inc.php8
-rw-r--r--templates/show_admin_info.inc.php6
-rw-r--r--templates/show_admin_tools.inc.php56
-rw-r--r--templates/show_album.inc.php30
-rw-r--r--templates/show_album_art.inc.php8
-rw-r--r--templates/show_album_row.inc.php10
-rw-r--r--templates/show_albums.inc.php38
-rw-r--r--templates/show_all_popular.inc.php12
-rw-r--r--templates/show_artist.inc.php28
-rw-r--r--templates/show_artist_row.inc.php8
-rw-r--r--templates/show_artists.inc.php34
-rw-r--r--templates/show_big_art.inc.php4
-rw-r--r--templates/show_catalog_row.inc.php12
-rw-r--r--templates/show_catalogs.inc.php26
-rw-r--r--templates/show_clean_catalog.inc.php6
-rw-r--r--templates/show_confirmation.inc.php4
-rw-r--r--templates/show_create_democratic.inc.php26
-rw-r--r--templates/show_debug.inc.php40
-rw-r--r--templates/show_democratic.inc.php16
-rw-r--r--templates/show_democratic_playlist.inc.php36
-rw-r--r--templates/show_denied.inc.php12
-rw-r--r--templates/show_disabled_songs.inc.php28
-rw-r--r--templates/show_duplicate.inc.php14
-rw-r--r--templates/show_duplicates.inc.php36
-rw-r--r--templates/show_dynamic.inc.php22
-rw-r--r--templates/show_edit_access.inc.php36
-rw-r--r--templates/show_edit_album.inc.php10
-rw-r--r--templates/show_edit_album_row.inc.php4
-rw-r--r--templates/show_edit_artist.inc.php8
-rw-r--r--templates/show_edit_artist_row.inc.php2
-rw-r--r--templates/show_edit_catalog.inc.php36
-rw-r--r--templates/show_edit_live_stream_row.inc.php12
-rw-r--r--templates/show_edit_playlist_row.inc.php6
-rw-r--r--templates/show_edit_playlist_song_row.inc.php2
-rw-r--r--templates/show_edit_playlist_title.inc.php6
-rw-r--r--templates/show_edit_shout.inc.php10
-rw-r--r--templates/show_edit_smartplaylist_row.inc.php6
-rw-r--r--templates/show_edit_smartplaylist_title.inc.php6
-rw-r--r--templates/show_edit_song.inc.php24
-rw-r--r--templates/show_edit_song_row.inc.php2
-rw-r--r--templates/show_edit_user.inc.php46
-rw-r--r--templates/show_export.inc.php10
-rw-r--r--templates/show_flag_row.inc.php4
-rw-r--r--templates/show_flagged.inc.php26
-rw-r--r--templates/show_gather_art.inc.php8
-rw-r--r--templates/show_get_albumart.inc.php12
-rw-r--r--templates/show_import_playlist.inc.php8
-rw-r--r--templates/show_index.inc.php2
-rw-r--r--templates/show_install.inc.php30
-rw-r--r--templates/show_install_account.inc.php18
-rw-r--r--templates/show_install_check.inc.php60
-rw-r--r--templates/show_install_config.inc.php32
-rw-r--r--templates/show_install_lang.inc.php6
-rw-r--r--templates/show_ip_history.inc.php14
-rw-r--r--templates/show_live_stream.inc.php4
-rw-r--r--templates/show_live_stream_row.inc.php6
-rw-r--r--templates/show_live_streams.inc.php26
-rw-r--r--templates/show_localplay_add_instance.inc.php4
-rw-r--r--templates/show_localplay_control.inc.php10
-rw-r--r--templates/show_localplay_controllers.inc.php22
-rw-r--r--templates/show_localplay_edit_instance.inc.php4
-rw-r--r--templates/show_localplay_instances.inc.php8
-rw-r--r--templates/show_localplay_playlist.inc.php16
-rw-r--r--templates/show_localplay_status.inc.php18
-rw-r--r--templates/show_login_form.inc.php16
-rw-r--r--templates/show_lostpassword_form.inc.php8
-rw-r--r--templates/show_lyrics.inc.php4
-rw-r--r--templates/show_lyrics_song.inc.php6
-rw-r--r--templates/show_mail_users.inc.php42
-rw-r--r--templates/show_manage_catalogs.inc.php20
-rw-r--r--templates/show_manage_democratic.inc.php24
-rw-r--r--templates/show_manage_shoutbox.inc.php26
-rw-r--r--templates/show_newest.inc.php2
-rw-r--r--templates/show_now_playing.inc.php2
-rw-r--r--templates/show_now_playing_row.inc.php16
-rw-r--r--templates/show_object_rating.inc.php6
-rw-r--r--templates/show_object_rating_static.inc.php8
-rw-r--r--templates/show_objects.inc.php2
-rw-r--r--templates/show_playlist.inc.php22
-rw-r--r--templates/show_playlist_row.inc.php10
-rw-r--r--templates/show_playlist_song_row.inc.php8
-rw-r--r--templates/show_playlist_songs.inc.php36
-rw-r--r--templates/show_playlist_title.inc.php2
-rw-r--r--templates/show_playlists.inc.php22
-rw-r--r--templates/show_playtype_switch.inc.php8
-rw-r--r--templates/show_plugins.inc.php26
-rw-r--r--templates/show_popular.inc.php2
-rw-r--r--templates/show_preference_admin.inc.php20
-rw-r--r--templates/show_preference_box.inc.php30
-rw-r--r--templates/show_preferences.inc.php4
-rw-r--r--templates/show_random.inc.php22
-rw-r--r--templates/show_random_albums.inc.php6
-rw-r--r--templates/show_recently_played.inc.php32
-rw-r--r--templates/show_recommended_artists.inc.php36
-rw-r--r--templates/show_registration_confirmation.inc.php8
-rw-r--r--templates/show_rename_artist.inc.php10
-rw-r--r--templates/show_rules.inc.php10
-rw-r--r--templates/show_run_add_catalog.inc.php4
-rw-r--r--templates/show_search.inc.php18
-rw-r--r--templates/show_search_bar.inc.php14
-rw-r--r--templates/show_search_options.inc.php10
-rw-r--r--templates/show_shout_row.inc.php4
-rw-r--r--templates/show_shoutbox.inc.php4
-rw-r--r--templates/show_smartplaylist.inc.php16
-rw-r--r--templates/show_smartplaylist_row.inc.php8
-rw-r--r--templates/show_smartplaylist_title.inc.php2
-rw-r--r--templates/show_smartplaylists.inc.php18
-rw-r--r--templates/show_song.inc.php16
-rw-r--r--templates/show_song_row.inc.php12
-rw-r--r--templates/show_songs.inc.php38
-rw-r--r--templates/show_stats.inc.php38
-rw-r--r--templates/show_stats_popular.inc.php4
-rw-r--r--templates/show_tagcloud.inc.php2
-rw-r--r--templates/show_test.inc.php64
-rw-r--r--templates/show_test_config.inc.php2
-rw-r--r--templates/show_update_items.inc.php6
-rw-r--r--templates/show_user.inc.php18
-rw-r--r--templates/show_user_activate.inc.php12
-rw-r--r--templates/show_user_preferences.inc.php10
-rw-r--r--templates/show_user_recommendations.inc.php12
-rw-r--r--templates/show_user_registration.inc.php26
-rw-r--r--templates/show_user_row.inc.php10
-rw-r--r--templates/show_user_stats.inc.php12
-rw-r--r--templates/show_users.inc.php32
-rw-r--r--templates/show_verify_catalog.inc.php8
-rw-r--r--templates/show_video_row.inc.php4
-rw-r--r--templates/show_videos.inc.php30
-rw-r--r--templates/sidebar.inc.php12
-rw-r--r--templates/sidebar_admin.inc.php32
-rw-r--r--templates/sidebar_home.inc.php56
-rw-r--r--templates/sidebar_localplay.inc.php20
-rw-r--r--templates/sidebar_modules.inc.php20
-rw-r--r--templates/sidebar_preferences.inc.php6
151 files changed, 1277 insertions, 1277 deletions
diff --git a/templates/browse_filters.inc.php b/templates/browse_filters.inc.php
index 7fe310d0..c0117c9f 100644
--- a/templates/browse_filters.inc.php
+++ b/templates/browse_filters.inc.php
@@ -29,49 +29,49 @@ session_start();
$ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
?>
<?php $allowed_filters = Browse::get_allowed_filters($browse->get_type()); ?>
-<li><h4><?php echo _('Filters'); ?></h4>
+<li><h4><?php echo T_('Filters'); ?></h4>
<div class="sb3">
<?php if (in_array('starts_with',$allowed_filters)) { ?>
<form id="multi_alpha_filter_form" method="post" action="javascript:void(0);">
- <label id="multi_alpha_filterLabel" for="multi_alpha_filter"><?php echo _('Starts With'); ?></label>
+ <label id="multi_alpha_filterLabel" for="multi_alpha_filter"><?php echo T_('Starts With'); ?></label>
<input type="text" id="multi_alpha_filter" name="multi_alpha_filter" value="<?php $browse->set_catalog($_SESSION['catalog']); echo scrub_out($browse->get_filter('starts_with'));?>" onKeyUp="delayRun(this, '400', 'ajaxState', '<?php echo $ajax_info; ?>?page=browse&action=browse&browse_id=<?php echo $browse->id; ?>&key=starts_with', 'multi_alpha_filter');">
</form>
<?php } // end if alpha_match ?>
<?php if (in_array('minimum_count',$allowed_filters)) { ?>
<input id="mincountCB" type="checkbox" value="1" />
- <label id="mincountLabel" for="mincountCB"><?php echo _('Minimum Count'); ?></label><br />
+ <label id="mincountLabel" for="mincountCB"><?php echo T_('Minimum Count'); ?></label><br />
<?php echo Ajax::observe('mincountCB', 'click', Ajax::action('?page=browse&action=browse&browse_id=' . $browse->id . '&key=min_count&value=1', '')); ?>
<?php } ?>
<?php if (in_array('rated',$allowed_filters)) { ?>
<input id="ratedCB" type="checkbox" value="1" />
- <label id="ratedLabel" for="ratedCB"><?php echo _('Rated'); ?></label><br />
+ <label id="ratedLabel" for="ratedCB"><?php echo T_('Rated'); ?></label><br />
<?php echo Ajax::observe('ratedCB', 'click', Ajax::action('?page=browse&action=browse&browse_id=' . $browse->id . '&key=rated&value=1', '')); ?>
<?php } ?>
<?php if (in_array('unplayed',$allowed_filters)) { ?>
<input id="unplayedCB" type="checkbox" <?php echo $string = $browse->get_filter('unplayed') ? 'checked="checked"' : ''; ?>/>
- <label id="unplayedLabel" for="unplayedCB"><?php echo _('Unplayed'); ?></label><br />
+ <label id="unplayedLabel" for="unplayedCB"><?php echo T_('Unplayed'); ?></label><br />
<?php } ?>
<?php if (in_array('playlist_type',$allowed_filters)) { ?>
<input id="show_allplCB" type="checkbox" <?php echo $string = $browse->get_filter('playlist_type') ? 'checked="checked"' : ''; ?>/>
- <label id="show_allplLabel" for="showallplCB"><?php echo _('All Playlists'); ?></label><br />
+ <label id="show_allplLabel" for="showallplCB"><?php echo T_('All Playlists'); ?></label><br />
<?php echo Ajax::observe('show_allplCB','click',Ajax::action('?page=browse&action=browse&browse_id=' . $browse->id . '&key=playlist_type&value=1','')); ?>
<?php } // if playlist_type ?>
<?php if (in_array('object_type',$allowed_filters)) { ?>
<?php $string = 'otype_' . $browse->get_filter('object_type'); ${$string} = 'selected="selected"'; ?>
<input id="typeSongRadio" type="radio" name="object_type" value="1" <?php echo $otype_song; ?>/>
- <label id="typeSongLabel" for="typeSongRadio"><?php echo _('Song Title'); ?></label><br />
+ <label id="typeSongLabel" for="typeSongRadio"><?php echo T_('Song Title'); ?></label><br />
<?php echo Ajax::observe('typeSongRadio','click',Ajax::action('?page=tag&action=browse_type&browse_id=' . $browse->id . '&type=song','')); ?>
<input id="typeAlbumRadio" type="radio" name="object_type" value="1" />
- <label id="typeAlbumLabel" for="typeAlbumRadio"><?php echo _('Albums'); ?></label><br />
+ <label id="typeAlbumLabel" for="typeAlbumRadio"><?php echo T_('Albums'); ?></label><br />
<?php echo Ajax::observe('typeAlbumRadio','click',Ajax::action('?page=tag&action=browse_type&browse_id=' . $browse->id . '&type=album','')); ?>
<input id="typeArtistRadio" type="radio" name="object_type" value="1" />
- <label id="typeArtistLabel" for="typeArtistRadio"><?php echo _('Artist'); ?></label><br />
+ <label id="typeArtistLabel" for="typeArtistRadio"><?php echo T_('Artist'); ?></label><br />
<?php echo Ajax::observe('typeArtistRadio','click',Ajax::action('?page=tag&action=browse_type&browse_id=' . $browse->id . '&type=artist','')); ?>
<?php } ?>
<?php if(in_array('catalog',$allowed_filters)) { ?>
<form method="post" id="catalog_choice" action="javascript.void(0);">
- <label id="catalogLabel" for="catalog_select"><?php echo _('Catalog'); ?></label><br />
+ <label id="catalogLabel" for="catalog_select"><?php echo T_('Catalog'); ?></label><br />
<select id="catalog_select" name="catalog_key">
<option value="0">All</option>
<?php
@@ -95,7 +95,7 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
</form>
<?php } ?>
<?php if (in_array('show_art',$allowed_filters)) { ?>
- <?php echo _('Toggle Artwork'); ?>&nbsp;<input id="show_artCB" type="checkbox" <?php echo Art::is_enabled() ? 'checked="checked"' : ''; ?>/>
+ <?php echo T_('Toggle Artwork'); ?>&nbsp;<input id="show_artCB" type="checkbox" <?php echo Art::is_enabled() ? 'checked="checked"' : ''; ?>/>
<?php echo Ajax::observe('show_artCB','click',Ajax::action('?page=browse&action=show_art&browse_id=' . $browse->id, '')); ?>
<?php } // if show_art ?>
</div>
diff --git a/templates/error_page.inc.php b/templates/error_page.inc.php
index 91c73be5..0ea85359 100644
--- a/templates/error_page.inc.php
+++ b/templates/error_page.inc.php
@@ -34,7 +34,7 @@
<head>
<meta http-equiv="refresh" content="10;URL=<?php echo($redirect_url);?>" />
<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" />
-<title><?php echo( _("Ampache error page"));?></title>
+<title><?php echo( T_("Ampache error page"));?></title>
<link rel="stylesheet" href="<?php echo $web_path; ?>/templates/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" />
</head>
@@ -51,9 +51,9 @@
</div>
<div>&nbsp;</div>
<div id="errormsg">
- <?php echo (_("The folowing error has occured, you will automaticly be redirected after 10 seconds.") ); ?>
+ <?php echo (T_("The folowing error has occured, you will automaticly be redirected after 10 seconds.") ); ?>
<br /><br />
- <?php echo(_("Error messages"));?>:<br />
+ <?php echo(T_("Error messages"));?>:<br />
<?php Error::display('general'); ?>
</div>
</div>
diff --git a/templates/footer.inc.php b/templates/footer.inc.php
index 21e8fe59..f40c2a75 100644
--- a/templates/footer.inc.php
+++ b/templates/footer.inc.php
@@ -28,14 +28,14 @@
?>
<div style="clear:both;"></div>
<?php if (isset($_SESSION['userdata']['password'])) {?>
- <span class="fatalerror"><?php echo _('Using Old Password Encryption, Please Reset your Password'); ?></span>
+ <span class="fatalerror"><?php echo T_('Using Old Password Encryption, Please Reset your Password'); ?></span>
<?php } ?>
</div> <!-- end id="content"-->
</div> <!-- end id="maincontainer"-->
<div id="footer">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
Copyright (c) 2001 - 2011 Ampache.org
- <?php echo _('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo _('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
+ <?php echo T_('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo T_('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
</div>
</body>
</html>
diff --git a/templates/header.inc.php b/templates/header.inc.php
index 8a7fe98f..86c62046 100644
--- a/templates/header.inc.php
+++ b/templates/header.inc.php
@@ -47,8 +47,8 @@ if(!is_file($cssdir.'default-rtl.css')) {
<link rel="search" type="application/opensearchdescription+xml" title="<?php echo scrub_out(Config::get('site_title')); ?>" href="<?php echo $web_path; ?>/search.php?action=descriptor" />
<?php
if (Config::get('use_rss')) { ?>
-<link rel="alternate" type="application/rss+xml" title="<?php echo _('Now Playing'); ?>" href="<?php echo $web_path; ?>/rss.php" />
-<link rel="alternate" type="application/rss+xml" title="<?php echo _('Recently Played'); ?>" href="<?php echo $web_path; ?>/rss.php?type=recently_played" />
+<link rel="alternate" type="application/rss+xml" title="<?php echo T_('Now Playing'); ?>" href="<?php echo $web_path; ?>/rss.php" />
+<link rel="alternate" type="application/rss+xml" title="<?php echo T_('Recently Played'); ?>" href="<?php echo $web_path; ?>/rss.php?type=recently_played" />
<?php } ?>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=<?php echo Config::get('site_charset'); ?>" />
<title><?php echo scrub_out(Config::get('site_title')); ?> - <?php echo $location['title']; ?></title>
@@ -73,7 +73,7 @@ if (Config::get('use_rss')) { ?>
<?php show_box_top('','box box_headerbox'); ?>
<?php require_once Config::get('prefix') . '/templates/show_search_bar.inc.php'; ?>
<?php require_once Config::get('prefix') . '/templates/show_playtype_switch.inc.php'; ?>
- <span id="loginInfo"><a href="<?php echo Config::get('web_path'); ?>/preferences.php?tab=account"><?php echo $GLOBALS['user']->fullname; ?></a> <a href="<?php echo Config::get('web_path'); ?>/logout.php">[<?php echo _('Log out'); ?>]</a></span>
+ <span id="loginInfo"><a href="<?php echo Config::get('web_path'); ?>/preferences.php?tab=account"><?php echo $GLOBALS['user']->fullname; ?></a> <a href="<?php echo Config::get('web_path'); ?>/logout.php">[<?php echo T_('Log out'); ?>]</a></span>
<?php show_box_bottom(); ?>
</div> <!-- End headerbox -->
</div><!-- End header -->
@@ -89,7 +89,7 @@ if (Config::get('use_rss')) { ?>
<div id="content">
<?php if (Config::get('int_config_version') != Config::get('config_version') AND $GLOBALS['user']->has_access(100)) { ?>
<div class="fatalerror">
- <?php echo _('Error Config File Out of Date'); ?>
- <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=generate_config"><?php echo _('Generate New Config'); ?></a>
+ <?php echo T_('Error Config File Out of Date'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=generate_config"><?php echo T_('Generate New Config'); ?></a>
</div>
<?php } ?>
diff --git a/templates/install_header.inc.php b/templates/install_header.inc.php
index 9f91b952..57ee13db 100644
--- a/templates/install_header.inc.php
+++ b/templates/install_header.inc.php
@@ -41,20 +41,20 @@ $prefix = realpath(dirname(__FILE__). "/../");
<script src="modules/prototype/prototype.js" language="javascript" type="text/javascript"></script>
<script src="lib/javascript/base.js" language="javascript" type="text/javascript"></script>
<div id="header">
-<h1><?php echo _('Ampache Installation'); ?></h1>
+<h1><?php echo T_('Ampache Installation'); ?></h1>
<p>For the love of Music</p>
</div>
<div id="text-box">
<div class="notify">
- <h3><?php echo _('Requirements'); ?></h3>
+ <h3><?php echo T_('Requirements'); ?></h3>
<p>
- <?php echo _('This page handles the installation of the Ampache database and the creation of the ampache.cfg.php file. Before you continue please make sure that you have the following prerequisites:'); ?>
+ <?php echo T_('This page handles the installation of the Ampache database and the creation of the ampache.cfg.php file. Before you continue please make sure that you have the following prerequisites:'); ?>
</p>
<ul>
- <li><?php echo _('A MySQL server with a username and password that can create/modify databases'); ?></li>
- <li><?php echo sprintf(_('Your webserver has read access to the files %s and %s'),$prefix . '/sql/ampache.sql',$prefix . '/config/ampache.cfg.php.dist'); ?></li>
+ <li><?php echo T_('A MySQL server with a username and password that can create/modify databases'); ?></li>
+ <li><?php echo sprintf(T_('Your webserver has read access to the files %s and %s'),$prefix . '/sql/ampache.sql',$prefix . '/config/ampache.cfg.php.dist'); ?></li>
</ul>
<p>
-<?php echo sprintf(_("Once you have ensured that the above requirements are met please fill out the information below. You will only be asked for the required config values. If you would like to make changes to your Ampache install at a later date simply edit %s"), $prefix . '/config/ampache.cfg.php'); ?>
+<?php echo sprintf(T_("Once you have ensured that the above requirements are met please fill out the information below. You will only be asked for the required config values. If you would like to make changes to your Ampache install at a later date simply edit %s"), $prefix . '/config/ampache.cfg.php'); ?>
</p>
</div>
diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php
index 26366a18..ed66bb92 100644
--- a/templates/list_header.inc.php
+++ b/templates/list_header.inc.php
@@ -106,8 +106,8 @@ if ($pages > 1) {
?>
<div class="list-header">
- <?php echo Ajax::text('?page=browse&action=page&browse_id=' . $browse->id . '&start=' . $prev_offset,_('Prev'),'browse_' . $uid . 'prev','','prev'); ?>
- <?php echo Ajax::text('?page=browse&action=page&browse_id=' . $browse->id . '&start=' . $next_offset,_('Next'),'browse_' . $uid . 'next','','next'); ?>
+ <?php echo Ajax::text('?page=browse&action=page&browse_id=' . $browse->id . '&start=' . $prev_offset, T_('Prev'),'browse_' . $uid . 'prev','','prev'); ?>
+ <?php echo Ajax::text('?page=browse&action=page&browse_id=' . $browse->id . '&start=' . $next_offset, T_('Next'),'browse_' . $uid . 'next','','next'); ?>
<?php
/* Echo everything below us */
foreach ($page_data['down'] as $page => $offset) {
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php
index c860b77f..3085a405 100644
--- a/templates/rightbar.inc.php
+++ b/templates/rightbar.inc.php
@@ -29,13 +29,13 @@
?>
<ul id="rb_action">
<li>
- <?php echo Ajax::button('?page=stream&action=basket','all',_('Play'),'rightbar_play'); ?>
+ <?php echo Ajax::button('?page=stream&action=basket','all', T_('Play'),'rightbar_play'); ?>
</li>
<li id="pl_add">
- <?php echo get_user_icon('playlist_add',_('Add to Playlist')); ?>
+ <?php echo get_user_icon('playlist_add', T_('Add to Playlist')); ?>
<ul id="pl_action_additems" class="submenu">
<li>
- <?php echo Ajax::text('?page=playlist&action=create',_('Add to New Playlist'),'rb_create_playlist'); ?>
+ <?php echo Ajax::text('?page=playlist&action=create', T_('Add to New Playlist'),'rb_create_playlist'); ?>
</li>
<?php
$playlists = Playlist::get_users($GLOBALS['user']->id);
@@ -53,27 +53,27 @@
<?php if (Access::check_function('batch_download')) { ?>
<li>
<a href="<?php echo Config::get('web_path'); ?>/batch.php?action=tmp_playlist&amp;id=<?php echo $GLOBALS['user']->playlist->id; ?>">
- <?php echo get_user_icon('batch_download',_('Batch Download')); ?>
+ <?php echo get_user_icon('batch_download', T_('Batch Download')); ?>
</a>
</li>
<?php } ?>
<li>
- <?php echo Ajax::button('?action=basket&type=clear_all','delete',_('Clear Playlist'),'rb_clear_playlist'); ?>
+ <?php echo Ajax::button('?action=basket&type=clear_all','delete', T_('Clear Playlist'),'rb_clear_playlist'); ?>
</li>
<li id="rb_add">
- <?php echo get_user_icon('add',_('Add Dynamic Items')); ?>
+ <?php echo get_user_icon('add', T_('Add Dynamic Items')); ?>
<ul id="rb_action_additems" class="submenu">
<li>
- <?php echo Ajax::text('?action=basket&type=dynamic&random_type=default',_('Pure Random'),'rb_add_pure_random'); ?>
+ <?php echo Ajax::text('?action=basket&type=dynamic&random_type=default', T_('Pure Random'),'rb_add_pure_random'); ?>
</li>
<li>
- <?php echo Ajax::text('?action=basket&type=dynamic&random_type=artist',_('Related Artist'),'rb_add_related_artist'); ?>
+ <?php echo Ajax::text('?action=basket&type=dynamic&random_type=artist', T_('Related Artist'),'rb_add_related_artist'); ?>
</li>
<li>
- <?php echo Ajax::text('?action=basket&type=dynamic&random_type=album',_('Related Album'),'rb_add_related_album'); ?>
+ <?php echo Ajax::text('?action=basket&type=dynamic&random_type=album', T_('Related Album'),'rb_add_related_album'); ?>
</li>
<li>
- <?php echo Ajax::text('?action=basket&type=dynamic&random_type=tag',_('Related Tag'),'rb_add_related_tag'); ?>
+ <?php echo Ajax::text('?action=basket&type=dynamic&random_type=tag', T_('Related Tag'),'rb_add_related_tag'); ?>
</li>
</ul>
</li>
@@ -109,14 +109,14 @@
?>
<li class="<?php echo flip_class(); ?>" >
<?php echo $object->f_link; ?>
- <?php echo Ajax::button('?action=current_playlist&type=delete&id=' . $uid,'delete',_('Delete'),'rightbar_delete_' . $uid,'','delitem'); ?>
+ <?php echo Ajax::button('?action=current_playlist&type=delete&id=' . $uid,'delete', T_('Delete'),'rightbar_delete_' . $uid,'','delitem'); ?>
</li>
<?php } if (!count($objects)) { ?>
- <li class="error"><?php echo _('Not Enough Data'); ?></li>
+ <li class="error"><?php echo T_('Not Enough Data'); ?></li>
<?php } ?>
<?php if (isset($truncated)) { ?>
<li class="<?php echo flip_class(); ?>">
- <?php echo $truncated . ' ' . _('More'); ?>...
+ <?php echo $truncated . ' ' . T_('More'); ?>...
</li>
<?php } ?>
</ul>
diff --git a/templates/show_access_list.inc.php b/templates/show_access_list.inc.php
index 0e1e687d..1840bd99 100644
--- a/templates/show_access_list.inc.php
+++ b/templates/show_access_list.inc.php
@@ -32,40 +32,40 @@
*/
?>
-<?php show_box_top(_('Access Control'), 'box box_access_control'); ?>
+<?php show_box_top(T_('Access Control'), 'box box_access_control'); ?>
<div id="information_actions" class="left-column">
<ul>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_current"><?php echo get_user_icon('add_user',_('Add Current Host')); ?></a>
- <?php echo _('Add Current Host'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_current"><?php echo get_user_icon('add_user', T_('Add Current Host')); ?></a>
+ <?php echo T_('Add Current Host'); ?>
</li>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_rpc"><?php echo get_user_icon('cog',_('Add API / RPC Host')); ?></a>
- <?php echo _('Add API / RPC Host'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_rpc"><?php echo get_user_icon('cog', T_('Add API / RPC Host')); ?></a>
+ <?php echo T_('Add API / RPC Host'); ?>
</li>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_local"><?php echo get_user_icon('home',_('Add Local Network Definition')); ?></a>
- <?php echo _('Add Local Network Definition'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_local"><?php echo get_user_icon('home', T_('Add Local Network Definition')); ?></a>
+ <?php echo T_('Add Local Network Definition'); ?>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_advanced"><?php echo get_user_icon('add_key',_('Advanced Add')); ?></a>
- <?php echo _('Advanced Add'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_add_advanced"><?php echo get_user_icon('add_key', T_('Advanced Add')); ?></a>
+ <?php echo T_('Advanced Add'); ?>
</li>
</ul>
</div>
<?php show_box_bottom(); ?>
-<?php show_box_top(_('Access Control Entries'), 'box box_access_entries'); ?>
+<?php show_box_top(T_('Access Control Entries'), 'box box_access_entries'); ?>
<?php Ajax::start_container('browse_content'); ?>
<?php if (count($list)) { ?>
<table cellspacing="1" cellpadding="3" class="tabledata">
<tr class="table-data">
- <th><?php echo _('Name'); ?></th>
- <th><?php echo _('Start Address'); ?></th>
- <th><?php echo _('End Address'); ?></th>
- <th><?php echo _('Level'); ?></th>
- <th><?php echo _('User'); ?></th>
- <th><?php echo _('Type'); ?></th>
- <th><?php echo _('Action'); ?></th>
+ <th><?php echo T_('Name'); ?></th>
+ <th><?php echo T_('Start Address'); ?></th>
+ <th><?php echo T_('End Address'); ?></th>
+ <th><?php echo T_('Level'); ?></th>
+ <th><?php echo T_('User'); ?></th>
+ <th><?php echo T_('Type'); ?></th>
+ <th><?php echo T_('Action'); ?></th>
</tr>
<?php
/* Start foreach List Item */
@@ -81,8 +81,8 @@
<td><?php echo $access->f_user; ?></td>
<td><?php echo $access->f_type; ?></td>
<td>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_edit_record&amp;access_id=<?php echo scrub_out($access->id); ?>"><?php echo get_user_icon('edit', _('Edit')); ?></a>
- <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_delete_record&amp;access_id=<?php echo scrub_out($access->id); ?>"><?php echo get_user_icon('delete', _('Delete')); ?></a>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_edit_record&amp;access_id=<?php echo scrub_out($access->id); ?>"><?php echo get_user_icon('edit', T_('Edit')); ?></a>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/access.php?action=show_delete_record&amp;access_id=<?php echo scrub_out($access->id); ?>"><?php echo get_user_icon('delete', T_('Delete')); ?></a>
</td>
</tr>
<?php } // end foreach ?>
diff --git a/templates/show_account.inc.php b/templates/show_account.inc.php
index 1b4035f3..781860c5 100644
--- a/templates/show_account.inc.php
+++ b/templates/show_account.inc.php
@@ -32,32 +32,32 @@
<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_user" enctype="multipart/form-data">
<table class="tabledata">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td>
<input type="text" name="fullname" size="27" value="<?php echo scrub_out($client->fullname); ?>" />
</td>
</tr>
<tr>
- <td><?php echo _('E-mail'); ?>:</td>
+ <td><?php echo T_('E-mail'); ?>:</td>
<td>
<input type="text" name="email" size="27" value="<?php echo scrub_out($client->email); ?>" />
</td>
</tr>
<tr>
- <td><?php echo _('New Password'); ?>:</td>
+ <td><?php echo T_('New Password'); ?>:</td>
<td>
<?php Error::display('password'); ?>
<input type="password" name="password1" size="27" />
</td>
</tr>
<tr>
- <td><?php echo _('Confirm Password'); ?>:</td>
+ <td><?php echo T_('Confirm Password'); ?>:</td>
<td>
<input type="password" name="password2" size="27" />
</td>
</tr>
<tr>
- <td><?php echo _('Clear Stats'); ?>:</td>
+ <td><?php echo T_('Clear Stats'); ?>:</td>
<td>
<input type="checkbox" name="clear_stats" value="1" />
</td>
@@ -67,5 +67,5 @@
<input type="hidden" name="user_id" value="<?php echo scrub_out($client->id); ?>" />
<?php echo Core::form_register('update_user'); ?>
<input type="hidden" name="tab" value="<?php echo scrub_out($_REQUEST['tab']); ?>" />
- <input class="button" type="submit" value="<?php echo _('Update Account'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Update Account'); ?>" />
</div>
diff --git a/templates/show_add_access.inc.php b/templates/show_add_access.inc.php
index 89f01f9a..b458407d 100644
--- a/templates/show_add_access.inc.php
+++ b/templates/show_add_access.inc.php
@@ -27,65 +27,65 @@
*/
?>
-<?php show_box_top(_('Advanced Add'), 'box box_add_access'); ?>
+<?php show_box_top(T_('Advanced Add'), 'box box_add_access'); ?>
<?php Error::display('general'); ?>
<form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=advanced">
<table class="tabledata" cellpadding="5" cellspacing="0">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td colspan="3">
<input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']); ?>" size="20" />
</td>
</tr>
<tr>
- <td><?php echo _('Level'); ?>:</td>
+ <td><?php echo T_('Level'); ?>:</td>
<td colspan="3">
- <input name="level" type="radio" checked="checked" value="5" /> <?php echo _('View'); ?>
- <input name="level" type="radio" value="25" /> <?php echo _('Read'); ?>
- <input name="level" type="radio" value="50" /> <?php echo _('Read/Write'); ?>
- <input name="level" type="radio" value="75" /> <?php echo _('All'); ?>
+ <input name="level" type="radio" checked="checked" value="5" /> <?php echo T_('View'); ?>
+ <input name="level" type="radio" value="25" /> <?php echo T_('Read'); ?>
+ <input name="level" type="radio" value="50" /> <?php echo T_('Read/Write'); ?>
+ <input name="level" type="radio" value="75" /> <?php echo T_('All'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('User'); ?>:</td>
+ <td><?php echo T_('User'); ?>:</td>
<td colspan="3">
<?php show_user_select('user'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('ACL Type'); ?>:</td>
+ <td><?php echo T_('ACL Type'); ?>:</td>
<td colspan="3">
<select name="type">
- <option selected="selected" value="stream"><?php echo _('Stream Access'); ?></option>
- <option value="interface"><?php echo _('Web Interface'); ?></option>
- <option value="network"><?php echo _('Local Network Definition'); ?></option>
- <option value="rpc"><?php echo _('RPC'); ?></option>
+ <option selected="selected" value="stream"><?php echo T_('Stream Access'); ?></option>
+ <option value="interface"><?php echo T_('Web Interface'); ?></option>
+ <option value="network"><?php echo T_('Local Network Definition'); ?></option>
+ <option value="rpc"><?php echo T_('RPC'); ?></option>
</select>
</td>
</tr>
<tr>
- <td colspan="4"><h4><?php echo _('RPC Options'); ?></h4></td>
+ <td colspan="4"><h4><?php echo T_('RPC Options'); ?></h4></td>
</tr>
<tr>
- <td><?php echo _('Remote Key'); ?>:</td>
+ <td><?php echo T_('Remote Key'); ?>:</td>
<td colspan="3">
<input type="text" name="key" value="<?php echo scrub_out($_REQUEST['key']); ?>" maxlength="32" />
</td>
</tr>
<tr>
- <td colspan="4"><h3><?php echo _('IPv4 or IPv6 Addresses'); ?></h3>
+ <td colspan="4"><h3><?php echo T_('IPv4 or IPv6 Addresses'); ?></h3>
<span class="information">(255.255.255.255) / (ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)</span>
</td>
</tr>
<tr>
- <td><?php echo _('Start'); ?>:</td>
+ <td><?php echo T_('Start'); ?>:</td>
<td>
<?php Error::display('start'); ?>
<input type="text" name="start" value="<?php echo scrub_out($_REQUEST['start']); ?>" size="20" maxlength="15" />
</td>
- <td><?php echo _('End'); ?>:</td>
+ <td><?php echo T_('End'); ?>:</td>
<td>
<?php Error::display('end'); ?>
<input type="text" name="end" value="<?php echo scrub_out($_REQUEST['end']); ?>" size="20" maxlength="15" />
@@ -94,7 +94,7 @@
</table>
<div class="formValidation">
<?php echo Core::form_register('add_acl'); ?>
- <input class="button" type="submit" value="<?php echo _('Create ACL'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Create ACL'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_access_current.inc.php b/templates/show_add_access_current.inc.php
index ab86ec84..1f1f18db 100644
--- a/templates/show_add_access_current.inc.php
+++ b/templates/show_add_access_current.inc.php
@@ -27,39 +27,39 @@
*/
?>
-<?php show_box_top(_('Add Current Host'), 'box box_add_access_current'); ?>
+<?php show_box_top(T_('Add Current Host'), 'box box_add_access_current'); ?>
<?php Error::display('general'); ?>
<form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=current">
<table class="tabledata" cellpadding="5" cellspacing="0">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td>
<input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']); ?>" size="20" />
</td>
</tr>
<tr>
- <td><?php echo _('IPv4 or IPv6 Addresses'); ?>:</td>
+ <td><?php echo T_('IPv4 or IPv6 Addresses'); ?>:</td>
<td><?php echo scrub_out($_SERVER['REMOTE_ADDR']); ?></td>
<tr>
- <td><?php echo _('Level'); ?>:</td>
+ <td><?php echo T_('Level'); ?>:</td>
<td>
- <input name="level" type="radio" value="5" /> <?php echo _('View'); ?>
- <input name="level" type="radio" value="25" /> <?php echo _('Read'); ?>
- <input name="level" type="radio" checked="checked" value="50" /> <?php echo _('Read/Write'); ?>
- <input name="level" type="radio" value="75" /> <?php echo _('All'); ?>
+ <input name="level" type="radio" value="5" /> <?php echo T_('View'); ?>
+ <input name="level" type="radio" value="25" /> <?php echo T_('Read'); ?>
+ <input name="level" type="radio" checked="checked" value="50" /> <?php echo T_('Read/Write'); ?>
+ <input name="level" type="radio" value="75" /> <?php echo T_('All'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('User'); ?>:</td>
+ <td><?php echo T_('User'); ?>:</td>
<td>
<?php show_user_select('user'); ?>
</td>
</tr>
<tr>
- <td colspan="2"><h4><?php echo _('RPC Options'); ?></h4></td>
+ <td colspan="2"><h4><?php echo T_('RPC Options'); ?></h4></td>
</tr>
<tr>
- <td><?php echo _('Remote Key'); ?>:</td>
+ <td><?php echo T_('Remote Key'); ?>:</td>
<td>
<input type="text" name="key" value="<?php echo scrub_out($_REQUEST['end']); ?>" maxlength="32" />
</td>
@@ -67,7 +67,7 @@
</table>
<div class="formValidation">
<?php echo Core::form_register('add_acl'); ?>
- <input class="button" type="submit" value="<?php echo _('Create ACL'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Create ACL'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_access_local.inc.php b/templates/show_add_access_local.inc.php
index 81587b1a..ef204483 100644
--- a/templates/show_add_access_local.inc.php
+++ b/templates/show_add_access_local.inc.php
@@ -27,62 +27,62 @@
*/
?>
-<?php show_box_top(_('Add Local Network Definition'), 'box box_add_access_local'); ?>
+<?php show_box_top(T_('Add Local Network Definition'), 'box box_add_access_local'); ?>
<?php Error::display('general'); ?>
<form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=local">
<table class="tabledata" cellpadding="5" cellspacing="0">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td colspan="3">
<input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']); ?>" size="20" />
</td>
</tr>
<tr>
- <td><?php echo _('Level'); ?>:</td>
+ <td><?php echo T_('Level'); ?>:</td>
<td colspan="3">
- <input name="level" type="radio" value="5" /> <?php echo _('View'); ?>
- <input name="level" type="radio" value="25" /> <?php echo _('Read'); ?>
- <input name="level" type="radio" checked="checked" value="50" /> <?php echo _('Read/Write'); ?>
- <input name="level" type="radio" value="75" /> <?php echo _('All'); ?>
+ <input name="level" type="radio" value="5" /> <?php echo T_('View'); ?>
+ <input name="level" type="radio" value="25" /> <?php echo T_('Read'); ?>
+ <input name="level" type="radio" checked="checked" value="50" /> <?php echo T_('Read/Write'); ?>
+ <input name="level" type="radio" value="75" /> <?php echo T_('All'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('User'); ?>:</td>
+ <td><?php echo T_('User'); ?>:</td>
<td colspan="3">
<?php show_user_select('user'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Type'); ?>:</td>
+ <td valign="top"><?php echo T_('Type'); ?>:</td>
<td colspan="3">
- <input type="radio" name="addtype" value="network" /><?php echo _('Local Network Definition'); ?><br />
- <input type="radio" name="addtype" value="streamnetwork" /><?php echo _('Local Network Definition'); ?> + <?php echo _('Stream Access'); ?> + <?php echo _('Web Interface'); ?><br />
- <input type="radio" name="addtype" value="allnetwork" checked="checked" /><?php echo _('Local Network Definition'); ?> + <?php echo _('All'); ?><br />
+ <input type="radio" name="addtype" value="network" /><?php echo T_('Local Network Definition'); ?><br />
+ <input type="radio" name="addtype" value="streamnetwork" /><?php echo T_('Local Network Definition'); ?> + <?php echo T_('Stream Access'); ?> + <?php echo T_('Web Interface'); ?><br />
+ <input type="radio" name="addtype" value="allnetwork" checked="checked" /><?php echo T_('Local Network Definition'); ?> + <?php echo T_('All'); ?><br />
</td>
</tr>
<tr>
- <td colspan="4"><h4><?php echo _('RPC Options'); ?></h4></td>
+ <td colspan="4"><h4><?php echo T_('RPC Options'); ?></h4></td>
</tr>
<tr>
- <td><?php echo _('Remote Key'); ?>:</td>
+ <td><?php echo T_('Remote Key'); ?>:</td>
<td colspan="3">
<input type="text" name="key" value="<?php echo scrub_out($_REQUEST['end']); ?>" maxlength="32" />
</td>
</tr>
<tr>
- <td colspan="4"><h3><?php echo _('IPv4 or IPv6 Addresses'); ?></h3>
+ <td colspan="4"><h3><?php echo T_('IPv4 or IPv6 Addresses'); ?></h3>
<span class="information">(255.255.255.255) / (ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)</span>
</td>
</tr>
<tr>
- <td><?php echo _('Start'); ?>:</td>
+ <td><?php echo T_('Start'); ?>:</td>
<td>
<?php Error::display('start'); ?>
<input type="text" name="start" value="<?php echo scrub_out($_REQUEST['start']); ?>" size="20" />
</td>
- <td><?php echo _('End'); ?>:</td>
+ <td><?php echo T_('End'); ?>:</td>
<td>
<?php Error::display('end'); ?>
<input type="text" name="end" value="<?php echo scrub_out($_REQUEST['end']); ?>" size="20" />
@@ -91,7 +91,7 @@
</table>
<div class="formValidation">
<?php echo Core::form_register('add_acl'); ?>
- <input class="button" type="submit" value="<?php echo _('Create ACL'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Create ACL'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_access_rpc.inc.php b/templates/show_add_access_rpc.inc.php
index e7c2ecd8..ed9d8a8d 100644
--- a/templates/show_add_access_rpc.inc.php
+++ b/templates/show_add_access_rpc.inc.php
@@ -27,62 +27,62 @@
*/
?>
-<?php show_box_top(_('Add API / RPC Host'), 'box box_add_access_rpc'); ?>
+<?php show_box_top(T_('Add API / RPC Host'), 'box box_add_access_rpc'); ?>
<?php Error::display('general'); ?>
<form name="update_catalog" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=add_host&method=rpc">
<table class="tabledata" cellpadding="5" cellspacing="0">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td colspan="3">
<input type="text" name="name" value="<?php echo scrub_out($_REQUEST['name']); ?>" size="20" />
</td>
</tr>
<tr>
- <td><?php echo _('Level'); ?>:</td>
+ <td><?php echo T_('Level'); ?>:</td>
<td colspan="3">
- <input name="level" type="radio" value="5" /> <?php echo _('View'); ?>
- <input name="level" type="radio" value="25" /> <?php echo _('Read'); ?>
- <input name="level" type="radio" checked="checked" value="50" /> <?php echo _('Read/Write'); ?>
- <input name="level" type="radio" value="75" /> <?php echo _('All'); ?>
+ <input name="level" type="radio" value="5" /> <?php echo T_('View'); ?>
+ <input name="level" type="radio" value="25" /> <?php echo T_('Read'); ?>
+ <input name="level" type="radio" checked="checked" value="50" /> <?php echo T_('Read/Write'); ?>
+ <input name="level" type="radio" value="75" /> <?php echo T_('All'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('User'); ?>:</td>
+ <td><?php echo T_('User'); ?>:</td>
<td colspan="3">
<?php show_user_select('user'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Type'); ?>:</td>
+ <td valign="top"><?php echo T_('Type'); ?>:</td>
<td colspan="3">
- <input type="radio" name="addtype" value="rpc" /><?php echo _('RPC'); ?><br />
- <input type="radio" name="addtype" value="streamrpc" checked="checked" /><?php echo _('RPC'); ?> + <?php echo _('Stream Access'); ?><br />
- <input type="radio" name="addtype" value="allrpc" /><?php echo _('RPC'); ?> + <?php echo _('All'); ?>
+ <input type="radio" name="addtype" value="rpc" /><?php echo T_('RPC'); ?><br />
+ <input type="radio" name="addtype" value="streamrpc" checked="checked" /><?php echo T_('RPC'); ?> + <?php echo T_('Stream Access'); ?><br />
+ <input type="radio" name="addtype" value="allrpc" /><?php echo T_('RPC'); ?> + <?php echo T_('All'); ?>
</td>
</tr>
<tr>
- <td colspan="4"><h4><?php echo _('RPC Options'); ?></h4></td>
+ <td colspan="4"><h4><?php echo T_('RPC Options'); ?></h4></td>
</tr>
<tr>
- <td><?php echo _('Remote Key'); ?>:</td>
+ <td><?php echo T_('Remote Key'); ?>:</td>
<td colspan="3">
<input type="text" name="key" value="<?php echo scrub_out($_REQUEST['key']); ?>" maxlength="32" />
</td>
</tr>
<tr>
- <td colspan="4"><h3><?php echo _('IPv4 or IPv6 Addresses'); ?></h3>
+ <td colspan="4"><h3><?php echo T_('IPv4 or IPv6 Addresses'); ?></h3>
<span class="information">(255.255.255.255) / (ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)</span>
</td>
</tr>
<tr>
- <td><?php echo _('Start'); ?>:</td>
+ <td><?php echo T_('Start'); ?>:</td>
<td>
<?php Error::display('start'); ?>
<input type="text" name="start" value="<?php echo scrub_out($_REQUEST['start']); ?>" size="20" />
</td>
- <td><?php echo _('End'); ?>:</td>
+ <td><?php echo T_('End'); ?>:</td>
<td>
<?php Error::display('end'); ?>
<input type="text" name="end" value="<?php echo scrub_out($_REQUEST['end']); ?>" size="20" />
@@ -91,7 +91,7 @@
</table>
<div class="formValidation">
<?php echo Core::form_register('add_acl'); ?>
- <input class="button" type="submit" value="<?php echo _('Create ACL'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Create ACL'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_catalog.inc.php b/templates/show_add_catalog.inc.php
index 2b352d4b..2bd217b6 100644
--- a/templates/show_add_catalog.inc.php
+++ b/templates/show_add_catalog.inc.php
@@ -29,70 +29,70 @@
$default_rename = "%a - %T - %t";
$default_sort = "%a/%A";
?>
-<?php show_box_top(_('Add a Catalog'), 'box box_add_catalog'); ?>
-<p><?php echo _("In the form below enter either a local path (i.e. /data/music) or the URL to a remote Ampache installation (i.e http://theotherampache.com)"); ?></p>
+<?php show_box_top(T_('Add a Catalog'), 'box box_add_catalog'); ?>
+<p><?php echo T_("In the form below enter either a local path (i.e. /data/music) or the URL to a remote Ampache installation (i.e http://theotherampache.com)"); ?></p>
<?php Error::display('general'); ?>
<form name="update_catalog" method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php" enctype="multipart/form-data">
<table class="tabledata" cellpadding="0" cellspacing="0">
<tr>
- <td><?php echo _('Catalog Name'); ?>: </td>
+ <td><?php echo T_('Catalog Name'); ?>: </td>
<td><input size="60" type="text" name="name" value="<?php echo scrub_out($_POST['name']); ?>" /></td>
<td style="vertical-align:top; font-family: monospace;" rowspan="6" id="patterns_example">
- <strong><?php echo _('Auto-inserted Fields'); ?>:</strong><br />
- %A = <?php echo _('album name'); ?><br />
- %a = <?php echo _('artist name'); ?><br />
- %c = <?php echo _('id3 comment'); ?><br />
- %T = <?php echo _('track number (padded with leading 0)'); ?><br />
- %t = <?php echo _('song title'); ?><br />
- %y = <?php echo _('year'); ?><br />
- %o = <?php echo _('other'); ?><br />
+ <strong><?php echo T_('Auto-inserted Fields'); ?>:</strong><br />
+ %A = <?php echo T_('album name'); ?><br />
+ %a = <?php echo T_('artist name'); ?><br />
+ %c = <?php echo T_('id3 comment'); ?><br />
+ %T = <?php echo T_('track number (padded with leading 0)'); ?><br />
+ %t = <?php echo T_('song title'); ?><br />
+ %y = <?php echo T_('year'); ?><br />
+ %o = <?php echo T_('other'); ?><br />
</td>
</tr>
<tr>
- <td><?php echo _('Path'); ?>: </td>
+ <td><?php echo T_('Path'); ?>: </td>
<td><input size="60" type="text" name="path" value="<?php echo scrub_out($_POST['path']); ?>" /></td>
</tr>
<tr>
- <td><?php echo _('Catalog Type'); ?>: </td>
+ <td><?php echo T_('Catalog Type'); ?>: </td>
<td>
<select name="type">
- <option value="local"><?php echo _('Local'); ?></option>
- <option value="remote"><?php echo _('Remote'); ?></option>
+ <option value="local"><?php echo T_('Local'); ?></option>
+ <option value="remote"><?php echo T_('Remote'); ?></option>
</select>
</td>
</tr>
<tr>
- <td><?php echo _('Remote Catalog Username'); ?>: </td>
- <td><input size="30" type="text" name="remote_username" value="<?php echo scrub_out($_POST['remote_username']); ?>" /><span class="error">*<?php echo _('Required for Remote Catalogs'); ?></span></td>
+ <td><?php echo T_('Remote Catalog Username'); ?>: </td>
+ <td><input size="30" type="text" name="remote_username" value="<?php echo scrub_out($_POST['remote_username']); ?>" /><span class="error">*<?php echo T_('Required for Remote Catalogs'); ?></span></td>
</tr>
<tr>
- <td><?php echo _('Remote Catalog Password'); ?>: </td>
- <td><input size="30" type="password" name="remote_password" value="" /><span class="error">*<?php echo _('Required for Remote Catalogs'); ?></span></td>
+ <td><?php echo T_('Remote Catalog Password'); ?>: </td>
+ <td><input size="30" type="password" name="remote_password" value="" /><span class="error">*<?php echo T_('Required for Remote Catalogs'); ?></span></td>
</tr>
<tr>
- <td><?php echo _('Filename Pattern'); ?>: </td>
+ <td><?php echo T_('Filename Pattern'); ?>: </td>
<td><input size="60" type="text" name="rename_pattern" value="<?php echo $default_rename; ?>" /></td>
</tr>
<tr>
- <td><?php echo _('Folder Pattern'); ?>:<br /><?php echo _("(no leading or ending '/')"); ?></td>
+ <td><?php echo T_('Folder Pattern'); ?>:<br /><?php echo T_("(no leading or ending '/')"); ?></td>
<td valign="top"><input size="60" type="text" name="sort_pattern" value="<?php echo $default_sort; ?>" /></td>
</tr>
<tr>
- <td valign="top"><?php echo _('Gather Album Art'); ?>:</td>
+ <td valign="top"><?php echo T_('Gather Album Art'); ?>:</td>
<td><input type="checkbox" name="gather_art" value="1" /></td>
</tr>
<tr>
- <td valign="top"><?php echo _('Build Playlists from m3u Files'); ?>:</td>
+ <td valign="top"><?php echo T_('Build Playlists from m3u Files'); ?>:</td>
<td><input type="checkbox" name="parse_m3u" value="1" /></td>
</tr>
</table>
<div class="formValidation">
<input type="hidden" name="action" value="add_catalog" />
<?php echo Core::form_register('add_catalog'); ?>
- <input class="button" type="submit" value="<?php echo _('Add Catalog'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Add Catalog'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_live_stream.inc.php b/templates/show_add_live_stream.inc.php
index 60e0fc4c..ec790ca3 100644
--- a/templates/show_add_live_stream.inc.php
+++ b/templates/show_add_live_stream.inc.php
@@ -27,44 +27,44 @@
*/
?>
-<?php show_box_top(_('Add Radio Station'), 'box box_add_live_stream'); ?>
+<?php show_box_top(T_('Add Radio Station'), 'box box_add_live_stream'); ?>
<form name="radio" method="post" action="<?php echo Config::get('web_path'); ?>/radio.php?action=create">
<table>
<tr>
- <td><?php echo _('Name'); ?></td>
+ <td><?php echo T_('Name'); ?></td>
<td>
<input type="text" name="name" size="20" value="<?php echo scrub_out($_REQUEST['name']); ?>" />
<?php Error::display('name'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('Homepage'); ?></td>
+ <td><?php echo T_('Homepage'); ?></td>
<td>
<input type="text" name="site_url" value="<?php echo scrub_out($_REQUEST['site_url']); ?>" />
<?php Error::display('site_url'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('Stream URL'); ?></td>
+ <td><?php echo T_('Stream URL'); ?></td>
<td>
<input type="text" name="url" value="<?php echo scrub_out($_REQUEST['url']); ?>" />
<?php Error::display('url'); ?>
</td>
</tr>
<tr>
- <td><?php echo _('Frequency'); ?></td>
+ <td><?php echo T_('Frequency'); ?></td>
<td>
<input type="text" name="frequency" value="<?php echo scrub_out($_REQUEST['frequency']); ?>" />
</td>
</tr>
<tr>
- <td><?php echo _('Callsign'); ?></td>
+ <td><?php echo T_('Callsign'); ?></td>
<td>
<input type="text" name="call_sign" value="<?php echo scrub_out($_REQUEST['call_sign']); ?>" />
</td>
</tr>
<tr>
- <td><?php echo _('Catalog'); ?></td>
+ <td><?php echo T_('Catalog'); ?></td>
<td>
<?php echo show_catalog_select('catalog',intval($_REQUEST['catalog'])); ?>
</td>
@@ -72,7 +72,7 @@
</table>
<div class="formValidation">
<?php echo Core::form_register('add_radio'); ?>
- <input class="button" type="submit" value="<?php echo _('Add'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Add'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_add_playlist.inc.php b/templates/show_add_playlist.inc.php
index a2fc25fa..c510b38e 100644
--- a/templates/show_add_playlist.inc.php
+++ b/templates/show_add_playlist.inc.php
@@ -27,15 +27,15 @@
*/
?>
-<?php show_box_top(_('Create a new playlist')); ?>
+<?php show_box_top(T_('Create a new playlist')); ?>
<form name="songs" method="post" action="<?php echo conf('web_path'); ?>/playlist.php">
<table>
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td><input type="text" name="playlist_name" size="20" /></td>
</tr>
<tr>
- <td><?php echo _('Type'); ?>:</td>
+ <td><?php echo T_('Type'); ?>:</td>
<td>
<select name="type">
<option value="private"> Private </option>
@@ -45,7 +45,7 @@
</tr>
</table>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Create'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Create'); ?>" />
<input type="hidden" name="action" value="Create" />
</div>
</form>
diff --git a/templates/show_add_shout.inc.php b/templates/show_add_shout.inc.php
index 99d43390..e0eda1a0 100644
--- a/templates/show_add_shout.inc.php
+++ b/templates/show_add_shout.inc.php
@@ -27,18 +27,18 @@
*/
?>
-<?php show_box_top(_('Post to Shoutbox'), 'box box_add_shout'); ?>
+<?php show_box_top(T_('Post to Shoutbox'), 'box box_add_shout'); ?>
<form method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/shout.php?action=add_shout">
<table class="tabledata" cellpadding="0" cellspacing="0">
<tr>
- <td><strong><?php echo _('Comment:'); ?></strong>
+ <td><strong><?php echo T_('Comment:'); ?></strong>
</tr>
<tr>
<td><textarea rows="5" cols="70" name="comment"></textarea></td>
</tr>
<?php if (Access::check('interface','50')) { ?>
<tr>
- <td><input type="checkbox" name="sticky" /> <strong><?php echo _('Make Sticky'); ?></strong></td>
+ <td><input type="checkbox" name="sticky" /> <strong><?php echo T_('Make Sticky'); ?></strong></td>
</tr>
<?php } ?>
<tr>
@@ -46,7 +46,7 @@
<?php echo Core::form_register('add_shout'); ?>
<input type="hidden" name="object_id" value="<?php echo $object->id; ?>" />
<input type="hidden" name="object_type" value="<?php echo strtolower(get_class($object)); ?>" />
- <input type="submit" value="<?php echo _('Create'); ?>" />
+ <input type="submit" value="<?php echo T_('Create'); ?>" />
</td>
</tr>
</table>
diff --git a/templates/show_add_user.inc.php b/templates/show_add_user.inc.php
index e672876e..5e2daa51 100644
--- a/templates/show_add_user.inc.php
+++ b/templates/show_add_user.inc.php
@@ -27,13 +27,13 @@
*/
?>
-<?php show_box_top(_('Adding a New User'), 'box box_add_user'); ?>
+<?php show_box_top(T_('Adding a New User'), 'box box_add_user'); ?>
<?php Error::display('general'); ?>
<form name="add_user" enctype="multpart/form-data" method="post" action="<?php echo Config::get('web_path') . "/admin/users.php?action=add_user"; ?>">
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr>
<td>
- <?php echo _('Username'); ?>:
+ <?php echo T_('Username'); ?>:
</td>
<td>
<input type="text" name="username" size="30" maxlength="128" value="<?php echo scrub_out($_POST['username']); ?>" />
@@ -41,14 +41,14 @@
</td>
</tr>
<tr>
- <td><?php echo _('Full Name'); ?>:</td>
+ <td><?php echo T_('Full Name'); ?>:</td>
<td>
<input type="text" name="fullname" size="30" value="<?php echo scrub_out($_POST['fullname']); ?>" />
</td>
</tr>
<tr>
<td>
- <?php echo _('E-mail'); ?>:
+ <?php echo T_('E-mail'); ?>:
</td>
<td>
<input type="text" name="email" size="30" value="<?php echo scrub_out($_POST['email']); ?>" />
@@ -56,7 +56,7 @@
</tr>
<tr>
<td>
- <?php echo _('Password'); ?> :
+ <?php echo T_('Password'); ?> :
</td>
<td>
<input type="password" name="password_1" size="30" value="" />
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>
- <?php echo _('Confirm Password'); ?>:
+ <?php echo T_('Confirm Password'); ?>:
</td>
<td>
<input type="password" name="password_2" size="30" value="" />
@@ -73,23 +73,23 @@
</tr>
<tr>
<td>
- <?php echo _('User Access Level'); ?>:
+ <?php echo T_('User Access Level'); ?>:
</td>
<td>
<?php $var_name = "on_" . $client->access; ${$var_name} = 'selected="selected"'; ?>
<select name="access">
- <option value="5" <?php echo $on_5; ?>><?php echo _('Guest'); ?></option>
- <option value="25" <?php echo $on_25; ?>><?php echo _('User'); ?></option>
- <option value="50" <?php echo $on_50; ?>><?php echo _('Content Manager'); ?></option>
- <option value="75" <?php echo $on_75; ?>><?php echo _('Catalog Manager'); ?></option>
- <option value="100" <?php echo $on_100; ?>><?php echo _('Admin'); ?></option>
+ <option value="5" <?php echo $on_5; ?>><?php echo T_('Guest'); ?></option>
+ <option value="25" <?php echo $on_25; ?>><?php echo T_('User'); ?></option>
+ <option value="50" <?php echo $on_50; ?>><?php echo T_('Content Manager'); ?></option>
+ <option value="75" <?php echo $on_75; ?>><?php echo T_('Catalog Manager'); ?></option>
+ <option value="100" <?php echo $on_100; ?>><?php echo T_('Admin'); ?></option>
</select>
</td>
</tr>
</table>
<div class="formValidation">
<?php echo Core::form_register('add_user'); ?>
- <input type="submit" value="<?php echo _('Add User'); ?>" />
+ <input type="submit" value="<?php echo T_('Add User'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_adds_catalog.inc.php b/templates/show_adds_catalog.inc.php
index 1da117a2..3cf50cd2 100644
--- a/templates/show_adds_catalog.inc.php
+++ b/templates/show_adds_catalog.inc.php
@@ -26,11 +26,11 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Starting New Song Search'), 'box box_adds_catalog');
+show_box_top(T_('Starting New Song Search'), 'box box_adds_catalog');
/* HINT: Catalog Name */
-printf(_('Starting New Song Search on %s catalog'), "<strong>[ $this->name ]</strong>");
+printf(T_('Starting New Song Search on %s catalog'), "<strong>[ $this->name ]</strong>");
echo "<br />\n";
-echo _('Found') . ': <span id="add_count_' . $this->id . '">' . _('None') . '</span><br />';
-echo _('Reading') . ':<span id="add_dir_' . $this->id . '"></span><br />';
+echo T_('Found') . ': <span id="add_count_' . $this->id . '">' . T_('None') . '</span><br />';
+echo T_('Reading') . ':<span id="add_dir_' . $this->id . '"></span><br />';
show_box_bottom();
?>
diff --git a/templates/show_admin_info.inc.php b/templates/show_admin_info.inc.php
index 09e7e505..71d2bd02 100644
--- a/templates/show_admin_info.inc.php
+++ b/templates/show_admin_info.inc.php
@@ -35,14 +35,14 @@ $flagged = Flag::get_recent(10);
$songs = Catalog::get_disabled(10);
?>
-<?php show_box_top(_('Last Ten Flagged Records')); ?>
+<?php show_box_top(T_('Last Ten Flagged Records')); ?>
<?php require Config::get('prefix') . '/templates/show_flagged.inc.php'; ?>
<?php show_box_bottom(); ?>
-<?php show_box_top(_('Disabled Songs')); ?>
+<?php show_box_top(T_('Disabled Songs')); ?>
<!-- Show Last 10 Disabled Songs -->&nbsp;
<?php require Config::get('prefix') . '/templates/show_disabled_songs.inc.php'; ?>
<div>
- <a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_disabled"><?php echo _('Show All'); ?>...</a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_disabled"><?php echo T_('Show All'); ?>...</a>
</div>
<?php show_box_bottom(); ?>
diff --git a/templates/show_admin_tools.inc.php b/templates/show_admin_tools.inc.php
index 1bff7747..568220b9 100644
--- a/templates/show_admin_tools.inc.php
+++ b/templates/show_admin_tools.inc.php
@@ -30,15 +30,15 @@ $web_path = Config::get('web_path');
$catalogs = Catalog::get_catalogs();
?>
-<?php show_box_top(_('Catalogs')); ?>
+<?php show_box_top(T_('Catalogs')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_name" />
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php foreach ($catalogs as $catalog) { ?>
<tr class="<?php echo flip_class(); ?>">
@@ -49,22 +49,22 @@ $catalogs = Catalog::get_catalogs();
</td>
<td class="cel_action">
<a href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
- <?php echo _('Add'); ?></a>&nbsp;|&nbsp;
+ <?php echo T_('Add'); ?></a>&nbsp;|&nbsp;
<a href="<?php echo $web_path; ?>/admin/catalog.php?action=update_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
- <?php echo _('Verify'); ?></a>&nbsp;|&nbsp;
+ <?php echo T_('Verify'); ?></a>&nbsp;|&nbsp;
<a href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
- <?php echo _('Clean'); ?></a>&nbsp;|&nbsp;
+ <?php echo T_('Clean'); ?></a>&nbsp;|&nbsp;
<a href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service&amp;catalogs[]=<?php echo $catalog->id; ?>">
- <?php echo _('All'); ?></a>&nbsp;|&nbsp;
+ <?php echo T_('All'); ?></a>&nbsp;|&nbsp;
<a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_delete_catalog&amp;catalog_id=<?php echo $catalog->id; ?>">
- <?php echo _('Delete'); ?></a>
+ <?php echo T_('Delete'); ?></a>
</td>
</tr>
<!--
<tr class="<?php echo flip_class(); ?>">
<td colspan="2">
- <?php echo _('Fast'); ?><input type="checkbox" name="fast" value="1" />
- <?php echo _('Gather Art'); ?><input type="checkbox" name="gather_art" value="1" />
+ <?php echo T_('Fast'); ?><input type="checkbox" name="fast" value="1" />
+ <?php echo T_('Gather Art'); ?><input type="checkbox" name="gather_art" value="1" />
</td>
</tr>
-->
@@ -72,34 +72,34 @@ $catalogs = Catalog::get_catalogs();
<?php if (!count($catalogs)) { ?>
<tr>
<td colspan="2">
- <?php echo _('No Catalogs Found'); ?>
+ <?php echo T_('No Catalogs Found'); ?>
</td>
</tr>
<?php } // end if no catalogs ?>
<tr class="th-bottom">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<div>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_all_catalogs"><?php echo _('Clean All'); ?></a>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=update_all_catalogs"><?php echo _('Verify All'); ?></a>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_all_catalogs"><?php echo _('Add to All'); ?></a>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service"><?php echo _('Update All'); ?></a><hr noshade="noshade" size="3" />
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_add_catalog"><?php echo _('Add a Catalog'); ?></a>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_clear_stats"><?php echo _('Clear Catalog Stats'); ?></a>
-<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=gather_album_art"><?php echo _('Gather Album Art'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_all_catalogs"><?php echo T_('Clean All'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=update_all_catalogs"><?php echo T_('Verify All'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_all_catalogs"><?php echo T_('Add to All'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service"><?php echo T_('Update All'); ?></a><hr noshade="noshade" size="3" />
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_add_catalog"><?php echo T_('Add a Catalog'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=show_clear_stats"><?php echo T_('Clear Catalog Stats'); ?></a>
+<a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=gather_album_art"><?php echo T_('Gather Album Art'); ?></a>
</div>
<?php show_box_bottom(); ?>
-<?php show_box_top(_('Other Tools')); ?>
+<?php show_box_top(T_('Other Tools')); ?>
<div>
- <a class="button" href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo _('Show Duplicate Songs'); ?></a>
- <a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo _('Clear Now Playing'); ?></a>
- <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=generate_config"><?php echo _('Generate New Config'); ?></a>
- <a class="button" href="<?php echo $web_path; ?>/admin/preferences.php?action=show_set_preferences"><?php echo _('Preferences Permissions'); ?></a>
- <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=export&amp;export=itunes"><?php echo _('Export To Itunes DB'); ?></a>
- <a class="button" href="<?php echo $web_path; ?>/admin/users.php?action=show_inactive&amp;days=30"><?php echo _('Show Inactive Users'); ?></a>
-<!-- <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=check_version"><?php echo _('Check for New Version'); ?></a>-->
+ <a class="button" href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo T_('Show Duplicate Songs'); ?></a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo T_('Clear Now Playing'); ?></a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=generate_config"><?php echo T_('Generate New Config'); ?></a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/preferences.php?action=show_set_preferences"><?php echo T_('Preferences Permissions'); ?></a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=export&amp;export=itunes"><?php echo T_('Export To Itunes DB'); ?></a>
+ <a class="button" href="<?php echo $web_path; ?>/admin/users.php?action=show_inactive&amp;days=30"><?php echo T_('Show Inactive Users'); ?></a>
+<!-- <a class="button" href="<?php echo $web_path; ?>/admin/system.php?action=check_version"><?php echo T_('Check for New Version'); ?></a>-->
</div>
<?php show_box_bottom(); ?>
diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php
index c91cbf09..82f5a32e 100644
--- a/templates/show_album.inc.php
+++ b/templates/show_album.inc.php
@@ -32,14 +32,14 @@ $ajax_url = Config::get('ajax_url');
// Title for this album
$title = scrub_out($album->name) . '&nbsp;(' . $album->year . ')';
if ($album->disk) {
- $title .= "<span class=\"discnb disc" . $album->disk . "\">, " . _('Disk') . " " . $album->disk . "</span>";
+ $title .= "<span class=\"discnb disc" . $album->disk . "\">, " . T_('Disk') . " " . $album->disk . "</span>";
}
$title .= '&nbsp;-&nbsp;' . $album->f_artist_link;
?>
<?php show_box_top($title,'info-box'); ?>
<div class="album_art">
<?php
- if ($album->name != _('Unknown (Orphaned)')) {
+ if ($album->name != T_('Unknown (Orphaned)')) {
$name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
$aa_url = $web_path . "/image.php?id=" . $album->id . "&amp;type=popup&amp;sid=" . session_id();
@@ -53,36 +53,36 @@ $title .= '&nbsp;-&nbsp;' . $album->f_artist_link;
<div style="display:table-cell;" id="rating_<?php echo $album->id; ?>_album">
<?php Rating::show($album->id,'album'); ?>
</div>
-<h3><?php echo _('Actions'); ?>:</h3>
+<h3><?php echo T_('Actions'); ?>:</h3>
<ul>
<li>
- <?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Add'),'play_full_' . $album->id); ?>
- <?php echo Ajax::text('?action=basket&type=album&id=' . $album->id,_('Add Album'), 'play_full_text_' . $album->id); ?>
+ <?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add', T_('Add'),'play_full_' . $album->id); ?>
+ <?php echo Ajax::text('?action=basket&type=album&id=' . $album->id, T_('Add Album'), 'play_full_text_' . $album->id); ?>
</li>
<li>
- <?php echo Ajax::button('?action=basket&type=album_random&id=' . $album->id,'random',_('Random'),'play_random_' . $album->id); ?>
- <?php echo Ajax::text('?action=basket&type=album_random&id=' . $album->id,_('Add Random from Album'), 'play_random_text_' . $album->id); ?>
+ <?php echo Ajax::button('?action=basket&type=album_random&id=' . $album->id,'random', T_('Random'),'play_random_' . $album->id); ?>
+ <?php echo Ajax::text('?action=basket&type=album_random&id=' . $album->id, T_('Add Random from Album'), 'play_random_text_' . $album->id); ?>
</li>
<?php if (Access::check('interface','75')) { ?>
<li>
- <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('delete',_('Reset Album Art')); ?></a>
- <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ?>"><?php echo _('Reset Album Art'); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('delete', T_('Reset Album Art')); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&amp;album_id=<?php echo $album->id; ?>"><?php echo T_('Reset Album Art'); ?></a>
</li>
<?php } ?>
<li>
- <a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('view',_('Find Album Art')); ?></a>
- <a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ?>"><?php echo _('Find Album Art'); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('view', T_('Find Album Art')); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ?>"><?php echo T_('Find Album Art'); ?></a>
</li>
<?php if ((Access::check('interface','50'))) { ?>
<li>
- <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('cog', _('Update from tags')); ?></a>
- <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ?>"><?php echo _('Update from tags'); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ?>"><?php echo get_user_icon('cog', T_('Update from tags')); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ?>"><?php echo T_('Update from tags'); ?></a>
</li>
<?php } ?>
<?php if (Access::check_function('batch_download')) { ?>
<li>
- <a href="<?php echo $web_path; ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>"><?php echo get_user_icon('batch_download', _('Download')); ?></a>
- <a href="<?php echo $web_path; ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>"><?php echo _('Download'); ?></a>
+ <a href="<?php echo $web_path; ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>"><?php echo get_user_icon('batch_download', T_('Download')); ?></a>
+ <a href="<?php echo $web_path; ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>"><?php echo T_('Download'); ?></a>
</li>
<?php } ?>
</ul>
diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php
index f6e05283..5d968961 100644
--- a/templates/show_album_art.inc.php
+++ b/templates/show_album_art.inc.php
@@ -31,7 +31,7 @@ $total_images = count($images);
$rows = floor($total_images/4);
$i = 0;
?>
-<?php show_box_top(_('Select New Album Art'), 'box box_album_art'); ?>
+<?php show_box_top(T_('Select New Album Art'), 'box box_album_art'); ?>
<table class="table-data">
<tr>
<?php
@@ -45,15 +45,15 @@ while ($i <= $rows) {
else {
?>
<td align="center">
- <a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo _('Album Art'); ?>" border="0" height="175" width="175" /></a>
+ <a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo T_('Album Art'); ?>" border="0" height="175" width="175" /></a>
<br />
<p align="center">
<?php if (is_array($dimensions)) { ?>
[<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['height']); ?>]
<?php } else { ?>
- <span class="error"><?php echo _('Invalid'); ?></span>
+ <span class="error"><?php echo T_('Invalid'); ?></span>
<?php } ?>
- [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&amp;image=<?php echo $key; ?>&amp;album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo _('Select'); ?></a>]
+ [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&amp;image=<?php echo $key; ?>&amp;album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo T_('Select'); ?></a>]
</p>
</td>
<?php
diff --git a/templates/show_album_row.inc.php b/templates/show_album_row.inc.php
index 5ba7e560..9c93c5c1 100644
--- a/templates/show_album_row.inc.php
+++ b/templates/show_album_row.inc.php
@@ -28,8 +28,8 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Add'),'add_album_' . $album->id); ?>
- <?php echo Ajax::button('?action=basket&type=album_random&id=' . $album->id,'random',_('Random'),'random_album_' . $album->id); ?>
+ <?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add', T_('Add'),'add_album_' . $album->id); ?>
+ <?php echo Ajax::button('?action=basket&type=album_random&id=' . $album->id,'random', T_('Random'),'random_album_' . $album->id); ?>
</td>
<?php
if (Art::is_enabled()) {
@@ -50,15 +50,15 @@ if (Art::is_enabled()) {
<td class="cel_action">
<?php if (Config::get('sociable')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/shout.php?action=show_add_shout&amp;type=album&amp;id=<?php echo $album->id; ?>">
- <?php echo get_user_icon('comment',_('Post Shout')); ?>
+ <?php echo get_user_icon('comment', T_('Post Shout')); ?>
</a>
<?php } ?>
<?php if (Access::check_function('batch_download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/batch.php?action=album&amp;id=<?php echo $album->id; ?>">
- <?php echo get_user_icon('batch_download',_('Batch Download')); ?>
+ <?php echo get_user_icon('batch_download', T_('Batch Download')); ?>
</a>
<?php } ?>
<?php if (Access::check('interface','50')) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=album_row&id=' . $album->id,'edit',_('Edit'),'edit_album_' . $album->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=album_row&id=' . $album->id,'edit', T_('Edit'),'edit_album_' . $album->id); ?>
<?php } ?>
</td>
diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php
index cafa4c4e..d0d4d0f2 100644
--- a/templates/show_albums.inc.php
+++ b/templates/show_albums.inc.php
@@ -45,17 +45,17 @@ $ajax_url = Config::get('ajax_url');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
<?php if (Art::is_enabled()) { ?>
- <th class="cel_cover"><?php echo _('Cover'); ?></th>
+ <th class="cel_cover"><?php echo T_('Cover'); ?></th>
<?php } ?>
- <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name',_('Album'),'album_sort_name'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist',_('Artist'),'album_sort_artist'); ?></th>
- <th class="cel_songs"><?php echo _('Songs'); ?></th>
- <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year',_('Year'),'album_sort_year'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="col_rating"><?php echo _('Rating'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name', T_('Album'),'album_sort_name'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist', T_('Artist'),'album_sort_artist'); ?></th>
+ <th class="cel_songs"><?php echo T_('Songs'); ?></th>
+ <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year', T_('Year'),'album_sort_year'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="col_rating"><?php echo T_('Rating'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
<?php
if (Config::get('ratings')) {
@@ -72,21 +72,21 @@ $ajax_url = Config::get('ajax_url');
<?php } //end foreach ($albums as $album) ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="7"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="7"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
<?php if (Art::is_enabled()) { ?>
- <th class="cel_cover"><?php echo _('Cover'); ?></th>
+ <th class="cel_cover"><?php echo T_('Cover'); ?></th>
<?php } ?>
- <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name',_('Album'),'album_sort_name_bottom'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_songs"><?php echo _('Songs'); ?></th>
- <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year',_('Year'),'album_sort_year_bottom'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="col_rating"><?php echo _('Rating'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=name', T_('Album'),'album_sort_name_bottom'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_songs"><?php echo T_('Songs'); ?></th>
+ <th class="cel_year"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=year', T_('Year'),'album_sort_year_bottom'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="col_rating"><?php echo T_('Rating'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_all_popular.inc.php b/templates/show_all_popular.inc.php
index 447d31c2..fd139c93 100644
--- a/templates/show_all_popular.inc.php
+++ b/templates/show_all_popular.inc.php
@@ -30,25 +30,25 @@
<table class="tabledata">
<tr>
<td valign="top" >
- <?php show_info_box(_('Most Popular Artists'), 'artist', $artists); ?>
+ <?php show_info_box(T_('Most Popular Artists'), 'artist', $artists); ?>
</td>
<td valign="top">
- <?php show_info_box(_('Most Popular Albums'), '', $albums); ?>
+ <?php show_info_box(T_('Most Popular Albums'), '', $albums); ?>
</td>
<td valign="top">
- <?php show_info_box(_('Most Popular Genres'), '', $genres); ?>
+ <?php show_info_box(T_('Most Popular Genres'), '', $genres); ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td valign="top">
- <?php show_info_box(_('Most Popular Songs'), 'song', $songs); ?>
+ <?php show_info_box(T_('Most Popular Songs'), 'song', $songs); ?>
</td>
<td valign="top">
- <?php show_info_box(_('Most Popular Live Streams'),'live_stream',$live_streams); ?>
+ <?php show_info_box(T_('Most Popular Live Streams'),'live_stream',$live_streams); ?>
</td>
<td valign="top">
- <?php show_info_box(_('Most Popular Tags'),'tags',$tags); ?>
+ <?php show_info_box(T_('Most Popular Tags'),'tags',$tags); ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php
index 2c1d9fab..60090c29 100644
--- a/templates/show_artist.inc.php
+++ b/templates/show_artist.inc.php
@@ -39,43 +39,43 @@ if (Config::get('ratings')) {
</div>
<?php } ?>
<div id="information_actions">
-<h3><?php echo _('Actions'); ?>:</h3>
+<h3><?php echo T_('Actions'); ?>:</h3>
<ul>
<li>
<?php if ($object_type == 'album') { ?>
<a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>">
- <?php echo get_user_icon('view', _("Show All Songs By %s")); ?>
- <?php printf(_("Show All Songs By %s"), $artist->f_name); ?></a>
+ <?php echo get_user_icon('view', T_("Show All Songs By %s")); ?>
+ <?php printf(T_("Show All Songs By %s"), $artist->f_name); ?></a>
<?php } else { ?>
<a href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $artist->id; ?>">
- <?php echo get_user_icon('view', _("Show Albums By %s")); ?>
- <?php printf(_("Show Albums By %s"), $artist->f_name); ?></a>
+ <?php echo get_user_icon('view', T_("Show Albums By %s")); ?>
+ <?php printf(T_("Show Albums By %s"), $artist->f_name); ?></a>
<?php } ?>
</li>
<li>
<?php /* HINT: Artist Fullname */ ?>
- <?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add',_('Add'),'add_' . $artist->id); ?>
- <?php echo Ajax::text('?action=basket&type=artist&id=' . $artist->id,sprintf(_('Add All Songs By %s'), $artist->f_name),'add_text_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add', T_('Add'),'add_' . $artist->id); ?>
+ <?php echo Ajax::text('?action=basket&type=artist&id=' . $artist->id,sprintf(T_('Add All Songs By %s'), $artist->f_name),'add_text_' . $artist->id); ?>
</li>
<li>
<?php /* HINT: Artist Fullname */ ?>
- <?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random',_('Random'),'random_' . $artist->id); ?>
- <?php echo Ajax::text('?action=basket&type=artist_random&id=' . $artist->id, sprintf(_('Add Random Songs By %s'), $artist->f_name),'random_text_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random', T_('Random'),'random_' . $artist->id); ?>
+ <?php echo Ajax::text('?action=basket&type=artist_random&id=' . $artist->id, sprintf(T_('Add Random Songs By %s'), $artist->f_name),'random_text_' . $artist->id); ?>
</li>
<?php if (Access::check('interface','50')) { ?>
<li>
- <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('cog', _('Update from tags')); ?></a>
- <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo _('Update from tags'); ?></a>
+ <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('cog', T_('Update from tags')); ?></a>
+ <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo T_('Update from tags'); ?></a>
</li>
<?php } ?>
<?php if (Access::check_function('batch_download')) { ?>
<li>
- <a href="<?php echo $web_path; ?>/batch.php?action=artist&id=<?php echo $artist->id; ?>"><?php echo get_user_icon('batch_download', _('Download')); ?></a>
- <a href="<?php echo $web_path; ?>/batch.php?action=artist&id=<?php echo $artist->id; ?>"><?php echo _('Download'); ?></a>
+ <a href="<?php echo $web_path; ?>/batch.php?action=artist&id=<?php echo $artist->id; ?>"><?php echo get_user_icon('batch_download', T_('Download')); ?></a>
+ <a href="<?php echo $web_path; ?>/batch.php?action=artist&id=<?php echo $artist->id; ?>"><?php echo T_('Download'); ?></a>
</li>
<?php } ?>
<li>
- <input type="checkbox" id="show_artist_artCB" <?php echo $string = Art::is_enabled() ? 'checked="checked"' : ''; ?>/> <?php echo _('Show Art'); ?>
+ <input type="checkbox" id="show_artist_artCB" <?php echo $string = Art::is_enabled() ? 'checked="checked"' : ''; ?>/> <?php echo T_('Show Art'); ?>
<?php echo Ajax::observe('show_artist_artCB', 'click', Ajax::action('?page=browse&action=show_art&browse_id=' . $browse->id,'')); ?>
</ul>
</div>
diff --git a/templates/show_artist_row.inc.php b/templates/show_artist_row.inc.php
index f5902168..91bf28b2 100644
--- a/templates/show_artist_row.inc.php
+++ b/templates/show_artist_row.inc.php
@@ -28,8 +28,8 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add',_('Add'),'add_artist_' . $artist->id); ?>
- <?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random',_('Random'),'random_artist_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add', T_('Add'),'add_artist_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random', T_('Random'),'random_artist_' . $artist->id); ?>
</td>
<td class="cel_artist"><?php echo $artist->f_name_link; ?></td>
<td class="cel_songs"><?php echo $artist->songs; ?></td>
@@ -40,10 +40,10 @@
<td class="cel_action">
<?php if (Access::check_function('batch_download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/batch.php?action=artist&amp;id=<?php echo $artist->id; ?>">
- <?php echo get_user_icon('batch_download','',_('Batch Download')); ?>
+ <?php echo get_user_icon('batch_download','', T_('Batch Download')); ?>
</a>
<?php } ?>
<?php if (Access::check('interface','50')) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=artist_row&id=' . $artist->id,'edit',_('Edit'),'edit_artist_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=artist_row&id=' . $artist->id,'edit', T_('Edit'),'edit_artist_' . $artist->id); ?>
<?php } ?>
</td>
diff --git a/templates/show_artists.inc.php b/templates/show_artists.inc.php
index 2d7b2d02..eba96932 100644
--- a/templates/show_artists.inc.php
+++ b/templates/show_artists.inc.php
@@ -43,14 +43,14 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=artist&sort=name',_('Artist'),'artist_sort_name'); ?></th>
- <th class="cel_songs"><?php echo _('Songs'); ?></th>
- <th class="cel_albums"><?php echo _('Albums'); ?></th>
- <th class="cel_time"><?php echo _('Time'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_rating"> <?php echo _('Rating'); ?> </th>
- <th class="cel_action"> <?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=artist&sort=name', T_('Artist'),'artist_sort_name'); ?></th>
+ <th class="cel_songs"><?php echo T_('Songs'); ?></th>
+ <th class="cel_albums"><?php echo T_('Albums'); ?></th>
+ <th class="cel_time"><?php echo T_('Time'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_rating"> <?php echo T_('Rating'); ?> </th>
+ <th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
<?php
// Cache the ratings we are going to use
@@ -67,18 +67,18 @@ foreach ($object_ids as $artist_id) {
<?php } //end foreach ($artists as $artist) ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="5"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="5"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=artist&sort=name',_('Artist'),'artist_sort_name_bottom'); ?></th>
- <th class="cel_songs"> <?php echo _('Songs'); ?> </th>
- <th class="cel_albums"> <?php echo _('Albums'); ?> </th>
- <th class="cel_time"> <?php echo _('Time'); ?> </th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_rating"> <?php echo _('Rating'); ?> </th>
- <th class="cel_action"> <?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=artist&sort=name', T_('Artist'),'artist_sort_name_bottom'); ?></th>
+ <th class="cel_songs"> <?php echo T_('Songs'); ?> </th>
+ <th class="cel_albums"> <?php echo T_('Albums'); ?> </th>
+ <th class="cel_time"> <?php echo T_('Time'); ?> </th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_rating"> <?php echo T_('Rating'); ?> </th>
+ <th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_big_art.inc.php b/templates/show_big_art.inc.php
index d537f072..1efdb14b 100644
--- a/templates/show_big_art.inc.php
+++ b/templates/show_big_art.inc.php
@@ -33,11 +33,11 @@ $htmllang = str_replace("_","-",Config::get('lang'));
<head>
<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" />
-<title><?php echo Config::get('site_title'); ?> - <?php echo _("Album Art"); ?></title>
+<title><?php echo Config::get('site_title'); ?> - <?php echo T_("Album Art"); ?></title>
</head>
<body onload="self.resizeTo(document.images[0].width+30, document.images[0].height+70)">
<?php
-echo "<a href=\"javascript:window.close()\" title=\"" . _('Click to close window') . "\">";
+echo "<a href=\"javascript:window.close()\" title=\"" . T_('Click to close window') . "\">";
echo "<img src=\"" . Config::get('web_path') . "/image.php?id=" . scrub_out($_GET['id']) . "&amp;sid=" . session_id() . "\" border=\"0\" alt=\"\" />";
echo "</a>";
?>
diff --git a/templates/show_catalog_row.inc.php b/templates/show_catalog_row.inc.php
index 0f0ee5cf..b4e70e85 100644
--- a/templates/show_catalog_row.inc.php
+++ b/templates/show_catalog_row.inc.php
@@ -34,10 +34,10 @@ $web_path = Config::get('web_path');
<td class="cel_lastadd"><?php echo scrub_out($catalog->f_add); ?></td>
<td class="cel_lastclean"><?php echo scrub_out($catalog->f_clean); ?></td>
<td class="cel_action">
- <a href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo _('Add'); ?></a>
- | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=update_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo _('Verify'); ?></a>
- | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo _('Clean'); ?></a>
- | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo _('Update'); ?></a>
- | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=gather_album_art&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo _('Gather Art'); ?></a>
- | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_delete_catalog&amp;catalog_id=<?php echo $catalog->id; ?>"><?php echo _('Delete'); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo T_('Add'); ?></a>
+ | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=update_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo T_('Verify'); ?></a>
+ | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo T_('Clean'); ?></a>
+ | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo T_('Update'); ?></a>
+ | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=gather_album_art&amp;catalogs[]=<?php echo $catalog->id; ?>"><?php echo T_('Gather Art'); ?></a>
+ | <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_delete_catalog&amp;catalog_id=<?php echo $catalog->id; ?>"><?php echo T_('Delete'); ?></a>
</td>
diff --git a/templates/show_catalogs.inc.php b/templates/show_catalogs.inc.php
index 5c274da4..4939c488 100644
--- a/templates/show_catalogs.inc.php
+++ b/templates/show_catalogs.inc.php
@@ -38,12 +38,12 @@
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_catalog"><?php echo _('Name'); ?></th>
- <th class="cel_path"><?php echo _('Path'); ?></th>
- <th class="cel_lastverify"><?php echo _('Last Verify'); ?></th>
- <th class="cel_lastadd"><?php echo _('Last Add'); ?></th>
- <th class="cel_lastclean"><?php echo _('Last Clean'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_catalog"><?php echo T_('Name'); ?></th>
+ <th class="cel_path"><?php echo T_('Path'); ?></th>
+ <th class="cel_lastverify"><?php echo T_('Last Verify'); ?></th>
+ <th class="cel_lastadd"><?php echo T_('Last Add'); ?></th>
+ <th class="cel_lastclean"><?php echo T_('Last Clean'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
<?php
foreach ($object_ids as $catalog_id) {
@@ -57,17 +57,17 @@
<tr class="<?php echo flip_class(); ?>">
<td colspan="6">
<?php if (!count($object_ids)) { ?>
- <span class="fatalerror"><?php echo _('Not Enough Data'); ?></span>
+ <span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span>
<?php } ?>
</td>
</tr>
<tr class="th-bottom">
- <th class="cel_catalog"><?php echo _('Name'); ?></th>
- <th class="cel_path"><?php echo _('Path'); ?></th>
- <th class="cel_lastverify"><?php echo _('Last Verify'); ?></th>
- <th class="cel_lastadd"><?php echo _('Last Add'); ?></th>
- <th class="cel_lastclean"><?php echo _('Last Clean'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_catalog"><?php echo T_('Name'); ?></th>
+ <th class="cel_path"><?php echo T_('Path'); ?></th>
+ <th class="cel_lastverify"><?php echo T_('Last Verify'); ?></th>
+ <th class="cel_lastadd"><?php echo T_('Last Add'); ?></th>
+ <th class="cel_lastclean"><?php echo T_('Last Clean'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_clean_catalog.inc.php b/templates/show_clean_catalog.inc.php
index 23eab269..ad73cd8b 100644
--- a/templates/show_clean_catalog.inc.php
+++ b/templates/show_clean_catalog.inc.php
@@ -28,9 +28,9 @@
show_box_top();
/* HINT: Catalog Name */
-printf(_('Cleaning the %s Catalog'), "<strong>[ $this->name ]</strong>");
+printf(T_('Cleaning the %s Catalog'), "<strong>[ $this->name ]</strong>");
echo "...<br />";
-echo _('Checking') . ': <span id="clean_count_' . $this->id . '"></span><br />';
-echo _('Reading') . ':<span id="clean_dir_' . $this->id . '"></span><br />';
+echo T_('Checking') . ': <span id="clean_count_' . $this->id . '"></span><br />';
+echo T_('Reading') . ':<span id="clean_dir_' . $this->id . '"></span><br />';
show_box_bottom();
?>
diff --git a/templates/show_confirmation.inc.php b/templates/show_confirmation.inc.php
index 0f46556e..74b4044d 100644
--- a/templates/show_confirmation.inc.php
+++ b/templates/show_confirmation.inc.php
@@ -32,12 +32,12 @@ $confirmation = Core::form_register($form_name);
<?php echo $text; ?>
<br />
<form method="post" action="<?php echo $path; ?>" style="display:inline;">
- <input type="submit" value="<?php echo _('Continue'); ?>" />
+ <input type="submit" value="<?php echo T_('Continue'); ?>" />
<?php echo $confirmation; ?>
</form>
<?php if ($cancel) { ?>
<form method="post" action="<?php echo Config::get('web_path') . '/' . return_referer(); ?>" style="display:inline;">
- <input type="submit" value="<?php echo _('Cancel'); ?>" />
+ <input type="submit" value="<?php echo T_('Cancel'); ?>" />
<?php echo $confirmation; ?>
</form>
<?php } ?>
diff --git a/templates/show_create_democratic.inc.php b/templates/show_create_democratic.inc.php
index 757954f5..f84f6ba0 100644
--- a/templates/show_create_democratic.inc.php
+++ b/templates/show_create_democratic.inc.php
@@ -26,45 +26,45 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Configure Democratic Playlist')); ?>
+show_box_top(T_('Configure Democratic Playlist')); ?>
<form method="post" action="<?php echo Config::get('web_path'); ?>/democratic.php?action=create" enctype="multipart/form-data">
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr>
- <td><?php echo _('Name'); ?></td>
+ <td><?php echo T_('Name'); ?></td>
<td><input type="text" name="name" value="<?php echo scrub_out($democratic->name); ?>" /></td>
</tr>
<tr>
- <td><?php echo _('Base Playlist'); ?></td>
+ <td><?php echo T_('Base Playlist'); ?></td>
<td><?php show_playlist_select('democratic',$democratic->base_playlist); ?></td>
</tr>
<tr>
- <td><?php echo _('Cooldown Time'); ?></td>
- <td><input type="text" size="4" maxlength="6" name="cooldown" value="<?php echo $democratic->cooldown; ?>" /><?php echo _('minutes'); ?></td>
+ <td><?php echo T_('Cooldown Time'); ?></td>
+ <td><input type="text" size="4" maxlength="6" name="cooldown" value="<?php echo $democratic->cooldown; ?>" /><?php echo T_('minutes'); ?></td>
</tr>
<!--
<tr>
- <td><?php echo _('Level'); ?></td>
+ <td><?php echo T_('Level'); ?></td>
<td>
<select name="level">
- <option value="25"><?php echo _('User'); ?></option>
- <option value="50"><?php echo _('Content Manager'); ?></option>
- <option value="75"><?php echo _('Catalog Manager'); ?></option>
- <option value="100"><?php echo _('Admin'); ?></option>
+ <option value="25"><?php echo T_('User'); ?></option>
+ <option value="50"><?php echo T_('Content Manager'); ?></option>
+ <option value="75"><?php echo T_('Catalog Manager'); ?></option>
+ <option value="100"><?php echo T_('Admin'); ?></option>
</select>
<tr>
- <td><?php echo _('Make Default'); ?></td>
+ <td><?php echo T_('Make Default'); ?></td>
<td><input type="checkbox" name="make_default" value="1" /></td>
</tr>
-->
<tr>
- <td><?php echo _('Force Democratic Play'); ?></td>
+ <td><?php echo T_('Force Democratic Play'); ?></td>
<td><input type="checkbox" value="1" name="force_democratic" /></td>
</tr>
</table>
<div class="formValidation">
<?php echo Core::form_register('create_democratic'); ?>
- <input type="submit" value="<?php echo _('Update'); ?>" />
+ <input type="submit" value="<?php echo T_('Update'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_debug.inc.php b/templates/show_debug.inc.php
index 3722f2d4..8a3dbfa1 100644
--- a/templates/show_debug.inc.php
+++ b/templates/show_debug.inc.php
@@ -27,44 +27,44 @@
*/
?>
-<?php show_box_top(_('Debug Tools'), 'box box_debug_tools'); ?>
+<?php show_box_top(T_('Debug Tools'), 'box box_debug_tools'); ?>
<div id="information_actions">
<ul>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=generate_config"><?php echo get_user_icon('cog', _('Generate Configuration')); ?></a>
- <?php echo _('Generate Configuration'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=generate_config"><?php echo get_user_icon('cog', T_('Generate Configuration')); ?></a>
+ <?php echo T_('Generate Configuration'); ?>
</li>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=reset_db_charset"><?php echo get_user_icon('server_lightning', _('Set Database Charset')); ?></a>
- <?php echo _('Set Database Charset'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/admin/system.php?action=reset_db_charset"><?php echo get_user_icon('server_lightning', T_('Set Database Charset')); ?></a>
+ <?php echo T_('Set Database Charset'); ?>
</li>
</ul>
</div>
<?php show_box_bottom(); ?>
-<?php show_box_top(_('PHP Settings'), 'box box_php_settings'); ?>
+<?php show_box_top(T_('PHP Settings'), 'box box_php_settings'); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_php_setting">
<col id="col_php_value">
</colgroup>
<tr class="th-top">
- <th class="cel_php_setting"><?php echo _('Setting'); ?></th>
- <th class="cel_php_value"><?php echo _('Value'); ?></th>
+ <th class="cel_php_setting"><?php echo T_('Setting'); ?></th>
+ <th class="cel_php_value"><?php echo T_('Value'); ?></th>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Memory Limit'); ?></td>
+ <td><?php echo T_('Memory Limit'); ?></td>
<td><?php echo ini_get('memory_limit'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Maximum Execution Time'); ?></td>
+ <td><?php echo T_('Maximum Execution Time'); ?></td>
<td><?php echo ini_get('max_execution_time'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Override Execution Time'); ?></td>
- <td><?php set_time_limit(0); echo ini_get('max_execution_time') ? _('Failed') : _('Succeeded'); ?></td>
+ <td><?php echo T_('Override Execution Time'); ?></td>
+ <td><?php set_time_limit(0); echo ini_get('max_execution_time') ? T_('Failed') : T_('Succeeded'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Safe Mode'); ?></td>
+ <td><?php echo T_('Safe Mode'); ?></td>
<td><?php echo print_bool(ini_get('safe_mode')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
@@ -72,33 +72,33 @@
<td><?php echo ini_get('open_basedir'); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Zlib Support'); ?></td>
+ <td><?php echo T_('Zlib Support'); ?></td>
<td><?php echo print_bool(function_exists('gzcompress')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('GD Support'); ?></td>
+ <td><?php echo T_('GD Support'); ?></td>
<td><?php echo print_bool(function_exists('ImageCreateFromString')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Iconv Support'); ?></td>
+ <td><?php echo T_('Iconv Support'); ?></td>
<td><?php echo print_bool(function_exists('iconv')); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Gettext Support'); ?></td>
+ <td><?php echo T_('Gettext Support'); ?></td>
<td><?php echo print_bool(function_exists('bindtextdomain')); ?></td>
</tr>
</table>
<?php show_box_bottom(); ?>
-<?php show_box_top(_('Current Configuration'), 'box box_current_configuration'); ?>
+<?php show_box_top(T_('Current Configuration'), 'box box_current_configuration'); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_configuration">
<col id="col_value">
</colgroup>
<tr class="th-top">
- <th class="cel_configuration"><?php echo _('Preference'); ?></th>
- <th class="cel_value"><?php echo _('Value'); ?></th>
+ <th class="cel_configuration"><?php echo T_('Preference'); ?></th>
+ <th class="cel_value"><?php echo T_('Value'); ?></th>
</tr>
<?php foreach ($configuration as $key=>$value) {
if ($key == 'database_password' || $key == 'mysql_password') { $value = '*********'; }
diff --git a/templates/show_democratic.inc.php b/templates/show_democratic.inc.php
index 0bac3584..3430c042 100644
--- a/templates/show_democratic.inc.php
+++ b/templates/show_democratic.inc.php
@@ -27,29 +27,29 @@
*/
/* HINT: Democratic Name */
-$string = $democratic->is_enabled() ? sprintf(_('%s Playlist') ,$democratic->name) : _('Democratic Playlist');
+$string = $democratic->is_enabled() ? sprintf(T_('%s Playlist') ,$democratic->name) : T_('Democratic Playlist');
show_box_top($string , 'info-box');
?>
<div id="information_actions">
<ul>
<?php if ($democratic->is_enabled()) { ?>
<li>
- <?php echo _('Cooldown'); ?>:<?php echo $democratic->f_cooldown; ?>
+ <?php echo T_('Cooldown'); ?>:<?php echo $democratic->f_cooldown; ?>
</li>
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/democratic.php?action=manage"><?php echo get_user_icon('server_lightning',_('Configure Democratic Playlist')); ?></a>
- <?php echo _('Configure Democratic Playlist'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/democratic.php?action=manage"><?php echo get_user_icon('server_lightning', T_('Configure Democratic Playlist')); ?></a>
+ <?php echo T_('Configure Democratic Playlist'); ?>
</li>
<?php if ($democratic->is_enabled()) { ?>
<li>
- <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . scrub_out($democratic->id),'all',_('Play'),'play_democratic'); ?>
- <?php echo _('Play Democratic Playlist'); ?>
+ <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . scrub_out($democratic->id),'all', T_('Play'),'play_democratic'); ?>
+ <?php echo T_('Play Democratic Playlist'); ?>
</li>
<li>
- <?php echo Ajax::button('?page=democratic&action=clear_playlist&democratic_id=' . scrub_out($democratic->id),'delete',_('Clear Playlist'),'clear_democratic'); ?>
- <?php echo _('Clear Playlist'); ?>
+ <?php echo Ajax::button('?page=democratic&action=clear_playlist&democratic_id=' . scrub_out($democratic->id),'delete', T_('Clear Playlist'),'clear_democratic'); ?>
+ <?php echo T_('Clear Playlist'); ?>
</li>
<?php } ?>
<?php } ?>
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&amp;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
diff --git a/templates/show_denied.inc.php b/templates/show_denied.inc.php
index a92917c3..5b6dbd77 100644
--- a/templates/show_denied.inc.php
+++ b/templates/show_denied.inc.php
@@ -36,16 +36,16 @@
</head>
<body bgcolor="#f0f0f0">
<div id="header">
-<h1>Ampache :: <?php echo _('Access Denied'); ?></h1>
-<p><?php echo _('This event has been logged.'); ?></p>
+<h1>Ampache :: <?php echo T_('Access Denied'); ?></h1>
+<p><?php echo T_('This event has been logged.'); ?></p>
</div>
<p class="error">
<?php if (!Config::get('demo_mode')) { ?>
-<?php echo _('You have been redirected to this page because you do not have access to this function.'); ?></p><p class="error">
-<?php echo _('If you believe this is an error please contact an Ampache administrator.'); ?></p><p class="error">
-<?php echo _('This event has been logged.'); ?>
+<?php echo T_('You have been redirected to this page because you do not have access to this function.'); ?></p><p class="error">
+<?php echo T_('If you believe this is an error please contact an Ampache administrator.'); ?></p><p class="error">
+<?php echo T_('This event has been logged.'); ?>
<?php } else { ?>
-<?php echo _("You have been redirected to this page because you attempted to access a function that is disabled in the demo."); ?>
+<?php echo T_("You have been redirected to this page because you attempted to access a function that is disabled in the demo."); ?>
<?php } ?>
</p>
<div id="bottom">
diff --git a/templates/show_disabled_songs.inc.php b/templates/show_disabled_songs.inc.php
index e914d657..ff60333b 100644
--- a/templates/show_disabled_songs.inc.php
+++ b/templates/show_disabled_songs.inc.php
@@ -39,12 +39,12 @@
<col id="col_additiontime" />
</colgroup>
<tr class="th-top">
- <th class="cel_select"><a href="#" onclick="check_select('song'); return false;"><?php echo _('Select'); ?></a></th>
- <th class="cel_song"><?php echo _('Title'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_filename"><?php echo _('Filename'); ?></th>
- <th class="cel_additiontime"><?php echo _('Addition Time'); ?></th>
+ <th class="cel_select"><a href="#" onclick="check_select('song'); return false;"><?php echo T_('Select'); ?></a></th>
+ <th class="cel_song"><?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_filename"><?php echo T_('Filename'); ?></th>
+ <th class="cel_additiontime"><?php echo T_('Addition Time'); ?></th>
</tr>
<?php foreach ($songs as $song) { ?>
<tr class="<?php echo flip_class(); ?>">
@@ -58,20 +58,20 @@
</tr>
<?php } if (!count($songs)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="7"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+ <td colspan="7"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_select"><a href="#" onclick="check_select('song'); return false;"><?php echo _('Select'); ?></a></th>
- <th class="cel_song"><?php echo _('Title'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_filename"><?php echo _('Filename'); ?></th>
- <th class="cel_additiontime"><?php echo _('Addition Time'); ?></th>
+ <th class="cel_select"><a href="#" onclick="check_select('song'); return false;"><?php echo T_('Select'); ?></a></th>
+ <th class="cel_song"><?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_filename"><?php echo T_('Filename'); ?></th>
+ <th class="cel_additiontime"><?php echo T_('Addition Time'); ?></th>
</tr>
</table>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Remove'); ?>" />&nbsp;&nbsp;
+ <input class="button" type="submit" value="<?php echo T_('Remove'); ?>" />&nbsp;&nbsp;
<input type="hidden" name="action" value="remove_disabled" />
</div>
</form>
diff --git a/templates/show_duplicate.inc.php b/templates/show_duplicate.inc.php
index 6e35cff1..5999e9e2 100644
--- a/templates/show_duplicate.inc.php
+++ b/templates/show_duplicate.inc.php
@@ -27,26 +27,26 @@
*/
?>
-<?php show_box_top(_('Find Duplicates'), 'box box_duplicate'); ?>
+<?php show_box_top(T_('Find Duplicates'), 'box box_duplicate'); ?>
<form name="duplicates" action="<?php echo Config::get('web_path'); ?>/admin/duplicates.php?action=find_duplicates" method="post" enctype="multipart/form-data" >
<table cellspacing="0" cellpadding="3">
<tr>
- <td valign="top"><strong><?php echo _('Search Type'); ?>:</strong></td>
+ <td valign="top"><strong><?php echo T_('Search Type'); ?>:</strong></td>
<td>
<?php
$name = 'check_' . scrub_in($_REQUEST['search_type']);
${$name} = ' checked="checked" ';
?>
- <input type="radio" name="search_type" value="title"<?php echo $check_title; ?>/><?php echo _('Title'); ?><br />
- <input type="radio" name="search_type" value="artist_title"<?php echo $check_artist_title; ?>/><?php echo _('Artist and Title'); ?><br />
- <input type="radio" name="search_type" value="artist_album_title"<?php echo $check_artist_album_title; ?>/><?php echo _('Artist, Album and Title'); ?><br />
+ <input type="radio" name="search_type" value="title"<?php echo $check_title; ?>/><?php echo T_('Title'); ?><br />
+ <input type="radio" name="search_type" value="artist_title"<?php echo $check_artist_title; ?>/><?php echo T_('Artist and Title'); ?><br />
+ <input type="radio" name="search_type" value="artist_album_title"<?php echo $check_artist_album_title; ?>/><?php echo T_('Artist, Album and Title'); ?><br />
<?php if ($_REQUEST['search_disabled']) { $disabled_check = ' checked="checked"'; } ?>
- <input type="checkbox" name="search_disabled" value="1" <?php echo $disabled_check; ?>/><?php echo _('Search Disabled Songs'); ?><br />
+ <input type="checkbox" name="search_disabled" value="1" <?php echo $disabled_check; ?>/><?php echo T_('Search Disabled Songs'); ?><br />
</td>
</tr>
</table>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Find Duplicates'); ?>" />
+ <input type="submit" value="<?php echo T_('Find Duplicates'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_duplicates.inc.php b/templates/show_duplicates.inc.php
index 0eccaa85..d5305c97 100644
--- a/templates/show_duplicates.inc.php
+++ b/templates/show_duplicates.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Duplicate Songs')); ?>
+<?php show_box_top(T_('Duplicate Songs')); ?>
<form method="post" enctype="multipart/form-data" action="<?php echo $web_path; ?>/admin/flag.php?action=disable">
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
@@ -41,14 +41,14 @@
<col id="col_filename" />
</colgroup>
<tr class="th-top">
- <th class="cel_disable"><?php echo _('Disable'); ?></th>
- <th class="cel_song"><?php echo _('Song'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_length"><?php echo _('Length'); ?></th>
- <th class="cel_bitrate"><?php echo _('Bitrate'); ?></th>
- <th class="cel_size"><?php echo _('Size'); ?></th>
- <th class="cel_filename"><?php echo _('Filename'); ?></th>
+ <th class="cel_disable"><?php echo T_('Disable'); ?></th>
+ <th class="cel_song"><?php echo T_('Song'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_length"><?php echo T_('Length'); ?></th>
+ <th class="cel_bitrate"><?php echo T_('Bitrate'); ?></th>
+ <th class="cel_size"><?php echo T_('Size'); ?></th>
+ <th class="cel_filename"><?php echo T_('Filename'); ?></th>
</tr>
<?php
foreach ($duplicates as $item) {
@@ -65,7 +65,7 @@
?>
<tr id="<?php echo $row_key; ?>" class="<?php echo $current_class; ?>">
<td class="cel_disable" id="<?php echo($button_flip_state_id); ?>">
- <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id,$button,_(ucfirst($button)),'flip_state_' . $song_id); ?>
+ <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id,$button, T_(ucfirst($button)),'flip_state_' . $song_id); ?>
</td>
<td class="cel_song"><?php echo $song->f_link; ?></td>
<td class="cel_artist"><?php echo $song->f_artist_link; ?></td>
@@ -80,14 +80,14 @@
} // end foreach ($flags as $flag)
?>
<tr class="th-bottom">
- <th class="cel_disable"><?php echo _('Disable'); ?></th>
- <th class="cel_song"><?php echo _('Song'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_length"><?php echo _('Length'); ?></th>
- <th class="cel_bitrate"><?php echo _('Bitrate'); ?></th>
- <th class="cel_size"><?php echo _('Size'); ?></th>
- <th class="cel_filename"><?php echo _('Filename'); ?></th>
+ <th class="cel_disable"><?php echo T_('Disable'); ?></th>
+ <th class="cel_song"><?php echo T_('Song'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_length"><?php echo T_('Length'); ?></th>
+ <th class="cel_bitrate"><?php echo T_('Bitrate'); ?></th>
+ <th class="cel_size"><?php echo T_('Size'); ?></th>
+ <th class="cel_filename"><?php echo T_('Filename'); ?></th>
</tr>
</table>
</form>
diff --git a/templates/show_dynamic.inc.php b/templates/show_dynamic.inc.php
index ead83af9..89f52ac9 100644
--- a/templates/show_dynamic.inc.php
+++ b/templates/show_dynamic.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Advanced Random Rules')); ?>
+<?php show_box_top(T_('Advanced Random Rules')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_field" />
@@ -36,10 +36,10 @@
<col id="col_method" />
</colgroup>
<tr class="th-top">
- <th class="col_field"><?php echo _('Field'); ?></th>
- <th class="col_operator"><?php echo _('Operator'); ?></th>
- <th class="col_value"><?php echo _('Value'); ?></th>
- <th class="col_method"><?php echo _('Method'); ?></th>
+ <th class="col_field"><?php echo T_('Field'); ?></th>
+ <th class="col_operator"><?php echo T_('Operator'); ?></th>
+ <th class="col_value"><?php echo T_('Value'); ?></th>
+ <th class="col_method"><?php echo T_('Method'); ?></th>
</tr>
<tr>
<td valign="top">
@@ -61,7 +61,7 @@
<option value="gte">&gt;=</option>
<option value="lt">&lt;</option>
<option value="lte">&lt;=</option>
- <option value="like"><?php echo _('Like'); ?></option>
+ <option value="like"><?php echo T_('Like'); ?></option>
</select>
</td>
<td valign="top">
@@ -69,20 +69,20 @@
</td>
<td valign="top">
<select name="method">
- <option value="OR"><?php echo _('OR'); ?></option>
- <option value="AND"><?php echo _('AND'); ?></option>
+ <option value="OR"><?php echo T_('OR'); ?></option>
+ <option value="AND"><?php echo T_('AND'); ?></option>
</select>
</td>
</tr>
<tr>
<td>
- <?php echo Ajax::button('?page=random&action=add_rule','add',_('Add Rule'),'add_random_rule'); ?><?php echo _('Add Rule'); ?>
+ <?php echo Ajax::button('?page=random&action=add_rule','add', T_('Add Rule'),'add_random_rule'); ?><?php echo T_('Add Rule'); ?>
</td>
<td>
- <?php echo Ajax::button('?page=random&action=save_rules','download',_('Save Rules As'),'save_random_rules'); ?><?php echo _('Save Rules As'); ?>
+ <?php echo Ajax::button('?page=random&action=save_rules','download', T_('Save Rules As'),'save_random_rules'); ?><?php echo T_('Save Rules As'); ?>
</td>
<td colspan="2">
- <?php echo Ajax::button('?page=random&action=load_rules','cog',_('Load Saved Rules'),'load_random_rules'); ?><?php echo _('Load Saved Rules'); ?>
+ <?php echo Ajax::button('?page=random&action=load_rules','cog', T_('Load Saved Rules'),'load_random_rules'); ?><?php echo T_('Load Saved Rules'); ?>
</td>
</tr>
diff --git a/templates/show_edit_access.inc.php b/templates/show_edit_access.inc.php
index 767eede5..28bd0f73 100644
--- a/templates/show_edit_access.inc.php
+++ b/templates/show_edit_access.inc.php
@@ -27,69 +27,69 @@
*/
?>
-<?php show_box_top(_('Edit Access Control List')); ?>
+<?php show_box_top(T_('Edit Access Control List')); ?>
<form name="edit_access" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=update_record&access_id=<?php echo intval($access->id); ?>">
<table class="table-data">
<tr>
- <td><?php echo _('Name'); ?>: </td>
+ <td><?php echo T_('Name'); ?>: </td>
<td colspan="3"><input type="text" name="name" value="<?php echo scrub_out($access->name); ?>" /></td>
</tr>
<tr>
- <td><?php echo _('ACL Type'); ?>: </td>
+ <td><?php echo T_('ACL Type'); ?>: </td>
<td colspan="3">
<select name="type">
<?php $name = 'sl_' . $access->type; ${$name} = ' selected="selected"'; ?>
- <option value="stream"<?php echo $sl_stream; ?>><?php echo _('Stream Access'); ?></option>
- <option value="interface"<?php echo $sl_interface; ?>><?php echo _('Web Interface'); ?></option>
- <option value="network"<?php echo $sl_network; ?>><?php echo _('Local Network Definition'); ?></option>
- <option value="rpc"<?php echo $sl_rpc; ?>><?php echo _('RPC'); ?></option>
+ <option value="stream"<?php echo $sl_stream; ?>><?php echo T_('Stream Access'); ?></option>
+ <option value="interface"<?php echo $sl_interface; ?>><?php echo T_('Web Interface'); ?></option>
+ <option value="network"<?php echo $sl_network; ?>><?php echo T_('Local Network Definition'); ?></option>
+ <option value="rpc"<?php echo $sl_rpc; ?>><?php echo T_('RPC'); ?></option>
</select>
</td>
</tr>
<tr>
- <td colspan="4"><h3><?php echo _('IPv4 or IPv6 Addresses'); ?></h3>
+ <td colspan="4"><h3><?php echo T_('IPv4 or IPv6 Addresses'); ?></h3>
<span class="information">(255.255.255.255) / (ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff)</span>
</td>
</tr>
<tr>
- <td><?php echo _('Start'); ?>:</td>
+ <td><?php echo T_('Start'); ?>:</td>
<td>
<?php Error::display('start'); ?>
<input type="text" name="start" value="<?php echo $access->f_start; ?>" size="20" />
</td>
- <td><?php echo _('End'); ?>:</td>
+ <td><?php echo T_('End'); ?>:</td>
<td>
<?php Error::display('end'); ?>
<input type="text" name="end" value="<?php echo $access->f_end; ?>" size="20" />
</td>
</tr>
<tr>
- <td><?php echo _('User'); ?>:</td>
+ <td><?php echo T_('User'); ?>:</td>
<td colspan="3">
<?php show_user_select('user',$access->user); ?>
</td>
</tr>
<tr>
- <td><?php echo _('Remote Key'); ?></td>
+ <td><?php echo T_('Remote Key'); ?></td>
<td colspan="3">
<input type="text" name="key" value="<?php echo scrub_out($access->key); ?>" size="32" maxlength="32" />
</td>
</tr>
<tr>
- <td><?php echo _('Level'); ?>:</td>
+ <td><?php echo T_('Level'); ?>:</td>
<td colspan="3">
<?php $name = 'level_' . $access->level; ${$name} = 'checked="checked"'; ?>
- <input type="radio" name="level" value="5" <?php echo $level_5; ?>><?php echo _('View'); ?>
- <input type="radio" name="level" value="25" <?php echo $level_25; ?>><?php echo _('Read'); ?>
- <input type="radio" name="level" value="50" <?php echo $level_50; ?>><?php echo _('Read/Write'); ?>
- <input type="radio" name="level" value="75" <?php echo $level_75; ?>><?php echo _('All'); ?>
+ <input type="radio" name="level" value="5" <?php echo $level_5; ?>><?php echo T_('View'); ?>
+ <input type="radio" name="level" value="25" <?php echo $level_25; ?>><?php echo T_('Read'); ?>
+ <input type="radio" name="level" value="50" <?php echo $level_50; ?>><?php echo T_('Read/Write'); ?>
+ <input type="radio" name="level" value="75" <?php echo $level_75; ?>><?php echo T_('All'); ?>
</td>
</tr>
</table>
<div class="formValidation">
<?php echo Core::form_register('edit_acl'); ?>
- <input type="submit" value="<?php echo _('Update'); ?>" />
+ <input type="submit" value="<?php echo T_('Update'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_edit_album.inc.php b/templates/show_edit_album.inc.php
index 4b082efd..2830eaf7 100644
--- a/templates/show_edit_album.inc.php
+++ b/templates/show_edit_album.inc.php
@@ -28,17 +28,17 @@
?>
-<?php show_box_top(_('Edit Album')); ?>
+<?php show_box_top(T_('Edit Album')); ?>
<form name="edit_album" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/admin/flag.php?action=edit_album">
<table class="tabledata">
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Name'); ?></td>
+ <td><?php echo T_('Name'); ?></td>
<td>
<input type="text" name="name" value="<?php echo scrub_out($album->full_name); ?>">
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Year'); ?></td>
+ <td><?php echo T_('Year'); ?></td>
<td>
<input type="text" name="year" value="<?php echo scrub_out($album->year); ?>">
</td>
@@ -46,13 +46,13 @@
<tr class="<?php echo flip_class(); ?>">
<td>&nbsp;</td>
<td>
- <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo _('Flag for Retagging'); ?>
+ <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo T_('Flag for Retagging'); ?>
</td>
</tr>
</table>
<div class="formValidation">
<input type="hidden" name="album_id" value="<?php echo $album->id; ?>" />
- <input type="submit" value="<?php echo _('Update Album'); ?>" />
+ <input type="submit" value="<?php echo T_('Update Album'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_edit_album_row.inc.php b/templates/show_edit_album_row.inc.php
index 95030ebe..5b04a9a6 100644
--- a/templates/show_edit_album_row.inc.php
+++ b/templates/show_edit_album_row.inc.php
@@ -40,7 +40,7 @@
show_artist_select('artist',$album->artist_id);
}
else {
- echo _('Various');
+ echo T_('Various');
}
?>
</td>
@@ -53,7 +53,7 @@
<td>
<input type="hidden" name="id" value="<?php echo $album->id; ?>" />
<input type="hidden" name="type" value="album_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $album->id . '&type=album_row','download',_('Save Changes'),'save_album_' . $album->id,'edit_album_' . $album->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $album->id . '&type=album_row','download', T_('Save Changes'),'save_album_' . $album->id,'edit_album_' . $album->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_artist.inc.php b/templates/show_edit_artist.inc.php
index 93801e5e..d5d265e4 100644
--- a/templates/show_edit_artist.inc.php
+++ b/templates/show_edit_artist.inc.php
@@ -28,11 +28,11 @@
?>
-<?php show_box_top(_('Edit Artist')); ?>
+<?php show_box_top(T_('Edit Artist')); ?>
<form name="edit_artist" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/admin/flag.php?action=edit_artist">
<table class="tabledata">
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Name'); ?></td>
+ <td><?php echo T_('Name'); ?></td>
<td>
<input type="text" name="name" value="<?php echo scrub_out($artist->name); ?>">
</td>
@@ -40,13 +40,13 @@
<tr class="<?php echo flip_class(); ?>">
<td>&nbsp;</td>
<td>
- <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo _('Flag for Retagging'); ?>
+ <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo T_('Flag for Retagging'); ?>
</td>
</tr>
</table>
<div class="formValidation">
<input type="hidden" name="artist_id" value="<?php echo $artist->id; ?>" />
- <input type="submit" value="<?php echo _('Update Artist'); ?>" />
+ <input type="submit" value="<?php echo T_('Update Artist'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_edit_artist_row.inc.php b/templates/show_edit_artist_row.inc.php
index 2b837949..8779e10d 100644
--- a/templates/show_edit_artist_row.inc.php
+++ b/templates/show_edit_artist_row.inc.php
@@ -37,7 +37,7 @@
<td>
<input type="hidden" name="id" value="<?php echo $artist->id; ?>" />
<input type="hidden" name="type" value="artist_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $artist->id . '&type=artist_row','download',_('Save Changes'),'save_artist_' . $artist->id,'edit_artist_' . $artist->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $artist->id . '&type=artist_row','download', T_('Save Changes'),'save_artist_' . $artist->id,'edit_artist_' . $artist->id); ?>
</tr>
</table>
diff --git a/templates/show_edit_catalog.inc.php b/templates/show_edit_catalog.inc.php
index a23ebb2c..02041978 100644
--- a/templates/show_edit_catalog.inc.php
+++ b/templates/show_edit_catalog.inc.php
@@ -27,44 +27,44 @@
*/
?>
-<?php /* HINT: Catalog Name */ show_box_top(sprintf(_('Settings for %s') , $catalog->name . ' (' . $catalog->path . ')'), 'box box_edit_catalog'); ?>
+<?php /* HINT: Catalog Name */ show_box_top(sprintf(T_('Settings for %s') , $catalog->name . ' (' . $catalog->path . ')'), 'box box_edit_catalog'); ?>
<form method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="0">
<tr>
- <td><?php echo _('Name'); ?>:</td>
+ <td><?php echo T_('Name'); ?>:</td>
<td><input size="60" type="text" name="name" value="<?php echo scrub_out($catalog->name); ?>"></input></td>
<td style="vertical-align:top; font-family: monospace;" rowspan="5">
- <strong><?php echo _('Auto-inserted Fields'); ?>:</strong><br />
- %A = <?php echo _('album name'); ?><br />
- %a = <?php echo _('artist name'); ?><br />
- %c = <?php echo _('id3 comment'); ?><br />
- %T = <?php echo _('track number (padded with leading 0)'); ?><br />
- %t = <?php echo _('song title'); ?><br />
- %y = <?php echo _('year'); ?><br />
- %o = <?php echo _('other'); ?><br />
+ <strong><?php echo T_('Auto-inserted Fields'); ?>:</strong><br />
+ %A = <?php echo T_('album name'); ?><br />
+ %a = <?php echo T_('artist name'); ?><br />
+ %c = <?php echo T_('id3 comment'); ?><br />
+ %T = <?php echo T_('track number (padded with leading 0)'); ?><br />
+ %t = <?php echo T_('song title'); ?><br />
+ %y = <?php echo T_('year'); ?><br />
+ %o = <?php echo T_('other'); ?><br />
</td>
</tr>
<tr>
- <td><?php echo _('Catalog Type'); ?></td>
+ <td><?php echo T_('Catalog Type'); ?></td>
<td><?php echo scrub_out(ucfirst($catalog->catalog_type)); ?></td>
</tr>
<tr>
- <td><?php echo _('Remote Catalog Username'); ?>: </td>
- <td><input size="30" type="text" name="remote_username" value="<?php echo scrub_out($catalog->remote_username); ?>" /><span class="error">*<?php echo _('Required for Remote Catalogs'); ?></span></td>
+ <td><?php echo T_('Remote Catalog Username'); ?>: </td>
+ <td><input size="30" type="text" name="remote_username" value="<?php echo scrub_out($catalog->remote_username); ?>" /><span class="error">*<?php echo T_('Required for Remote Catalogs'); ?></span></td>
</tr>
<tr>
- <td><?php echo _('Remote Catalog Password'); ?>: </td>
- <td><input size="30" type="password" name="remote_password" value="" /><span class="error">*<?php echo _('Required for Remote Catalogs'); ?></span></td>
+ <td><?php echo T_('Remote Catalog Password'); ?>: </td>
+ <td><input size="30" type="password" name="remote_password" value="" /><span class="error">*<?php echo T_('Required for Remote Catalogs'); ?></span></td>
</tr>
<tr>
- <td><?php echo _('Filename pattern'); ?>:</td>
+ <td><?php echo T_('Filename pattern'); ?>:</td>
<td>
<input size="60" type="text" name="rename_pattern" value="<?php echo scrub_out($catalog->rename_pattern); ?>" />
</td>
</tr>
<tr>
<td>
- <?php echo _('Folder Pattern'); ?>:<br /><?php echo _('(no leading or ending \'/\')'); ?>
+ <?php echo T_('Folder Pattern'); ?>:<br /><?php echo T_('(no leading or ending \'/\')'); ?>
</td>
<td>
<input size="60" type="text" name="sort_pattern" value="<?php echo scrub_out($catalog->sort_pattern);?>" />
@@ -74,7 +74,7 @@
<div class="formValidation">
<input type="hidden" name="catalog_id" value="<?php echo scrub_out($catalog->id); ?>" />
<input type="hidden" name="action" value="update_catalog_settings" />
- <input class="button" type="submit" value="<?php echo _('Save Catalog Settings'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Save Catalog Settings'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_edit_live_stream_row.inc.php b/templates/show_edit_live_stream_row.inc.php
index 64fe252f..dd1a06b8 100644
--- a/templates/show_edit_live_stream_row.inc.php
+++ b/templates/show_edit_live_stream_row.inc.php
@@ -31,11 +31,11 @@
<form method="post" id="edit_live_stream_<?php echo $radio->id; ?>">
<table class="inline-edit" cellpadding="3" cellspacing="0">
<tr>
- <th><?php echo _('Name'); ?></th>
- <th><?php echo _('Stream URL'); ?></th>
- <th><?php echo _('Homepage'); ?></th>
- <th><?php echo _('Callsign'); ?></th>
- <th><?php echo _('Frequency'); ?></th>
+ <th><?php echo T_('Name'); ?></th>
+ <th><?php echo T_('Stream URL'); ?></th>
+ <th><?php echo T_('Homepage'); ?></th>
+ <th><?php echo T_('Callsign'); ?></th>
+ <th><?php echo T_('Frequency'); ?></th>
<th>&nbsp;</th>
</tr>
<tr>
@@ -57,7 +57,7 @@
<td>
<input type="hidden" name="id" value="<?php echo $radio->id; ?>" />
<input type="hidden" name="type" value="live_stream_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $radio->id . '&type=live_stream_row','download',_('Save Changes'),'save_live_stream_' . $radio->id,'edit_live_stream_' . $radio->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $radio->id . '&type=live_stream_row','download', T_('Save Changes'),'save_live_stream_' . $radio->id,'edit_live_stream_' . $radio->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_playlist_row.inc.php b/templates/show_edit_playlist_row.inc.php
index 5b853a75..19abb1f5 100644
--- a/templates/show_edit_playlist_row.inc.php
+++ b/templates/show_edit_playlist_row.inc.php
@@ -37,13 +37,13 @@
<td>
<?php $name = 'select_' . $playlist->type; ${$name} = ' selected="selected"'; ?>
<select name="pl_type">
- <option value="public"<?php echo $select_public; ?>><?php echo _('Public'); ?></option>
- <option value="private"<?php echo $select_private; ?>><?php echo _('Private'); ?></option>
+ <option value="public"<?php echo $select_public; ?>><?php echo T_('Public'); ?></option>
+ <option value="private"<?php echo $select_private; ?>><?php echo T_('Private'); ?></option>
</select>
<td>
<input type="hidden" name="id" value="<?php echo $playlist->id; ?>" />
<input type="hidden" name="type" value="playlist_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=playlist_row','download',_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=playlist_row','download', T_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_playlist_song_row.inc.php b/templates/show_edit_playlist_song_row.inc.php
index 7efc8086..84bab2aa 100644
--- a/templates/show_edit_playlist_song_row.inc.php
+++ b/templates/show_edit_playlist_song_row.inc.php
@@ -43,7 +43,7 @@
<td>
<input type="hidden" name="id" value="<?php echo $song->id; ?>" />
<input type="hidden" name="type" value="song" />
- <?php echo Ajax::button('?page=playlist&action=save_track&playlist_id=' . $playlist->id . '&track_id=' . $track['id'],'download',_('Save Changes'),'save_track_' . $track['id'],'edit_track_' . $track['id']); ?>
+ <?php echo Ajax::button('?page=playlist&action=save_track&playlist_id=' . $playlist->id . '&track_id=' . $track['id'],'download', T_('Save Changes'),'save_track_' . $track['id'],'edit_track_' . $track['id']); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_playlist_title.inc.php b/templates/show_edit_playlist_title.inc.php
index dac65ed9..20743262 100644
--- a/templates/show_edit_playlist_title.inc.php
+++ b/templates/show_edit_playlist_title.inc.php
@@ -36,13 +36,13 @@
<td>
<?php $name = 'select_' . $playlist->type; ${$name} = ' selected="selected"'; ?>
<select name="pl_type">
- <option value="public"<?php echo $select_public; ?>><?php echo _('Public'); ?></option>
- <option value="private"<?php echo $select_private; ?>><?php echo _('Private'); ?></option>
+ <option value="public"<?php echo $select_public; ?>><?php echo T_('Public'); ?></option>
+ <option value="private"<?php echo $select_private; ?>><?php echo T_('Private'); ?></option>
</select>
<td>
<input type="hidden" name="id" value="<?php echo $playlist->id; ?>" />
<input type="hidden" name="type" value="playlist_title" />
- <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=playlist_title','download',_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=playlist_title','download', T_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_shout.inc.php b/templates/show_edit_shout.inc.php
index 6e407623..13ff1cfb 100644
--- a/templates/show_edit_shout.inc.php
+++ b/templates/show_edit_shout.inc.php
@@ -27,25 +27,25 @@
*/
?>
-<?php show_box_top(_('Edit existing Shoutbox Post')); ?>
+<?php show_box_top(T_('Edit existing Shoutbox Post')); ?>
<form method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/shout.php?action=edit_shout">
<input type="hidden" name="shout_id" value="<?php echo $shout->id; ?>" />
<table class="tabledata" cellpadding="0" cellspacing="0">
<tr>
- <td><strong><?php /* HINT: Client link, Object link */ printf(_('Created by: %s for %s'), $client->f_link, $object->f_link); ?></strong>
+ <td><strong><?php /* HINT: Client link, Object link */ printf(T_('Created by: %s for %s'), $client->f_link, $object->f_link); ?></strong>
<tr>
<tr>
- <td><strong><?php echo _('Comment:'); ?></strong>
+ <td><strong><?php echo T_('Comment:'); ?></strong>
</tr>
<tr>
<td><textarea rows="5" cols="70" name="comment"><?php echo $shout->text; ?></textarea></td>
</tr>
<tr>
- <td><input type="checkbox" name="sticky" <?php if ($shout->sticky == "1") { echo "checked"; } ?>/> <strong><?php echo _('Make Sticky'); ?></strong></td>
+ <td><input type="checkbox" name="sticky" <?php if ($shout->sticky == "1") { echo "checked"; } ?>/> <strong><?php echo T_('Make Sticky'); ?></strong></td>
</tr>
<tr>
<td>
- <input type="submit" value="<?php echo _('Update'); ?>" />
+ <input type="submit" value="<?php echo T_('Update'); ?>" />
</td>
</tr>
</table>
diff --git a/templates/show_edit_smartplaylist_row.inc.php b/templates/show_edit_smartplaylist_row.inc.php
index fadd1bc7..f02fc62a 100644
--- a/templates/show_edit_smartplaylist_row.inc.php
+++ b/templates/show_edit_smartplaylist_row.inc.php
@@ -30,13 +30,13 @@
<td>
<?php $name = 'select_' . $playlist->type; ${$name} = ' selected="selected"'; ?>
<select name="pl_type">
- <option value="public"<?php echo $select_public; ?>><?php echo _('Public'); ?></option>
- <option value="private"<?php echo $select_private; ?>><?php echo _('Private'); ?></option>
+ <option value="public"<?php echo $select_public; ?>><?php echo T_('Public'); ?></option>
+ <option value="private"<?php echo $select_private; ?>><?php echo T_('Private'); ?></option>
</select>
<td>
<input type="hidden" name="id" value="<?php echo $playlist->id; ?>" />
<input type="hidden" name="type" value="smartplaylist_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=smartplaylist_row','download',_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=smartplaylist_row','download', T_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_smartplaylist_title.inc.php b/templates/show_edit_smartplaylist_title.inc.php
index e6451e66..25730ef9 100644
--- a/templates/show_edit_smartplaylist_title.inc.php
+++ b/templates/show_edit_smartplaylist_title.inc.php
@@ -29,13 +29,13 @@
<td>
<?php $name = 'select_' . $playlist->type; ${$name} = ' selected="selected"'; ?>
<select name="pl_type">
- <option value="public"<?php echo $select_public; ?>><?php echo _('Public'); ?></option>
- <option value="private"<?php echo $select_private; ?>><?php echo _('Private'); ?></option>
+ <option value="public"<?php echo $select_public; ?>><?php echo T_('Public'); ?></option>
+ <option value="private"<?php echo $select_private; ?>><?php echo T_('Private'); ?></option>
</select>
<td>
<input type="hidden" name="id" value="<?php echo $playlist->id; ?>" />
<input type="hidden" name="type" value="smartplaylist_title" />
- <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=smartplaylist_title','download',_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $playlist->id . '&type=smartplaylist_title','download', T_('Save Changes'),'save_playlist_' . $playlist->id,'edit_playlist_' . $playlist->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_song.inc.php b/templates/show_edit_song.inc.php
index 09627569..40f3758f 100644
--- a/templates/show_edit_song.inc.php
+++ b/templates/show_edit_song.inc.php
@@ -28,49 +28,49 @@
?>
-<?php show_box_top(_('Edit Song')); ?>
+<?php show_box_top(T_('Edit Song')); ?>
<form name="edit_song" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/admin/flag.php">
<table>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('File'); ?>:</td>
+ <td><?php echo T_('File'); ?>:</td>
<td><?php echo scrub_out($song->file); ?></td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Title'); ?></td>
+ <td><?php echo T_('Title'); ?></td>
<td>
<input type="text" name="title" value="<?php echo scrub_out($song->title); ?>" size="45" />
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Album'); ?></td>
+ <td><?php echo T_('Album'); ?></td>
<td>
<?php show_album_select('album',$song->album); ?>
- <br /><?php echo _('OR'); ?><br />
+ <br /><?php echo T_('OR'); ?><br />
<input type="text" name="album_string" value="<?php echo scrub_out($song->get_album_name()); ?>" />
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Artist'); ?></td>
+ <td><?php echo T_('Artist'); ?></td>
<td>
<?php show_artist_select('artist',$song->artist); ?>
- <br /><?php echo _('OR'); ?><br />
+ <br /><?php echo T_('OR'); ?><br />
<input type="text" name="artist_string" value="<?php echo scrub_out($song->get_artist_name()); ?>" />
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Track'); ?></td>
+ <td><?php echo T_('Track'); ?></td>
<td>
<input type="text" name="track" value="<?php echo scrub_out($song->track); ?>" size="3" />
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Year'); ?></td>
+ <td><?php echo T_('Year'); ?></td>
<td>
<input type="text" name="year" value="<?php echo scrub_out($song->year); ?>" size="5" />
</td>
</tr>
<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _('Comment'); ?></td>
+ <td><?php echo T_('Comment'); ?></td>
<td>
<input type="text" name="comment" value="<?php echo scrub_out($song->comment); ?>" size="45" />
</td>
@@ -78,14 +78,14 @@
<tr class="<?php echo flip_class(); ?>">
<td>&nbsp;</td>
<td>
- <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo _('Flag for Retagging'); ?>
+ <input type="checkbox" name="flag" value="1" checked="checked" /> <?php echo T_('Flag for Retagging'); ?>
</td>
</tr>
</table>
<div class="formValidation">
<input type="hidden" name="song_id" value="<?php echo $song->id; ?>" />
<input type="hidden" name="action" value="edit_song" />
- <input type="submit" value="<?php echo _('Update Song'); ?>" />
+ <input type="submit" value="<?php echo T_('Update Song'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_edit_song_row.inc.php b/templates/show_edit_song_row.inc.php
index 9ddc78a7..9224dfd4 100644
--- a/templates/show_edit_song_row.inc.php
+++ b/templates/show_edit_song_row.inc.php
@@ -50,7 +50,7 @@
<td>
<input type="hidden" name="id" value="<?php echo $song->id; ?>" />
<input type="hidden" name="type" value="song_row" />
- <?php echo Ajax::button('?action=edit_object&id=' . $song->id . '&type=song_row','download',_('Save Changes'),'save_song_' . $song->id,'edit_song_' . $song->id); ?>
+ <?php echo Ajax::button('?action=edit_object&id=' . $song->id . '&type=song_row','download', T_('Save Changes'),'save_song_' . $song->id,'edit_song_' . $song->id); ?>
</td>
</tr>
</table>
diff --git a/templates/show_edit_user.inc.php b/templates/show_edit_user.inc.php
index 1ff58f06..844ed2b1 100644
--- a/templates/show_edit_user.inc.php
+++ b/templates/show_edit_user.inc.php
@@ -27,16 +27,16 @@
*/
?>
-<?php show_box_top(_('Editing existing User')); ?>
+<?php show_box_top(T_('Editing existing User')); ?>
<?php Error::display('general'); ?>
<form name="update_user" enctype="multipart/form-data" method="post" action="<?php echo Config::get('web_path') . "/admin/users.php"; ?>">
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr>
- <th colspan="2"><?php echo _('User Properties'); ?></th>
+ <th colspan="2"><?php echo T_('User Properties'); ?></th>
</tr>
<tr>
<td>
- <?php echo _('Username'); ?>:
+ <?php echo T_('Username'); ?>:
</td>
<td>
<input type="text" name="username" size="30" maxlength="128" value="<?php echo scrub_out($client->username); ?>" />
@@ -44,14 +44,14 @@
</td>
</tr>
<tr>
- <td><?php echo _('Full Name'); ?>:</td>
+ <td><?php echo T_('Full Name'); ?>:</td>
<td>
<input type="text" name="fullname" size="30" value="<?php echo scrub_out($client->fullname); ?>" />
</td>
</tr>
<tr>
<td>
- <?php echo _('E-mail'); ?>:
+ <?php echo T_('E-mail'); ?>:
</td>
<td>
<input type="text" name="email" size="30" value="<?php echo scrub_out($client->email); ?>" />
@@ -59,7 +59,7 @@
</tr>
<tr>
<td>
- <?php echo _('Password'); ?> :
+ <?php echo T_('Password'); ?> :
</td>
<td>
<input type="password" name="password_1" size="30" value="" />
@@ -68,7 +68,7 @@
</tr>
<tr>
<td>
- <?php echo _('Confirm Password'); ?>:
+ <?php echo T_('Confirm Password'); ?>:
</td>
<td>
<input type="password" name="password_2" size="30" value="" />
@@ -76,42 +76,42 @@
</tr>
<tr>
<td>
- <?php echo _('User Access Level'); ?>:
+ <?php echo T_('User Access Level'); ?>:
</td>
<td>
<?php $var_name = "on_" . $client->access; ${$var_name} = 'selected="selected"'; ?>
<select name="access">
- <option value="5" <?php echo $on_5; ?>><?php echo _('Guest'); ?></option>
- <option value="25" <?php echo $on_25; ?>><?php echo _('User'); ?></option>
- <option value="50" <?php echo $on_50; ?>><?php echo _('Content Manager'); ?></option>
- <option value="75" <?php echo $on_75; ?>><?php echo _('Catalog Manager'); ?></option>
- <option value="100" <?php echo $on_100; ?>><?php echo _('Admin'); ?></option>
+ <option value="5" <?php echo $on_5; ?>><?php echo T_('Guest'); ?></option>
+ <option value="25" <?php echo $on_25; ?>><?php echo T_('User'); ?></option>
+ <option value="50" <?php echo $on_50; ?>><?php echo T_('Content Manager'); ?></option>
+ <option value="75" <?php echo $on_75; ?>><?php echo T_('Catalog Manager'); ?></option>
+ <option value="100" <?php echo $on_100; ?>><?php echo T_('Admin'); ?></option>
</select>
</td>
</tr>
<tr>
- <th colspan="2"><?php echo _('Other Options'); ?></th>
+ <th colspan="2"><?php echo T_('Other Options'); ?></th>
</tr>
<tr>
- <td><?php echo _('Config Preset'); ?></td>
+ <td><?php echo T_('Config Preset'); ?></td>
<td>
<select name="preset">
<option value=""></option>
- <option value="democratic"><?php echo _('Democratic'); ?></option>
- <option value="localplay"><?php echo _('Localplay'); ?></option>
- <option value="flash"><?php echo _('Flash'); ?></option>
- <option value="stream"><?php echo _('Stream'); ?></option>
+ <option value="democratic"><?php echo T_('Democratic'); ?></option>
+ <option value="localplay"><?php echo T_('Localplay'); ?></option>
+ <option value="flash"><?php echo T_('Flash'); ?></option>
+ <option value="stream"><?php echo T_('Stream'); ?></option>
</select>
</td>
</tr>
<tr>
- <td><?php echo _('Prevent Preset Override'); ?></td>
+ <td><?php echo T_('Prevent Preset Override'); ?></td>
<td>
- <input type="checkbox" value="1" name="prevent_override" /><span class="information"> <?php echo _('This Affects all non-Admin accounts'); ?></span>
+ <input type="checkbox" value="1" name="prevent_override" /><span class="information"> <?php echo T_('This Affects all non-Admin accounts'); ?></span>
</td>
</tr>
<tr>
- <td><?php echo _('Clear Stats'); ?></td>
+ <td><?php echo T_('Clear Stats'); ?></td>
<td>
<input type="checkbox" value="1" name="reset_stats" />
</td>
@@ -119,7 +119,7 @@
</table>
<div class="formValidation">
<input type="hidden" name="action" value="update_user" />
- <input type="submit" value="<?php echo _('Update User'); ?>" />
+ <input type="submit" value="<?php echo T_('Update User'); ?>" />
<?php echo Core::form_register('edit_user'); ?>
<input type="hidden" name="user_id" value="<?php echo $client->id; ?>" />
</div>
diff --git a/templates/show_export.inc.php b/templates/show_export.inc.php
index 2ba58b4f..8595253c 100644
--- a/templates/show_export.inc.php
+++ b/templates/show_export.inc.php
@@ -31,14 +31,14 @@ ${$name} = ' selected="selected"';
$name = 'catalog_' . $_REQUEST['export_catalog'];
${$name} = ' selected="selected"';
-show_box_top(_('Export Catalog'), 'box box_export'); ?>
+show_box_top(T_('Export Catalog'), 'box box_export'); ?>
<form name="duplicates" action="<?php echo Config::get('web_path'); ?>/admin/export.php?action=export" method="post" enctype="multipart/form-data" >
<table class="tableform" cellspacing="0" cellpadding="3">
<tr>
- <td valign="top"><strong><?php echo _('Catalog'); ?>:</strong></td>
+ <td valign="top"><strong><?php echo T_('Catalog'); ?>:</strong></td>
<td>
<select id="export_catalog" name="export_catalog">
- <option value=""><?php echo _('All'); ?></option>
+ <option value=""><?php echo T_('All'); ?></option>
<?php
$catalog_ids = Catalog::get_catalogs();
foreach ($catalog_ids as $catalog_id) {
@@ -54,7 +54,7 @@ show_box_top(_('Export Catalog'), 'box box_export'); ?>
</td>
</tr>
<tr>
- <td valign="top"><strong><?php echo _('Format'); ?>:</strong></td>
+ <td valign="top"><strong><?php echo T_('Format'); ?>:</strong></td>
<td>
<select id="export_format" name="export_format">
<option value="csv" <?php echo $export_csv; ?>>CSV</option>
@@ -64,7 +64,7 @@ show_box_top(_('Export Catalog'), 'box box_export'); ?>
</tr>
</table>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Export'); ?>" />
+ <input type="submit" value="<?php echo T_('Export'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_flag_row.inc.php b/templates/show_flag_row.inc.php
index 3c599d64..a94b2717 100644
--- a/templates/show_flag_row.inc.php
+++ b/templates/show_flag_row.inc.php
@@ -35,9 +35,9 @@
<td class="cel_status"><?php $flag->print_status(); ?></td>
<td class="cel_action">
<?php if ($flag->approved) { ?>
- <?php echo Ajax::button('?page=flag&action=reject&flag_id=' . $flag->id,'disable',_('Reject'),'reject_flag_' . $flag->id); ?>
+ <?php echo Ajax::button('?page=flag&action=reject&flag_id=' . $flag->id,'disable', T_('Reject'),'reject_flag_' . $flag->id); ?>
<?php } else { ?>
- <?php echo Ajax::button('?page=flag&action=accept&flag_id=' . $flag->id,'enable',_('Enable'),'enable_flag_' . $flag->id); ?>
+ <?php echo Ajax::button('?page=flag&action=accept&flag_id=' . $flag->id,'enable', T_('Enable'),'enable_flag_' . $flag->id); ?>
<?php } ?>
</td>
</tr>
diff --git a/templates/show_flagged.inc.php b/templates/show_flagged.inc.php
index cec20187..2f5e9639 100644
--- a/templates/show_flagged.inc.php
+++ b/templates/show_flagged.inc.php
@@ -38,12 +38,12 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_object"><?php echo _('Object'); ?></th>
- <th class="cel_username"><?php echo _('User'); ?></th>
- <th class="cel_flag"><?php echo _('Flag'); ?></th>
- <th class="cel_comment"><?php echo _('Comment'); ?></th>
- <th class="cel_status"><?php echo _('Status'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_object"><?php echo T_('Object'); ?></th>
+ <th class="cel_username"><?php echo T_('User'); ?></th>
+ <th class="cel_flag"><?php echo T_('Flag'); ?></th>
+ <th class="cel_comment"><?php echo T_('Comment'); ?></th>
+ <th class="cel_status"><?php echo T_('Status'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($object_ids as $flag_id) {
@@ -53,15 +53,15 @@ foreach ($object_ids as $flag_id) {
?>
<?php } if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="7" class="error"><?php echo _('No Records Found'); ?></td>
+ <td colspan="7" class="error"><?php echo T_('No Records Found'); ?></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_object"><?php echo _('Object'); ?></th>
- <th class="cel_username"><?php echo _('User'); ?></th>
- <th class="cel_flag"><?php echo _('Flag'); ?></th>
- <th class="cel_comment"><?php echo _('Comment'); ?></th>
- <th class="cel_status"><?php echo _('Status'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_object"><?php echo T_('Object'); ?></th>
+ <th class="cel_username"><?php echo T_('User'); ?></th>
+ <th class="cel_flag"><?php echo T_('Flag'); ?></th>
+ <th class="cel_comment"><?php echo T_('Comment'); ?></th>
+ <th class="cel_status"><?php echo T_('Status'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
diff --git a/templates/show_gather_art.inc.php b/templates/show_gather_art.inc.php
index 424b1792..24b10254 100644
--- a/templates/show_gather_art.inc.php
+++ b/templates/show_gather_art.inc.php
@@ -26,9 +26,9 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Album Art Search'), 'box box_gather_art');
-echo "<strong>" . _('Starting Album Art Search') . ". . .</strong><br />\n";
-echo _('Searched') . ": <span id=\"count_art_" . $catalog_id . "\">" . _('None') . "</span><br />";
-echo _('Reading') . ":<span id=\"read_art_$catalog_id\"></span><br />";
+show_box_top(T_('Album Art Search'), 'box box_gather_art');
+echo "<strong>" . T_('Starting Album Art Search') . ". . .</strong><br />\n";
+echo T_('Searched') . ": <span id=\"count_art_" . $catalog_id . "\">" . T_('None') . "</span><br />";
+echo T_('Reading') . ":<span id=\"read_art_$catalog_id\"></span><br />";
show_box_bottom();
?>
diff --git a/templates/show_get_albumart.inc.php b/templates/show_get_albumart.inc.php
index 46954fb7..d064cce5 100644
--- a/templates/show_get_albumart.inc.php
+++ b/templates/show_get_albumart.inc.php
@@ -27,12 +27,12 @@
*/
?>
-<?php show_box_top(_('Customize Search'), 'box box_get_albumart'); ?>
+<?php show_box_top(T_('Customize Search'), 'box box_get_albumart'); ?>
<form enctype="multipart/form-data" name="coverart" method="post" action="<?php echo Config::get('web_path'); ?>/albums.php?action=find_art&amp;album_id=<?php echo $album->id; ?>&amp;artist_name=<?php echo urlencode($_REQUEST['artist_name']);?>&amp;album_name=<?php echo urlencode($_REQUEST['album_name']); ?>&amp;cover=<?php echo urlencode($_REQUEST['cover']); ?>" style="Display:inline;">
<table>
<tr>
<td>
- <?php echo _('Artist'); ?>&nbsp;
+ <?php echo T_('Artist'); ?>&nbsp;
</td>
<td>
<input type="text" size="20" id="artist_name" name="artist_name" value="<?php echo scrub_out(unhtmlentities($artistname)); ?>" />
@@ -40,7 +40,7 @@
</tr>
<tr>
<td>
- <?php echo _('Album'); ?>&nbsp;
+ <?php echo T_('Album'); ?>&nbsp;
</td>
<td>
<input type="text" size="20" id="album_name" name="album_name" value="<?php echo scrub_out(unhtmlentities($albumname)); ?>" />
@@ -48,7 +48,7 @@
</tr>
<tr>
<td>
- <?php echo _('Direct URL to Image'); ?>
+ <?php echo T_('Direct URL to Image'); ?>
</td>
<td>
<input type="text" size="40" id="cover" name="cover" value="" />
@@ -56,7 +56,7 @@
</tr>
<tr>
<td>
- <?php echo _('Local Image'); ?>
+ <?php echo T_('Local Image'); ?>
</td>
<td>
<input type="file" size="40" id="file" name="file" value="" />
@@ -67,7 +67,7 @@
<input type="hidden" name="action" value="find_art" />
<input type="hidden" name="album_id" value="<?php echo $album->id; ?>" />
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::get('max_upload_size'); ?>" />
- <input type="submit" value="<?php echo _('Get Art'); ?>" />
+ <input type="submit" value="<?php echo T_('Get Art'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_import_playlist.inc.php b/templates/show_import_playlist.inc.php
index bb5bd7c6..f1bcbe5f 100644
--- a/templates/show_import_playlist.inc.php
+++ b/templates/show_import_playlist.inc.php
@@ -27,18 +27,18 @@
*/
?>
-<?php show_box_top(_('Importing a Playlist from a File'), 'box box_import_playlist'); ?>
+<?php show_box_top(T_('Importing a Playlist from a File'), 'box box_import_playlist'); ?>
<form method="post" name="import_playlist" action="<?php echo Config::get('web_path'); ?>/playlist.php" enctype="multipart/form-data">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
- <?php echo _('Filename'); ?>:
+ <?php echo T_('Filename'); ?>:
</td>
<td><input type="file" name="filename" value="<?php echo scrub_out($_REQUEST['filename']); ?>" size="45" /></td>
</tr>
<tr>
<td>
- <?php echo _('Playlist Type'); ?>
+ <?php echo T_('Playlist Type'); ?>
</td>
<td>
<select name="playlist_type">
@@ -50,7 +50,7 @@
</table>
<div class="formValidation">
<input type="hidden" name="action" value="import_playlist" />
- <input type="submit" value="<?php echo _('Import Playlist'); ?>" />
+ <input type="submit" value="<?php echo T_('Import Playlist'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php
index 17927f7d..b6588d76 100644
--- a/templates/show_index.inc.php
+++ b/templates/show_index.inc.php
@@ -36,7 +36,7 @@ if (Art::is_enabled()) {
echo Ajax::observe('window','load',Ajax::action('?page=index&action=random_albums','random_albums'));
?>
<div id="random_selection">
- <?php show_box_top(_('Albums of the Moment')); echo _('Loading...'); show_box_bottom(); ?>
+ <?php show_box_top(T_('Albums of the Moment')); echo T_('Loading...'); show_box_bottom(); ?>
</div>
<?php } ?>
<!-- Recently Played -->
diff --git a/templates/show_install.inc.php b/templates/show_install.inc.php
index 598be729..195da699 100644
--- a/templates/show_install.inc.php
+++ b/templates/show_install.inc.php
@@ -30,57 +30,57 @@ $prefix = realpath(dirname(__FILE__). "/../");
require $prefix . '/templates/install_header.inc.php';
?>
<div class="content">
- <strong><?php echo _('Step 1 - Create the Ampache database'); ?></strong><br />
+ <strong><?php echo T_('Step 1 - Create the Ampache database'); ?></strong><br />
<dl>
- <dd><?php echo _('This step creates and inserts the Ampache database, so please provide a MySQL account with database creation rights. This step may take some time on slower computers.'); ?></dd>
+ <dd><?php echo T_('This step creates and inserts the Ampache database, so please provide a MySQL account with database creation rights. This step may take some time on slower computers.'); ?></dd>
</dl>
- <?php echo _('Step 2 - Create ampache.cfg.php'); ?><br />
- <?php echo _('Step 3 - Set up the initial account'); ?><br />
+ <?php echo T_('Step 2 - Create ampache.cfg.php'); ?><br />
+ <?php echo T_('Step 3 - Set up the initial account'); ?><br />
<br />
<?php Error::display('general'); ?>
<br />
- <span class="header2"><?php echo _('Insert Ampache Database'); ?></span>
+ <span class="header2"><?php echo T_('Insert Ampache Database'); ?></span>
<form method="post" action="<?php echo WEB_PATH . "?action=create_db&amp;htmllang=$htmllang&amp;charset=$charset"; ?>" enctype="multipart/form-data" >
<table>
<tr>
- <td class="align"><?php echo _("Desired Database Name"); ?></td>
+ <td class="align"><?php echo T_("Desired Database Name"); ?></td>
<td><input type="text" name="local_db" value="ampache" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("MySQL Hostname"); ?></td>
+ <td class="align"><?php echo T_("MySQL Hostname"); ?></td>
<td><input type="text" name="local_host" value="localhost" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("MySQL Administrative Username"); ?></td>
+ <td class="align"><?php echo T_("MySQL Administrative Username"); ?></td>
<td><input type="text" name="local_username" value="root" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("MySQL Administrative Password"); ?></td>
+ <td class="align"><?php echo T_("MySQL Administrative Password"); ?></td>
<td><input type="password" name="local_pass" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("Create Database User for New Database"); ?>? </td>
+ <td class="align"><?php echo T_("Create Database User for New Database"); ?>? </td>
<td><input type="checkbox" value="create_db_user" name="db_user" onclick="flipField('db_username');flipField('db_password');" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("Ampache Database Username"); ?></td>
+ <td class="align"><?php echo T_("Ampache Database Username"); ?></td>
<td><input type="text" id="db_username" name="db_username" value="ampache" /></td>
</tr>
<tr>
- <td class="align"><?php echo _("Ampache Database User Password"); ?></td>
+ <td class="align"><?php echo T_("Ampache Database User Password"); ?></td>
<td><input type="password" id="db_password" name="db_password" value="" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Overwrite Existing'); ?></td>
+ <td class="align"><?php echo T_('Overwrite Existing'); ?></td>
<td><input type="checkbox" name="overwrite_db" value="1" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Use Existing Database'); ?></td>
+ <td class="align"><?php echo T_('Use Existing Database'); ?></td>
<td><input type="checkbox" name="existing_db" value="1" /></td>
</tr>
<tr>
<td>&nbsp;</td>
- <td><input type="submit" value="<?php echo _("Insert Database"); ?>" /></td>
+ <td><input type="submit" value="<?php echo T_("Insert Database"); ?>" /></td>
</tr>
</table>
</form>
diff --git a/templates/show_install_account.inc.php b/templates/show_install_account.inc.php
index fb0b4f7c..a2f16de6 100644
--- a/templates/show_install_account.inc.php
+++ b/templates/show_install_account.inc.php
@@ -30,32 +30,32 @@ $prefix = realpath(dirname(__FILE__). "/../");
require $prefix . '/templates/install_header.inc.php';
?>
<div class="content">
- <?php echo _('Step 1 - Create the Ampache database'); ?><br />
- <?php echo _('Step 2 - Create ampache.cfg.php'); ?><br />
- <strong><?php echo _('Step 3 - Set up the initial account'); ?></strong><br />
+ <?php echo T_('Step 1 - Create the Ampache database'); ?><br />
+ <?php echo T_('Step 2 - Create ampache.cfg.php'); ?><br />
+ <strong><?php echo T_('Step 3 - Set up the initial account'); ?></strong><br />
<dl>
- <dd><?php echo _('This step creates your initial Ampache admin account. Once your admin account has been created you will be redirected to the login page.'); ?></dd>
+ <dd><?php echo T_('This step creates your initial Ampache admin account. Once your admin account has been created you will be redirected to the login page.'); ?></dd>
</dl>
<?php Error::display('general'); ?>
<br />
- <span class="header2"><?php echo _('Create Admin Account'); ?></span>
+ <span class="header2"><?php echo T_('Create Admin Account'); ?></span>
<form method="post" action="<?php echo WEB_PATH . "?action=create_account&amp;htmllang=$htmllang&amp;charset=$charset"; ?>" enctype="multipart/form-data" >
<table>
<tr>
- <td class="align"><?php echo _('Username'); ?></td>
+ <td class="align"><?php echo T_('Username'); ?></td>
<td><input type="text" name="local_username" value="admin" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Password'); ?></td>
+ <td class="align"><?php echo T_('Password'); ?></td>
<td><input type="password" name="local_pass" value="" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Confirm Password'); ?></td>
+ <td class="align"><?php echo T_('Confirm Password'); ?></td>
<td><input type="password" name="local_pass2" value="" /></td>
</tr>
<tr>
<td>&nbsp;</td>
- <td><input type="submit" value="<?php echo _('Create Account'); ?>" /></td>
+ <td><input type="submit" value="<?php echo T_('Create Account'); ?>" /></td>
</tr>
</table>
</form>
diff --git a/templates/show_install_check.inc.php b/templates/show_install_check.inc.php
index 95334f57..f405aa55 100644
--- a/templates/show_install_check.inc.php
+++ b/templates/show_install_check.inc.php
@@ -28,15 +28,15 @@
?>
<?php if (!defined('INSTALL')) { exit; } ?>
-<h4><?php echo _('Required'); ?></h4>
+<h4><?php echo T_('Required'); ?></h4>
<table border="0" cellspacing="0" cellpadding="3">
<tr>
-<td><?php echo sprintf(_("%s is readable"),"ampache.cfg.php.dist"); ?></td>
+<td><?php echo sprintf(T_("%s is readable"),"ampache.cfg.php.dist"); ?></td>
<td>
<?php
if (!is_readable($prefix . '/config/ampache.cfg.php.dist')) {
echo debug_result('',false);
- Error::add('install',sprintf(_("%s is readable"),"ampache.cfg.php.dist"));
+ Error::add('install',sprintf(T_("%s is readable"),"ampache.cfg.php.dist"));
}
else {
echo debug_result('',true);
@@ -45,12 +45,12 @@
</td>
</tr>
<tr>
-<td><?php echo sprintf(_('%s is readable'), 'ampache.sql'); ?></td>
+<td><?php echo sprintf(T_('%s is readable'), 'ampache.sql'); ?></td>
<td>
<?php
if (!is_readable($prefix . '/sql/ampache.sql')) {
echo debug_result('', false);
- Error::add('install', sprintf(_('%s is readable'), 'ampache.sql'));
+ Error::add('install', sprintf(T_('%s is readable'), 'ampache.sql'));
}
else {
echo debug_result('', true);
@@ -59,7 +59,7 @@
</td>
</tr>
<tr>
-<td><?php echo _('PHP Version'); ?>:</td>
+<td><?php echo T_('PHP Version'); ?>:</td>
<td>
<?php
if(!check_php_ver()) {
@@ -70,9 +70,9 @@
else {
$version_string = phpversion() . " ";
}
- $string = $version_string . _('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_bool(in_array('sha256',$algos));
+ $string = $version_string . T_('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . T_('SHA256 Support') . " " . print_bool(in_array('sha256',$algos));
echo debug_result($string,false);
- Error::add('install',_('PHP Version'));
+ Error::add('install', T_('PHP Version'));
}
else {
echo debug_result(phpversion(),true);
@@ -80,12 +80,12 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP MySQL Support'); ?>:</td>
+<td><?php echo T_('PHP MySQL Support'); ?>:</td>
<td>
<?php
if (!check_php_mysql()) {
echo debug_result('',false);
- Error::add('install', _('PHP MySQL Support'));
+ Error::add('install', T_('PHP MySQL Support'));
}
else {
echo debug_result(mysql_get_client_info(),true);
@@ -93,12 +93,12 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP Session Support'); ?>:</td>
+<td><?php echo T_('PHP Session Support'); ?>:</td>
<td>
<?php
if (!check_php_session()) {
echo debug_result('',false);
- Error::add('install',_('PHP Session Support'));
+ Error::add('install', T_('PHP Session Support'));
}
else {
echo debug_result('',true);
@@ -106,12 +106,12 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP iconv Support'); ?>:</td>
+<td><?php echo T_('PHP iconv Support'); ?>:</td>
<td>
<?php
if (!check_php_iconv()) {
echo debug_result('',false);
- Error::add('install', _('PHP iconv Support'));
+ Error::add('install', T_('PHP iconv Support'));
}
else {
echo debug_result('',true);
@@ -119,12 +119,12 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP PCRE Support'); ?>:</td>
+<td><?php echo T_('PHP PCRE Support'); ?>:</td>
<td>
<?php
if (!check_php_pcre()) {
echo debug_result('',false);
- Error::add('install',_('PHP PCRE Support'));
+ Error::add('install', T_('PHP PCRE Support'));
}
else {
echo debug_result('',true);
@@ -132,13 +132,13 @@
?>
</td>
</tr><tr>
-<th colspan="2"><h4><?php echo _('Optional'); ?></h4></th>
+<th colspan="2"><h4><?php echo T_('Optional'); ?></h4></th>
</tr><tr>
-<td><?php echo _('PHP gettext Support'); ?>:</td>
+<td><?php echo T_('PHP gettext Support'); ?>:</td>
<td>
<?php
if (!check_gettext()) {
- echo debug_result(_('gettext emulation will be used'), false);
+ echo debug_result(T_('gettext emulation will be used'), false);
}
else {
echo debug_result('',true);
@@ -146,11 +146,11 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP mbstring Support'); ?>:</td>
+<td><?php echo T_('PHP mbstring Support'); ?>:</td>
<td>
<?php
if (!check_mbstring()) {
- echo debug_result(_('Multibyte character encodings may not be autodetected correctly'), false);
+ echo debug_result(T_('Multibyte character encodings may not be autodetected correctly'), false);
}
else {
echo debug_result('',true);
@@ -158,23 +158,23 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP Safe Mode'); ?>:</td>
+<td><?php echo T_('PHP Safe Mode'); ?>:</td>
<td>
<?php
if (!check_safemode()) {
- echo debug_result(_('Safe mode enabled'), false);
+ echo debug_result(T_('Safe mode enabled'), false);
}
else {
- echo debug_result(_('Safe mode not enabled'), true);
+ echo debug_result(T_('Safe mode not enabled'), true);
}
?>
</td>
</tr><tr>
-<td><?php echo _('PHP Memory Limit'); ?>:</td>
+<td><?php echo T_('PHP Memory Limit'); ?>:</td>
<td>
<?php
if (!check_php_memory()) {
- echo debug_result(_('Memory limit less than recommended size') . ' ' . ini_get('memory_limit'), false);
+ echo debug_result(T_('Memory limit less than recommended size') . ' ' . ini_get('memory_limit'), false);
}
else {
echo debug_result(ini_get('memory_limit'),true);
@@ -183,19 +183,19 @@
?>
</td>
</tr><tr>
-<td><?php echo _('PHP Execution Time Limit'); ?>:</td>
+<td><?php echo T_('PHP Execution Time Limit'); ?>:</td>
<td>
<?php
if (!check_php_timelimit()) {
- echo debug_result(sprintf(_('Execution time limit is %s seconds, which is less than recommended'), ini_get('max_execution_time')), false);
+ echo debug_result(sprintf(T_('Execution time limit is %s seconds, which is less than recommended'), ini_get('max_execution_time')), false);
}
else {
- echo debug_result(ini_get('max_execution_time') . ' ' . _('seconds'),true);
+ echo debug_result(ini_get('max_execution_time') . ' ' . T_('seconds'),true);
}
?>
</td>
</tr><tr>
-<td><?php echo _('ampache.cfg.php is writable'); ?></td>
+<td><?php echo T_('ampache.cfg.php is writable'); ?></td>
<td>
<?php
if (!check_config_writable()) {
diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php
index 4ffb3b7d..0100d678 100644
--- a/templates/show_install_config.inc.php
+++ b/templates/show_install_config.inc.php
@@ -30,44 +30,44 @@ $prefix = realpath(dirname(__FILE__). "/../");
require $prefix . '/templates/install_header.inc.php';
?>
<div class="content">
- <?php echo _('Step 1 - Create the Ampache database'); ?><br />
- <strong><?php echo _('Step 2 - Create ampache.cfg.php'); ?></strong><br />
+ <?php echo T_('Step 1 - Create the Ampache database'); ?><br />
+ <strong><?php echo T_('Step 2 - Create ampache.cfg.php'); ?></strong><br />
<dl>
- <dd><?php printf(_('This step takes the basic config values and generates the config file. If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in %s'), $prefix . '/config'); ?></dd>
+ <dd><?php printf(T_('This step takes the basic config values and generates the config file. If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in %s'), $prefix . '/config'); ?></dd>
</dl>
- <?php echo _('Step 3 - Set up the initial account'); ?><br />
+ <?php echo T_('Step 3 - Set up the initial account'); ?><br />
<?php Error::display('general'); ?>
<br />
-<span class="header2"><?php echo _('Generate Config File'); ?></span>
+<span class="header2"><?php echo T_('Generate Config File'); ?></span>
<?php Error::display('config'); ?>
<form method="post" action="<?php echo WEB_PATH . "?action=create_config"; ?>" enctype="multipart/form-data" >
<table>
<tr>
- <td class="align"><?php echo _('Web Path'); ?></td>
+ <td class="align"><?php echo T_('Web Path'); ?></td>
<td class="align"><input type="text" name="web_path" value="<?php echo $web_path; ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('Database Name'); ?></td>
+ <td class="align"><?php echo T_('Database Name'); ?></td>
<td class="align"><input type="text" name="local_db" value="<?php echo scrub_out($_REQUEST['local_db']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Hostname'); ?></td>
+ <td class="align"><?php echo T_('MySQL Hostname'); ?></td>
<td class="align"><input type="text" name="local_host" value="<?php echo scrub_out($_REQUEST['local_host']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Username'); ?></td>
+ <td class="align"><?php echo T_('MySQL Username'); ?></td>
<td class="align"><input type="text" name="local_username" value="<?php echo scrub_out($_REQUEST['local_username']); ?>" /></td>
</tr>
<tr>
- <td class="align"><?php echo _('MySQL Password'); ?></td>
+ <td class="align"><?php echo T_('MySQL Password'); ?></td>
<td class="align"><input type="password" name="local_pass" value="" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
- <input type="submit" name="download" value="<?php echo _('Download'); ?>" />
- <input type="submit" name="write" value="<?php echo _('Write'); ?>" <?php if (!check_config_writable()) { echo "disabled "; } ?>/>
+ <input type="submit" name="download" value="<?php echo T_('Download'); ?>" />
+ <input type="submit" name="write" value="<?php echo T_('Write'); ?>" <?php if (!check_config_writable()) { echo "disabled "; } ?>/>
<input type="hidden" name="htmllang" value="<?php echo $htmllang; ?>" />
<input type="hidden" name="charset" value="<?php echo $charset; ?>" />
</td>
@@ -77,7 +77,7 @@ require $prefix . '/templates/install_header.inc.php';
<br />
<table>
<tr>
- <td class="align"><?php echo _('ampache.cfg.php exists?'); ?></td>
+ <td class="align"><?php echo T_('ampache.cfg.php exists?'); ?></td>
<td>[
<?php
if (!is_readable($configfile)) {
@@ -92,7 +92,7 @@ require $prefix . '/templates/install_header.inc.php';
</tr>
<tr>
<td class="align">
- <?php echo _('ampache.cfg.php configured?'); ?>
+ <?php echo T_('ampache.cfg.php configured?'); ?>
</td>
<td>[
<?php
@@ -111,13 +111,13 @@ require $prefix . '/templates/install_header.inc.php';
<td>&nbsp;</td>
<td>
<?php $check_url = WEB_PATH . "?action=show_create_config&amp;htmllang=$htmllang&amp;charset=$charset&amp;local_db=" . $_REQUEST['local_db'] . "&amp;local_host=" . $_REQUEST['local_host']; ?>
- <a href="<?php echo $check_url; ?>">[<?php echo _('Recheck Config'); ?>]</a>
+ <a href="<?php echo $check_url; ?>">[<?php echo T_('Recheck Config'); ?>]</a>
</td>
</tr>
</table>
<br />
<form method="post" action="<?php echo WEB_PATH . "?action=show_create_account&amp;htmllang=$htmllang&amp;charset=$charset"; ?>" enctype="multipart/form-data">
- <input type="submit" value="<?php echo _('Continue to Step 3'); ?>" />
+ <input type="submit" value="<?php echo T_('Continue to Step 3'); ?>" />
</form>
</div>
<div id="bottom">
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php
index 81395ebb..506bdee8 100644
--- a/templates/show_install_lang.inc.php
+++ b/templates/show_install_lang.inc.php
@@ -32,12 +32,12 @@ require $prefix . '/templates/install_header.inc.php';
<?php require_once 'templates/show_install_check.inc.php'; ?>
<?php if (Error::occurred()) { ?>
<div class="content">
- <span class="fatalerror"><?php echo _('Minimum requirements not met. Unable to install Ampache.'); ?></span>
+ <span class="fatalerror"><?php echo T_('Minimum requirements not met. Unable to install Ampache.'); ?></span>
</div>
<?php } ?>
<div class="content">
- <strong><?php echo _('Choose Installation Language'); ?></strong>
+ <strong><?php echo T_('Choose Installation Language'); ?></strong>
<p>
<?php Error::display('general'); ?>
</p>
@@ -58,7 +58,7 @@ foreach ($languages as $lang=>$name) {
echo "</select>\n";
?>
-<input type="submit" value="<?php echo _('Start configuration'); ?>" />
+<input type="submit" value="<?php echo T_('Start configuration'); ?>" />
</form>
</div>
diff --git a/templates/show_ip_history.inc.php b/templates/show_ip_history.inc.php
index 5f71aad7..4ac9c1e3 100644
--- a/templates/show_ip_history.inc.php
+++ b/templates/show_ip_history.inc.php
@@ -27,16 +27,16 @@
*/
?>
-<?php /* HINT: Username */ show_box_top(sprintf(_('%s IP History'), $working_user->fullname)); ?>
+<?php /* HINT: Username */ show_box_top(sprintf(T_('%s IP History'), $working_user->fullname)); ?>
<div id="information_actions">
<ul>
<li>
<?php if (isset($_REQUEST['all'])){ ?>
<a href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>"><?php echo get_user_icon('disable'); ?></a>
- <?php echo _('Show Unique'); ?>
+ <?php echo T_('Show Unique'); ?>
<?php }else{ ?>
<a href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>&all"><?php echo get_user_icon('add'); ?></a>
- <?php echo _('Show All'); ?>
+ <?php echo T_('Show All'); ?>
<?php }?>
</li>
</ul>
@@ -49,8 +49,8 @@
<col id="col_ipaddress" />
</colgroup>
<tr class="th-top">
- <th class="cel_date"><?php echo _('Date'); ?></th>
- <th class="cel_ipaddress"><?php echo _('IP Address'); ?></th>
+ <th class="cel_date"><?php echo T_('Date'); ?></th>
+ <th class="cel_ipaddress"><?php echo T_('IP Address'); ?></th>
</tr>
<?php foreach ($history as $data) { ?>
<tr class="<?php echo flip_class(); ?>">
@@ -63,8 +63,8 @@
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_date"><?php echo _('Date'); ?></th>
- <th class="cel_ipaddress"><?php echo _('IP Address'); ?></th>
+ <th class="cel_date"><?php echo T_('Date'); ?></th>
+ <th class="cel_ipaddress"><?php echo T_('IP Address'); ?></th>
</tr>
</table>
diff --git a/templates/show_live_stream.inc.php b/templates/show_live_stream.inc.php
index b119108c..0717d832 100644
--- a/templates/show_live_stream.inc.php
+++ b/templates/show_live_stream.inc.php
@@ -27,11 +27,11 @@
*/
?>
-<?php show_box_top(_('Manage Radio Stations'),'info-box'); ?>
+<?php show_box_top(T_('Manage Radio Stations'),'info-box'); ?>
<div id="information_actions">
<ul>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/radio.php?action=show_create"><?php echo get_user_icon('add',_('Add')); ?></a> <?php echo _('Add Radio Station'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/radio.php?action=show_create"><?php echo get_user_icon('add', T_('Add')); ?></a> <?php echo T_('Add Radio Station'); ?>
</li>
</ul>
</div>
diff --git a/templates/show_live_stream_row.inc.php b/templates/show_live_stream_row.inc.php
index 8b039824..75917b48 100644
--- a/templates/show_live_stream_row.inc.php
+++ b/templates/show_live_stream_row.inc.php
@@ -28,7 +28,7 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=live_stream&id=' . $radio->id,'add',_('Add'),'add_radio_' . $radio->id); ?>
+ <?php echo Ajax::button('?action=basket&type=live_stream&id=' . $radio->id,'add', T_('Add'),'add_radio_' . $radio->id); ?>
</td>
<td class="cel_streamname"><?php echo $radio->f_name_link; ?></td>
<td class="cel_callsign"><?php echo $radio->f_callsign; ?></td>
@@ -36,9 +36,9 @@
<td class="cel_tag"><?php echo $radio->f_tag; ?></td>
<td class="cel_action">
<?php if (Access::check('interface','50')) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=live_stream_row&id=' . $radio->id,'edit',_('Edit'),'edit_radio_' . $radio->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=live_stream_row&id=' . $radio->id,'edit', T_('Edit'),'edit_radio_' . $radio->id); ?>
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
- <?php echo Ajax::button('?page=browse&action=delete_object&type=live_stream&id=' . $radio->id,'delete',_('Delete'),'delete_radio_' . $radio->id); ?>
+ <?php echo Ajax::button('?page=browse&action=delete_object&type=live_stream&id=' . $radio->id,'delete', T_('Delete'),'delete_radio_' . $radio->id); ?>
<?php } ?>
</td>
diff --git a/templates/show_live_streams.inc.php b/templates/show_live_streams.inc.php
index 02983486..87a73b35 100644
--- a/templates/show_live_streams.inc.php
+++ b/templates/show_live_streams.inc.php
@@ -40,12 +40,12 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Name'),'live_stream_sort_name'); ?></th>
- <th class="cel_callsign"><?php echo Ajax::text('?page=browse&action=set_sort&sort=call_sign',_('Callsign'),'live_stream_call_sign'); ?></th>
- <th class="cel_frequency"><?php echo Ajax::text('?page=browse&action=set_sort&sort=frequency',_('Frequency'),'live_stream_frequency'); ?></th>
- <th class="cel_genre"><?php echo _('Tag'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name', T_('Name'),'live_stream_sort_name'); ?></th>
+ <th class="cel_callsign"><?php echo Ajax::text('?page=browse&action=set_sort&sort=call_sign', T_('Callsign'),'live_stream_call_sign'); ?></th>
+ <th class="cel_frequency"><?php echo Ajax::text('?page=browse&action=set_sort&sort=frequency', T_('Frequency'),'live_stream_frequency'); ?></th>
+ <th class="cel_genre"><?php echo T_('Tag'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?> </th>
</tr>
<?php
foreach ($object_ids as $radio_id) {
@@ -58,16 +58,16 @@ foreach ($object_ids as $radio_id) {
<?php } //end foreach ($artists as $artist) ?>
<?php if (!count($object_ids)) { ?>
<tr>
- <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="6"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Name'),'live_stream_sort_name_bottom'); ?></th>
- <th class="cel_callsign"><?php echo Ajax::text('?page=browse&action=set_sort&sort=call_sign',_('Callsign'),'live_stream_call_sign_bottom'); ?></th>
- <th class="cel_frequency"><?php echo Ajax::text('?page=browse&action=set_sort&sort=frequency',_('Frequency'),'live_stream_frequency_bottom'); ?></th>
- <th class="cel_genre"><?php echo _('Tag'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name', T_('Name'),'live_stream_sort_name_bottom'); ?></th>
+ <th class="cel_callsign"><?php echo Ajax::text('?page=browse&action=set_sort&sort=call_sign', T_('Callsign'),'live_stream_call_sign_bottom'); ?></th>
+ <th class="cel_frequency"><?php echo Ajax::text('?page=browse&action=set_sort&sort=frequency', T_('Frequency'),'live_stream_frequency_bottom'); ?></th>
+ <th class="cel_genre"><?php echo T_('Tag'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?> </th>
</tr>
</table>
<?php require Config::Get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_localplay_add_instance.inc.php b/templates/show_localplay_add_instance.inc.php
index 0863ddb5..5ae40d59 100644
--- a/templates/show_localplay_add_instance.inc.php
+++ b/templates/show_localplay_add_instance.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Add Localplay Instance'), 'box box_localplay_add_instance'); ?>
+<?php show_box_top(T_('Add Localplay Instance'), 'box box_localplay_add_instance'); ?>
<form method="post" action="<?php echo Config::get('web_path'); ?>/localplay.php?action=add_instance">
<table cellpadding="3" cellspacing="0" class="tabledata">
<?php foreach ($fields as $key=>$field) { ?>
@@ -38,7 +38,7 @@
<?php } ?>
</table>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Add Instance'); ?>" />
+ <input type="submit" value="<?php echo T_('Add Instance'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php
index 2a4a7aa4..7eaaf4cb 100644
--- a/templates/show_localplay_control.inc.php
+++ b/templates/show_localplay_control.inc.php
@@ -28,9 +28,9 @@
?>
<div id="localplay-control">
-<?php echo Ajax::button('?page=localplay&action=command&command=prev','prev',_('Previous'),'localplay_control_previous'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=stop','stop',_('Stop'),'localplay_control_stop'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=pause','pause',_('Pause'),'localplay_control_pause'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=play','play',_('Play'),'localplay_control_play'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=next','next',_('Next'),'localplay_control_next'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=prev','prev', T_('Previous'),'localplay_control_previous'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=stop','stop', T_('Stop'),'localplay_control_stop'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=pause','pause', T_('Pause'),'localplay_control_pause'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=play','play', T_('Play'),'localplay_control_play'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=next','next', T_('Next'),'localplay_control_next'); ?>
</div>
diff --git a/templates/show_localplay_controllers.inc.php b/templates/show_localplay_controllers.inc.php
index 8b3cda94..c6494266 100644
--- a/templates/show_localplay_controllers.inc.php
+++ b/templates/show_localplay_controllers.inc.php
@@ -37,10 +37,10 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_description"><?php echo _('Description'); ?></th>
- <th class="cel_version"><?php echo _('Version'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_description"><?php echo T_('Description'); ?></th>
+ <th class="cel_version"><?php echo T_('Version'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($controllers as $controller) {
@@ -49,11 +49,11 @@ foreach ($controllers as $controller) {
$localplay->format();
if (Localplay::is_enabled($controller)) {
$action = 'confirm_uninstall_localplay';
- $action_txt = _('Disable');
+ $action_txt = T_('Disable');
}
else {
$action = 'install_localplay';
- $action_txt = _('Activate');
+ $action_txt = T_('Activate');
}
?>
<tr class="<?php echo flip_class(); ?>">
@@ -64,14 +64,14 @@ foreach ($controllers as $controller) {
</tr>
<?php } if (!count($controllers)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="4"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+ <td colspan="4"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_description"><?php echo _('Description'); ?></th>
- <th class="cel_version"><?php echo _('Version'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_description"><?php echo T_('Description'); ?></th>
+ <th class="cel_version"><?php echo T_('Version'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<br />
diff --git a/templates/show_localplay_edit_instance.inc.php b/templates/show_localplay_edit_instance.inc.php
index 42a5dcf8..ca9ca250 100644
--- a/templates/show_localplay_edit_instance.inc.php
+++ b/templates/show_localplay_edit_instance.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Edit Localplay Instance'), 'box box_localplay_edit_instance'); ?>
+<?php show_box_top(T_('Edit Localplay Instance'), 'box box_localplay_edit_instance'); ?>
<form method="post" action="<?php echo Config::get('web_path'); ?>/localplay.php?action=update_instance&amp;instance=<?php echo intval($_REQUEST['instance']); ?>">
<table cellpadding="3" cellspacing="0" class="tabledata">
<?php foreach ($fields as $key=>$field) { ?>
@@ -38,7 +38,7 @@
<?php } ?>
</table>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Update Instance'); ?>" />
+ <input type="submit" value="<?php echo T_('Update Instance'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_localplay_instances.inc.php b/templates/show_localplay_instances.inc.php
index c88934cc..5d61cd45 100644
--- a/templates/show_localplay_instances.inc.php
+++ b/templates/show_localplay_instances.inc.php
@@ -27,13 +27,13 @@
*/
?>
-<?php show_box_top(_('Show Localplay Instances'), 'box box_localplay_instances'); ?>
+<?php show_box_top(T_('Show Localplay Instances'), 'box box_localplay_instances'); ?>
<table cellpadding="3" cellspacing="0" class="tabledata">
<tr>
<?php foreach ($fields as $key=>$field) { ?>
<th><?php echo $field['description']; ?></th>
<?php } ?>
- <th><?php echo _('Action'); ?></th>
+ <th><?php echo T_('Action'); ?></th>
</tr>
<?php foreach ($instances as $uid=>$name) {
$instance = $localplay->get_instance($uid);
@@ -43,8 +43,8 @@
<td><?php echo $instance[$key]; ?></td>
<?php } ?>
<td>
- <a href="<?php echo Config::get('web_path'); ?>/localplay.php?action=edit_instance&instance=<?php echo $uid; ?>"><?php echo get_user_icon('edit',_('Edit Instance')); ?></a>
- <?php echo Ajax::button('?page=localplay&action=delete_instance&instance=' . $uid,'delete',_('Delete'),'delete_instance_' . $uid); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/localplay.php?action=edit_instance&instance=<?php echo $uid; ?>"><?php echo get_user_icon('edit', T_('Edit Instance')); ?></a>
+ <?php echo Ajax::button('?page=localplay&action=delete_instance&instance=' . $uid,'delete', T_('Delete'),'delete_instance_' . $uid); ?>
</td>
</tr>
<?php } ?>
diff --git a/templates/show_localplay_playlist.inc.php b/templates/show_localplay_playlist.inc.php
index ea42800c..7572cf95 100644
--- a/templates/show_localplay_playlist.inc.php
+++ b/templates/show_localplay_playlist.inc.php
@@ -38,9 +38,9 @@ $status = $localplay->status();
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($object_ids as $object) {
@@ -55,18 +55,18 @@ foreach ($object_ids as $object) {
<?php echo $localplay->format_name($object['name'],$object['id']); ?>
</td>
<td class="cel_action">
- <?php echo Ajax::button('?page=localplay&action=delete_track&id=' . intval($object['id']),'delete',_('Delete'),'localplay_delete_' . intval($object['id'])); ?>
+ <?php echo Ajax::button('?page=localplay&action=delete_track&id=' . intval($object['id']),'delete', T_('Delete'),'localplay_delete_' . intval($object['id'])); ?>
</td>
</tr>
<?php } if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="3"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+ <td colspan="3"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_localplay_status.inc.php b/templates/show_localplay_status.inc.php
index 028e442d..b97b6b79 100644
--- a/templates/show_localplay_status.inc.php
+++ b/templates/show_localplay_status.inc.php
@@ -30,28 +30,28 @@ $status = $localplay->status();
$now_playing = $status['track_title'] ? $status['track_title'] . ' - ' . $status['track_album'] . ' - ' . $status['track_artist'] : '';
?>
<?php Ajax::start_container('localplay_status'); ?>
-<?php show_box_top(_('Localplay Control') . ' - '. strtoupper($localplay->type), 'box box_localplay_status'); ?>
-<?php echo _('Now Playing'); ?>:<i><?php echo $now_playing; ?></i>
+<?php show_box_top(T_('Localplay Control') . ' - '. strtoupper($localplay->type), 'box box_localplay_status'); ?>
+<?php echo T_('Now Playing'); ?>:<i><?php echo $now_playing; ?></i>
<div id="information_actions">
<ul>
<li>
-<?php echo Ajax::button('?page=localplay&action=command&command=volume_mute','volumemute',_('Mute'),'localplay_mute'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=volume_down','volumedn',_('Decrease Volume'),'localplay_volume_dn'); ?>
-<?php echo Ajax::button('?page=localplay&action=command&command=volume_up','volumeup',_('Increase Volume'),'localplay_volume_up'); ?>
-<?php echo _('Volume'); ?>:<?php echo $status['volume']; ?>%
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_mute','volumemute', T_('Mute'),'localplay_mute'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_down','volumedn', T_('Decrease Volume'),'localplay_volume_dn'); ?>
+<?php echo Ajax::button('?page=localplay&action=command&command=volume_up','volumeup', T_('Increase Volume'),'localplay_volume_up'); ?>
+<?php echo T_('Volume'); ?>:<?php echo $status['volume']; ?>%
</li>
<li>
<?php echo print_bool($status['repeat']); ?> |
<?php echo Ajax::text('?page=localplay&action=repeat&value=' . invert_bool($status['repeat']), print_bool(invert_bool($status['repeat'])), 'localplay_repeat'); ?>
- <?php echo _('Repeat'); ?>
+ <?php echo T_('Repeat'); ?>
</li>
<li>
<?php echo print_bool($status['random']); ?> |
<?php echo Ajax::text('?page=localplay&action=random&value=' . invert_bool($status['random']), print_bool(invert_bool($status['random'])), 'localplay_random'); ?>
- <?php echo _('Random'); ?>
+ <?php echo T_('Random'); ?>
</li>
<li>
- <?php echo Ajax::button('?page=localplay&action=command&command=delete_all','delete',_('Clear Playlist'),'localplay_clear_all'); ?><?php echo _('Clear Playlist'); ?>
+ <?php echo Ajax::button('?page=localplay&action=command&command=delete_all','delete', T_('Clear Playlist'),'localplay_clear_all'); ?><?php echo T_('Clear Playlist'); ?>
</li>
</ul>
</div>
diff --git a/templates/show_login_form.inc.php b/templates/show_login_form.inc.php
index d4d65b2d..58860351 100644
--- a/templates/show_login_form.inc.php
+++ b/templates/show_login_form.inc.php
@@ -63,28 +63,28 @@ function focus(){ document.login.username.focus(); }
<form name="login" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/login.php">
<div class="loginfield" id="usernamefield">
- <label for="username"><?php echo _('Username'); ?>:</label>
+ <label for="username"><?php echo T_('Username'); ?>:</label>
<input class="text_input" type="text" id="username" name="username" value="<?php echo scrub_out($_REQUEST['username']); ?>" />
</div>
<div class="loginfield" id="passwordfield">
- <label for="password"><?php echo _('Password'); ?>:</label>
+ <label for="password"><?php echo T_('Password'); ?>:</label>
<input class="text_input" type="password" id="password" name="password" value="" />
</div>
<div class="loginfield" id="remembermefield"><label for="rememberme">
- <?php echo _('Remember Me'); ?>&nbsp;</label><input type="checkbox" id="rememberme" name="rememberme" <?php echo $remember_disabled; ?> />
+ <?php echo T_('Remember Me'); ?>&nbsp;</label><input type="checkbox" id="rememberme" name="rememberme" <?php echo $remember_disabled; ?> />
</div>
<?php echo Config::get('login_message'); ?>
<?php Error::display('general'); ?>
<div class="formValidation">
- <a class="button" id="lostpasswordbutton" href="<?php echo Config::get('web_path'); ?>/lostpassword.php"><?php echo _('Lost password'); ?></a>
- <input class="button" id="loginbutton" type="submit" value="<?php echo _('Login'); ?>" />
+ <a class="button" id="lostpasswordbutton" href="<?php echo Config::get('web_path'); ?>/lostpassword.php"><?php echo T_('Lost password'); ?></a>
+ <input class="button" id="loginbutton" type="submit" value="<?php echo T_('Login'); ?>" />
<input type="hidden" name="referrer" value="<?php echo scrub_out($_SERVER['HTTP_REFERRER']); ?>" />
<input type="hidden" name="action" value="login" />
<?php if (Config::get('allow_public_registration')) { ?>
- <a class="button" id="registerbutton" href="<?php echo Config::get('web_path'); ?>/register.php"><?php echo _('Register'); ?></a>
+ <a class="button" id="registerbutton" href="<?php echo Config::get('web_path'); ?>/register.php"><?php echo T_('Register'); ?></a>
<?php } // end if (conf('allow_public_registration')) ?>
</div>
@@ -96,7 +96,7 @@ if (@is_readable(Config::get('prefix') . '/config/motd.php')) {
?>
<div id="motd">
<?php
- show_box_top(_('Message of the Day'));
+ show_box_top(T_('Message of the Day'));
include Config::get('prefix') . '/config/motd.php';
show_box_bottom();
?>
@@ -105,7 +105,7 @@ if (@is_readable(Config::get('prefix') . '/config/motd.php')) {
<div id="footer">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
Copyright (c) 2001 - 2010 Ampache.org
- <?php echo _('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo _('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
+ <?php echo T_('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo T_('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
</div>
</body>
</html>
diff --git a/templates/show_lostpassword_form.inc.php b/templates/show_lostpassword_form.inc.php
index c8a782dc..07a8cce7 100644
--- a/templates/show_lostpassword_form.inc.php
+++ b/templates/show_lostpassword_form.inc.php
@@ -70,16 +70,16 @@ function focus(){ document.login.username.focus(); }
<h2><?php echo scrub_out(Config::get('site_title')); ?></h2>
<form name="login" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/lostpassword.php">
- <div class="loginfield" id="email"><label for="email"><?php echo _('Email'); ?>:</label>
+ <div class="loginfield" id="email"><label for="email"><?php echo T_('Email'); ?>:</label>
<input type="hidden" id="action" name="action" value="send" />
<input class="text_input" type="text" id="email" name="email" /></div>
<input class="button" id="lostpasswordbutton" type="submit"
- value="<?php echo _('Submit'); ?>" /></form>
+ value="<?php echo T_('Submit'); ?>" /></form>
</div>
</div>
<div id="footer"><a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
-Copyright (c) 2001 - 2009 Ampache.org <?php echo _('Queries:'); ?><?php echo Dba::$stats['query']; ?>
-<?php echo _('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
+Copyright (c) 2001 - 2009 Ampache.org <?php echo T_('Queries:'); ?><?php echo Dba::$stats['query']; ?>
+<?php echo T_('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
</div>
</body>
</html>
diff --git a/templates/show_lyrics.inc.php b/templates/show_lyrics.inc.php
index aa5eb34c..89b4978d 100644
--- a/templates/show_lyrics.inc.php
+++ b/templates/show_lyrics.inc.php
@@ -37,14 +37,14 @@
* @todo get lyrics from id3tag, if possible.
*/
/* HINT: Song Title */
-show_box_top(sprintf(_('%s Lyrics'), $song->title), 'box box_lyrics');
+show_box_top(sprintf(T_('%s Lyrics'), $song->title), 'box box_lyrics');
?>
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
if($return == "Sorry Lyrics, Not found") {
- echo _("Sorry Lyrics Not Found.");
+ echo T_("Sorry Lyrics Not Found.");
}
else {
echo $link;
diff --git a/templates/show_lyrics_song.inc.php b/templates/show_lyrics_song.inc.php
index b9af036f..11c0b395 100644
--- a/templates/show_lyrics_song.inc.php
+++ b/templates/show_lyrics_song.inc.php
@@ -46,21 +46,21 @@ $artist = scrub_out(truncate_with_ellipsis($song->f_artist_full));
<div class="np_group">
<div class="np_cell cel_song">
- <label><?php echo _('Song'); ?></label>
+ <label><?php echo T_('Song'); ?></label>
<a title="<?php echo scrub_out($song->title); ?>" href="<?php echo $web_path; ?>/stream.php?action=single_song&amp;song_id=<?php echo $song->id; ?>">
<?php echo $title; ?>
</a>
</div>
<div class="np_cell cel_album">
- <label><?php echo _('Album'); ?></label>
+ <label><?php echo T_('Album'); ?></label>
<a title="<?php echo scrub_out($song->f_album_full); ?>" href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $song->album; ?>">
<?php echo $album; ?>
</a>
</div>
<div class="np_cell cel_artist">
- <label><?php echo _('Artist'); ?></label>
+ <label><?php echo T_('Artist'); ?></label>
<a title="<?php echo scrub_out($song->f_artist_full); ?>" href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $song->artist; ?>">
<?php echo $artist; ?>
</a>
diff --git a/templates/show_mail_users.inc.php b/templates/show_mail_users.inc.php
index acc13fb5..66cd7ad2 100644
--- a/templates/show_mail_users.inc.php
+++ b/templates/show_mail_users.inc.php
@@ -28,17 +28,17 @@
?>
-<?php show_box_top(_('Send E-mail to Users'), 'box box_mail_users'); ?>
+<?php show_box_top(T_('Send E-mail to Users'), 'box box_mail_users'); ?>
<form name="mail" method="post" action="<?php echo Config::get('web_path'); ?>/admin/mail.php?action=send_mail" enctype="multipart/form-data">
<table>
<tr>
- <td><?php echo _('Mail to'); ?>:</td>
+ <td><?php echo T_('Mail to'); ?>:</td>
<td>
<select name="to">
- <option value="all" title="Mail Everyone"><?php echo _('All'); ?></option>
- <option value="users" title="Mail Users"><?php echo _('User'); ?></option>
- <option value="admins" title="Mail Admins"><?php echo _('Admin'); ?></option>
- <option value="inactive" title="Mail Inactive Users"><?php echo _('Inactive Users'); ?>&nbsp;</option>
+ <option value="all" title="Mail Everyone"><?php echo T_('All'); ?></option>
+ <option value="users" title="Mail Users"><?php echo T_('User'); ?></option>
+ <option value="admins" title="Mail Admins"><?php echo T_('Admin'); ?></option>
+ <option value="inactive" title="Mail Inactive Users"><?php echo T_('Inactive Users'); ?>&nbsp;</option>
</select>
</td>
</tr>
@@ -47,43 +47,43 @@
<td colspan="2">
<table>
<tr>
- <td><?php echo _('Catalog Statistics'); ?>:</td>
+ <td><?php echo T_('Catalog Statistics'); ?>:</td>
<td>
<input type="checkbox" name="cat_stats" value="yes" />
</td>
- <td><?php echo _('Most Popular Albums'); ?>:</td>
+ <td><?php echo T_('Most Popular Albums'); ?>:</td>
<td>
<input type="checkbox" name="pop_albums" value="yes" />
</td>
</tr>
<tr>
- <td><?php echo _('Latest Artist Additions'); ?>:</td>
+ <td><?php echo T_('Latest Artist Additions'); ?>:</td>
<td>
<input type="checkbox" name="new_artists" value="yes" />
</td>
- <td><?php echo _('Most Popular Artists'); ?>:</td>
+ <td><?php echo T_('Most Popular Artists'); ?>:</td>
<td>
<input type="checkbox" name="pop_artists" value="yes" />
</td>
</tr>
<tr>
- <td><?php echo _('Latest Album Additions'); ?>:</td>
+ <td><?php echo T_('Latest Album Additions'); ?>:</td>
<td>
<input type="checkbox" name="new_albums" value="yes" />
</td>
- <td><?php echo _('Most Popular Songs'); ?>:</td>
+ <td><?php echo T_('Most Popular Songs'); ?>:</td>
<td>
<input type="checkbox" name="pop_songs" value="yes" />
</td>
</tr>
<tr>
- <td><?php echo _('Flagged Songs'); ?>:</td>
+ <td><?php echo T_('Flagged Songs'); ?>:</td>
<td>
<input type="checkbox" name="flagged" value="yes" />
</td>
- <td><?php echo _('Disabled Songs'); ?>:</td>
+ <td><?php echo T_('Disabled Songs'); ?>:</td>
<td>
<input type="checkbox" name="disabled" value="yes" />
</td>
@@ -91,7 +91,7 @@
</tr>
<tr>
- <td colspan = "2"><?php echo _('Most Popular Threshold in days'); ?>:</td>
+ <td colspan = "2"><?php echo T_('Most Popular Threshold in days'); ?>:</td>
<td>
<input type="text" name="threshold" size="3" value="<?php echo Config::get('popular_threshold'); ?>" />
</td>
@@ -102,23 +102,23 @@
</tr>
-->
<tr>
- <td><?php echo _('From'); ?>:</td>
+ <td><?php echo T_('From'); ?>:</td>
<td>
<select name="from">
- <option value="self" title="Self"><?php echo _('Yourself'); ?></option>
- <option value="system" title="System"><?php echo _('Ampache'); ?></option>
+ <option value="self" title="Self"><?php echo T_('Yourself'); ?></option>
+ <option value="system" title="System"><?php echo T_('Ampache'); ?></option>
</select>
</td>
</tr>
<tr>
- <td><?php echo _('Subject'); ?>:</td>
+ <td><?php echo T_('Subject'); ?>:</td>
<td colspan="3">
<input name="subject" value="<?php echo scrub_out($_POST['subject']); ?>" size="50"></input>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Message'); ?>:</td>
+ <td valign="top"><?php echo T_('Message'); ?>:</td>
<td>
<textarea class="input" name="message" rows="10" cols="70"></textarea>
</td>
@@ -126,7 +126,7 @@
</table>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Send Mail'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Send Mail'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_manage_catalogs.inc.php b/templates/show_manage_catalogs.inc.php
index 4656b1d5..7f5d302a 100644
--- a/templates/show_manage_catalogs.inc.php
+++ b/templates/show_manage_catalogs.inc.php
@@ -27,27 +27,27 @@
*/
?>
-<?php show_box_top(_('Show Catalogs'), 'box box_manage_catalogs') ?>
+<?php show_box_top(T_('Show Catalogs'), 'box box_manage_catalogs') ?>
<div id="information_actions">
<table>
<tr>
<td>
<ul>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=gather_album_art"><?php echo _('Gather All Art'); ?></a></li>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=add_to_all_catalogs"><?php echo _('Add to All'); ?></a> </li>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=update_all_catalogs"><?php echo _('Verify All'); ?></a></li>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=clean_all_catalogs"><?php echo _('Clean All'); ?></a></li>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=full_service"><?php echo _('Update All'); ?></a></li>
- <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=clear_stats"><?php echo _('Clear Stats'); ?></a></li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=gather_album_art"><?php echo T_('Gather All Art'); ?></a></li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=add_to_all_catalogs"><?php echo T_('Add to All'); ?></a> </li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=update_all_catalogs"><?php echo T_('Verify All'); ?></a></li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=clean_all_catalogs"><?php echo T_('Clean All'); ?></a></li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=full_service"><?php echo T_('Update All'); ?></a></li>
+ <li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=clear_stats"><?php echo T_('Clear Stats'); ?></a></li>
</ul>
</td>
<td>
<form method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=update_from">
- <?php /* HINT: /data/myNewMusic */ ?><?php printf (_('Add From %s'), '<span class="information">/data/myNewMusic</span>'); ?><br />
+ <?php /* HINT: /data/myNewMusic */ ?><?php printf (T_('Add From %s'), '<span class="information">/data/myNewMusic</span>'); ?><br />
<input type="text" name="add_path" value="/" /><br />
- <?php /* HINT: /data/myUpdatedMusic */ ?><?php printf (_('Update From %s'), '<span class="information">/data/myUpdatedMusic</span>'); ?><br />
+ <?php /* HINT: /data/myUpdatedMusic */ ?><?php printf (T_('Update From %s'), '<span class="information">/data/myUpdatedMusic</span>'); ?><br />
<input type="text" name="update_path" value="/" /><br />
-<input type="submit" value="<?php echo _('Update'); ?>" />
+<input type="submit" value="<?php echo T_('Update'); ?>" />
</form>
</td>
</tr>
diff --git a/templates/show_manage_democratic.inc.php b/templates/show_manage_democratic.inc.php
index 33d5373a..9b274265 100644
--- a/templates/show_manage_democratic.inc.php
+++ b/templates/show_manage_democratic.inc.php
@@ -26,7 +26,7 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Manage Democratic Playlists')); ?>
+show_box_top(T_('Manage Democratic Playlists')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_number" />
@@ -38,13 +38,13 @@ show_box_top(_('Manage Democratic Playlists')); ?>
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_number"><?php echo _('Playlist'); ?></th>
- <th class="cel_base_playlist"><?php echo _('Base Playlist'); ?></th>
- <th class="cel_cooldown"><?php echo _('Cooldown'); ?></th>
- <th class="cel_level"><?php echo _('Level'); ?></th>
- <th class="cel_default"><?php echo _('Default'); ?></th>
- <th class="cel_vote_count"><?php echo _('Songs'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_number"><?php echo T_('Playlist'); ?></th>
+ <th class="cel_base_playlist"><?php echo T_('Base Playlist'); ?></th>
+ <th class="cel_cooldown"><?php echo T_('Cooldown'); ?></th>
+ <th class="cel_level"><?php echo T_('Level'); ?></th>
+ <th class="cel_default"><?php echo T_('Default'); ?></th>
+ <th class="cel_vote_count"><?php echo T_('Songs'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($playlists as $democratic_id) {
@@ -61,18 +61,18 @@ show_box_top(_('Manage Democratic Playlists')); ?>
<td><?php echo $democratic->f_primary; ?></td>
<td><?php echo $democratic->count_items(); ?></td>
<td>
- <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id,'all',_('Play'),'play_democratic'); ?>
- <a href="<?php echo Config::get('web_path'); ?>/democratic.php?action=delete&amp;democratic_id=<?php echo scrub_out($democratic->id); ?>"><?php echo get_user_icon('delete', _('Delete')); ?></a>
+ <?php echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id,'all', T_('Play'),'play_democratic'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/democratic.php?action=delete&amp;democratic_id=<?php echo scrub_out($democratic->id); ?>"><?php echo get_user_icon('delete', T_('Delete')); ?></a>
</td>
</tr>
<?php } if (!count($playlists)) { ?>
<tr>
- <td colspan="7"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="7"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
</table>
<br />
<div>
-<a class="button" href="<?php echo Config::get('web_path'); ?>/democratic.php?action=show_create"><?php echo _('Create New Playlist'); ?></a>
+<a class="button" href="<?php echo Config::get('web_path'); ?>/democratic.php?action=show_create"><?php echo T_('Create New Playlist'); ?></a>
</div>
<?php show_box_bottom(); ?>
diff --git a/templates/show_manage_shoutbox.inc.php b/templates/show_manage_shoutbox.inc.php
index b6b1fe0b..374c5a24 100644
--- a/templates/show_manage_shoutbox.inc.php
+++ b/templates/show_manage_shoutbox.inc.php
@@ -38,12 +38,12 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_object"><?php echo _('Object'); ?></th>
- <th class="cel_username"><?php echo _('User'); ?></th>
- <th class="cel_flag"><?php echo _('Sticky'); ?></th>
- <th class="cel_comment"><?php echo _('Comment'); ?></th>
- <th class="cel_date"><?php echo _('Date Added'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_object"><?php echo T_('Object'); ?></th>
+ <th class="cel_username"><?php echo T_('User'); ?></th>
+ <th class="cel_flag"><?php echo T_('Sticky'); ?></th>
+ <th class="cel_comment"><?php echo T_('Comment'); ?></th>
+ <th class="cel_date"><?php echo T_('Date Added'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($object_ids as $shout_id) {
@@ -58,15 +58,15 @@ foreach ($object_ids as $shout_id) {
?>
<?php } if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="7" class="error"><?php echo _('No Records Found'); ?></td>
+ <td colspan="7" class="error"><?php echo T_('No Records Found'); ?></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_object"><?php echo _('Object'); ?></th>
- <th class="cel_username"><?php echo _('User'); ?></th>
- <th class="cel_sticky"><?php echo _('Sticky'); ?></th>
- <th class="cel_comment"><?php echo _('Comment'); ?></th>
- <th class="cel_date"><?php echo _('Date Added'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_object"><?php echo T_('Object'); ?></th>
+ <th class="cel_username"><?php echo T_('User'); ?></th>
+ <th class="cel_sticky"><?php echo T_('Sticky'); ?></th>
+ <th class="cel_comment"><?php echo T_('Comment'); ?></th>
+ <th class="cel_date"><?php echo T_('Date Added'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
diff --git a/templates/show_newest.inc.php b/templates/show_newest.inc.php
index 6236058a..23740c88 100644
--- a/templates/show_newest.inc.php
+++ b/templates/show_newest.inc.php
@@ -27,6 +27,6 @@
*/
?>
-<?php show_box_top(_('Information')); ?>
+<?php show_box_top(T_('Information')); ?>
<?php require_once Config::get('prefix') . '/templates/show_stats_newest.inc.php'; ?>
<?php show_box_bottom(); ?>
diff --git a/templates/show_now_playing.inc.php b/templates/show_now_playing.inc.php
index b2e8140f..09374b63 100644
--- a/templates/show_now_playing.inc.php
+++ b/templates/show_now_playing.inc.php
@@ -36,7 +36,7 @@
if (count($results)) {
$link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('nowplaying') : '';
?>
-<?php show_box_top(_('Now Playing') . $link); ?>
+<?php show_box_top(T_('Now Playing') . $link); ?>
<?php
foreach ($results as $item) {
$media = $item['media'];
diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php
index d3b647b9..031af1c7 100644
--- a/templates/show_now_playing_row.inc.php
+++ b/templates/show_now_playing_row.inc.php
@@ -33,14 +33,14 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full));
?>
<div class="np_group" id="np_group_1">
<div class="np_cell cel_username">
- <label><?php echo _('Username'); ?></label>
+ <label><?php echo T_('Username'); ?></label>
<a title="<?php echo scrub_out($agent); ?>" href="<?php echo $web_path; ?>/stats.php?action=show_user&amp;user_id=<?php echo $np_user->id; ?>">
<?php echo scrub_out($np_user->fullname); ?>
</a>
</div>
<div class="np_cell cel_rating">
- <label><?php echo _('Rating'); ?></label>
+ <label><?php echo T_('Rating'); ?></label>
<div id="rating_<?php echo $media->id; ?>_song">
<?php Rating::show($media->id,'song'); ?>
</div>
@@ -50,7 +50,7 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full));
<div class="np_cell cel_lyrics">
<label>&nbsp;</label>
<a title="<?php echo scrub_out($media->title); ?>" href="<?php echo $web_path; ?>/song.php?action=show_lyrics&amp;song_id=<?php echo $media->id; ?>">
- <?php echo _('Show Lyrics');?>
+ <?php echo T_('Show Lyrics');?>
</a>
</div>
<?php } ?>
@@ -58,21 +58,21 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full));
<div class="np_group" id="np_group_2">
<div class="np_cell cel_song">
- <label><?php echo _('Song'); ?></label>
+ <label><?php echo T_('Song'); ?></label>
<a title="<?php echo scrub_out($media->title); ?>" href="<?php echo $web_path; ?>/stream.php?action=single_song&amp;song_id=<?php echo $media->id; ?>">
<?php echo $title; ?>
</a>
</div>
<div class="np_cell cel_album">
- <label><?php echo _('Album'); ?></label>
+ <label><?php echo T_('Album'); ?></label>
<a title="<?php echo scrub_out($media->f_album_full); ?>" href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $media->album; ?>">
<?php echo $album; ?>
</a>
</div>
<div class="np_cell cel_artist">
- <label><?php echo _('Artist'); ?></label>
+ <label><?php echo T_('Artist'); ?></label>
<a title="<?php echo scrub_out($media->f_artist_full); ?>" href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $media->artist; ?>">
<?php echo $artist; ?>
</a>
@@ -93,7 +93,7 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full));
<div class="np_group">
<?php if ($artists = Recommendation::get_artists_like($media->artist, 3, false)) { ?>
<div class="np_cel cel_similar">
- <label><?php echo _('Similar Artists'); ?></label>
+ <label><?php echo T_('Similar Artists'); ?></label>
<?php foreach ($artists as $a) { ?>
<div class="np_cel cel_similar_artist">
<?php
@@ -112,7 +112,7 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full));
<?php } // end show similar artists ?>
<?php if ($songs = Recommendation::get_songs_like($media->id, 3)) { ?>
<div class="np_cel cel_similar">
- <label><?php echo _('Similar Songs'); ?></label>
+ <label><?php echo T_('Similar Songs'); ?></label>
<?php foreach ($songs as $s) { ?>
<div class="np_cel cel_similar_song">
<?php
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php
index 167015dc..8fa40fac 100644
--- a/templates/show_object_rating.inc.php
+++ b/templates/show_object_rating.inc.php
@@ -39,11 +39,11 @@ $base_url = '?action=set_rating&rating_type=' . $rating->type . '&object_id=' .
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++)
{
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&amp;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
}
diff --git a/templates/show_objects.inc.php b/templates/show_objects.inc.php
index 9630a4e1..d31925d1 100644
--- a/templates/show_objects.inc.php
+++ b/templates/show_objects.inc.php
@@ -48,7 +48,7 @@
<?php if (!count($objects)) { ?>
<tr>
<td colspan="<?php echo count($headers); ?>">
- <span class="error"><?php echo _('Not Enough Data'); ?></span>
+ <span class="error"><?php echo T_('Not Enough Data'); ?></span>
</td>
</tr>
<?php } ?>
diff --git a/templates/show_playlist.inc.php b/templates/show_playlist.inc.php
index 35adadc8..a9961b26 100644
--- a/templates/show_playlist.inc.php
+++ b/templates/show_playlist.inc.php
@@ -43,33 +43,33 @@ show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title .
<div id="information_actions">
<ul>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/playlist.php?action=normalize_tracks&amp;playlist_id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('statistics',_('Normalize Tracks')); ?></a>
- <?php echo _('Normalize Tracks'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/playlist.php?action=normalize_tracks&amp;playlist_id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('statistics', T_('Normalize Tracks')); ?></a>
+ <?php echo T_('Normalize Tracks'); ?>
</li>
<?php if (Access::check_function('batch_download')) { ?>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=playlist&amp;id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('batch_download', _('Batch Download')); ?></a>
- <?php echo _('Batch Download'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=playlist&amp;id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('batch_download', T_('Batch Download')); ?></a>
+ <?php echo T_('Batch Download'); ?>
</li>
<?php } ?>
<li>
- <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id,'add',_('Add All'),'play_playlist'); ?>
- <?php echo _('Add All'); ?>
+ <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id,'add', T_('Add All'),'play_playlist'); ?>
+ <?php echo T_('Add All'); ?>
</li>
<li>
- <?php echo Ajax::button('?action=basket&type=playlist_random&id=' . $playlist->id,'random',_('Add Random'),'play_playlist_random'); ?>
- <?php echo _('Add Random'); ?>
+ <?php echo Ajax::button('?action=basket&type=playlist_random&id=' . $playlist->id,'random', T_('Add Random'),'play_playlist_random'); ?>
+ <?php echo T_('Add Random'); ?>
</li>
<?php if ($playlist->has_access()) { ?>
<li>
- <?php echo Ajax::button('?action=show_edit_object&type=playlist_title&id=' . $playlist->id,'edit',_('Edit'),'edit_playlist_' . $playlist->id); ?>
- <?php echo _('Edit'); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=playlist_title&id=' . $playlist->id,'edit', T_('Edit'),'edit_playlist_' . $playlist->id); ?>
+ <?php echo T_('Edit'); ?>
</li>
<li>
<a href="<?php echo Config::get('web_path'); ?>/playlist.php?action=delete_playlist&playlist_id=<?php echo $playlist->id; ?>">
<?php echo get_user_icon('delete'); ?>
</a>
- <?php echo _('Delete'); ?>
+ <?php echo T_('Delete'); ?>
</li>
<?php } ?>
</ul>
diff --git a/templates/show_playlist_row.inc.php b/templates/show_playlist_row.inc.php
index 95e252f5..08f83e84 100644
--- a/templates/show_playlist_row.inc.php
+++ b/templates/show_playlist_row.inc.php
@@ -28,8 +28,8 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id,'add',_('Add'),'add_playlist_' . $playlist->id); ?>
- <?php echo Ajax::button('?action=basket&type=playlist_random&id=' . $playlist->id,'random',_('Random'),'random_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist->id,'add', T_('Add'),'add_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=playlist_random&id=' . $playlist->id,'random', T_('Random'),'random_playlist_' . $playlist->id); ?>
</td>
<td class="cel_playlist"><?php echo $playlist->f_link; ?></td>
<td class="cel_type"><?php echo $playlist->f_type; ?></td>
@@ -38,11 +38,11 @@
<td class="cel_action">
<?php if (Access::check_function('batch_download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/batch.php?action=playlist&amp;id=<?php echo $playlist->id; ?>">
- <?php echo get_user_icon('batch_download',_('Batch Download')); ?>
+ <?php echo get_user_icon('batch_download', T_('Batch Download')); ?>
</a>
<?php } ?>
<?php if ($playlist->has_access()) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=playlist_row&id=' . $playlist->id,'edit',_('Edit'),'edit_playlist_' . $playlist->id); ?>
- <?php echo Ajax::button('?page=browse&action=delete_object&type=playlist&id=' . $playlist->id,'delete',_('Delete'),'delete_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=playlist_row&id=' . $playlist->id,'edit', T_('Edit'),'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?page=browse&action=delete_object&type=playlist&id=' . $playlist->id,'delete', T_('Delete'),'delete_playlist_' . $playlist->id); ?>
<?php } ?>
</td>
diff --git a/templates/show_playlist_song_row.inc.php b/templates/show_playlist_song_row.inc.php
index 22ff8ee2..eae9cc54 100644
--- a/templates/show_playlist_song_row.inc.php
+++ b/templates/show_playlist_song_row.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<td class="cel_add"><?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'playlist_add_' . $song->id); ?></td>
+<td class="cel_add"><?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add', T_('Add'),'playlist_add_' . $song->id); ?></td>
<td class="cel_track"><?php echo $playlist_track; ?></td>
<td class="cel_song"><?php echo $song->f_link; ?></td>
<td class="cel_artist"><?php echo $song->f_artist_link; ?></td>
@@ -41,11 +41,11 @@
<td class="cel_action">
<?php if (Config::get('download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&amp;song_id=<?php echo $song->id; ?>">
- <?php echo get_user_icon('download',_('Download')); ?>
+ <?php echo get_user_icon('download', T_('Download')); ?>
</a>
<?php } ?>
<?php if ($playlist->has_access()) { ?>
- <?php echo Ajax::button('?page=playlist&action=edit_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'],'edit',_('Edit'),'track_edit_' . $object['track_id']); ?>
- <?php echo Ajax::button('?page=playlist&action=delete_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'],'delete',_('Delete'),'track_del_' . $object['track_id']); ?>
+ <?php echo Ajax::button('?page=playlist&action=edit_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'],'edit', T_('Edit'),'track_edit_' . $object['track_id']); ?>
+ <?php echo Ajax::button('?page=playlist&action=delete_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'],'delete', T_('Delete'),'track_del_' . $object['track_id']); ?>
<?php } ?>
</td>
diff --git a/templates/show_playlist_songs.inc.php b/templates/show_playlist_songs.inc.php
index c3ebc3b6..a9f997d2 100644
--- a/templates/show_playlist_songs.inc.php
+++ b/templates/show_playlist_songs.inc.php
@@ -46,19 +46,19 @@ $ajax_url = Config::get('ajax_url');
</colgroup>
<tr class="th-top">
<th class="cel_add">&nbsp;</th>
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_song"><?php echo _('Song Title'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_genre"><?php echo _('Genre'); ?></th>
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_time"><?php echo _('Time'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_song"><?php echo T_('Song Title'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_genre"><?php echo T_('Genre'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_time"><?php echo T_('Time'); ?></th>
<?php if (Config::get('ratings')) {
Rating::build_cache('song', array_map(create_function('$i', 'return $i[\'object_id\'];'), $object_ids));
?>
- <th class="cel_rating"><?php echo _('Rating'); ?></th>
+ <th class="cel_rating"><?php echo T_('Rating'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($object_ids as $object) {
@@ -72,17 +72,17 @@ $ajax_url = Config::get('ajax_url');
<?php } ?>
<tr class="th-bottom">
<th class="cel_add">&nbsp;</th>
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_song"><?php echo _('Song Title'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_genre"><?php echo _('Genre'); ?></th>
- <th class="cel_track"><?php echo _('Track'); ?></th>
- <th class="cel_time"><?php echo _('Time'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_song"><?php echo T_('Song Title'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_genre"><?php echo T_('Genre'); ?></th>
+ <th class="cel_track"><?php echo T_('Track'); ?></th>
+ <th class="cel_time"><?php echo T_('Time'); ?></th>
<?php if (Config::get('ratings')) { ?>
- <th class="cel_rating"><?php echo _('Rating'); ?></th>
+ <th class="cel_rating"><?php echo T_('Rating'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_playlist_title.inc.php b/templates/show_playlist_title.inc.php
index 957f0e64..cc3cee0b 100644
--- a/templates/show_playlist_title.inc.php
+++ b/templates/show_playlist_title.inc.php
@@ -28,4 +28,4 @@
?>
-<?php echo sprintf(_('%s %s (Playlist)'), $playlist->f_type, $playlist->name); ?>
+<?php echo sprintf(T_('%s %s (Playlist)'), $playlist->f_type, $playlist->name); ?>
diff --git a/templates/show_playlists.inc.php b/templates/show_playlists.inc.php
index c3959629..46999725 100644
--- a/templates/show_playlists.inc.php
+++ b/templates/show_playlists.inc.php
@@ -38,12 +38,12 @@
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name',_('Playlist Name'),'playlist_sort_name'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name'); ?></th>
<th class="cel_type">&nbsp;</th>
- <th class="cel_songs"><?php echo _('# Songs'); ?></th>
- <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user',_('Owner'),'playlist_sort_owner'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_songs"><?php echo T_('# Songs'); ?></th>
+ <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
<?php
foreach ($object_ids as $playlist_id) {
@@ -57,16 +57,16 @@ foreach ($object_ids as $playlist_id) {
<?php } // end foreach ($playlists as $playlist) ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="6"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name',_('Playlist Name'),'playlist_sort_name_bottom'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name_bottom'); ?></th>
<th class="cel_type">&nbsp;</th>
- <th class="cel_songs"><?php echo _('# Songs'); ?></th>
- <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user',_('Owner'),'playlist_sort_owner_bottom'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_songs"><?php echo T_('# Songs'); ?></th>
+ <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner_bottom'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php' ?>
diff --git a/templates/show_playtype_switch.inc.php b/templates/show_playtype_switch.inc.php
index 095a8b17..0a085d96 100644
--- a/templates/show_playtype_switch.inc.php
+++ b/templates/show_playtype_switch.inc.php
@@ -37,13 +37,13 @@ if (Preference::has_access('play_type')) {
<form method="post" id="play_type_form" action="javascript.void(0);">
<select id="play_type_select" name="type">
<?php if (Config::get('allow_stream_playback')) { ?>
- <option value="stream" <?php echo $is_stream; ?>><?php echo _('Stream'); ?></option>
+ <option value="stream" <?php echo $is_stream; ?>><?php echo T_('Stream'); ?></option>
<?php } if (Config::get('allow_localplay_playback')) { ?>
- <option value="localplay" <?php echo $is_localplay; ?>><?php echo _('Localplay'); ?></option>
+ <option value="localplay" <?php echo $is_localplay; ?>><?php echo T_('Localplay'); ?></option>
<?php } if (Config::get('allow_democratic_playback')) { ?>
- <option value="democratic" <?php echo $is_democratic; ?>><?php echo _('Democratic'); ?></option>
+ <option value="democratic" <?php echo $is_democratic; ?>><?php echo T_('Democratic'); ?></option>
<?php } ?>
- <option value="xspf_player" <?php echo $is_xspf_player; ?>><?php echo _('Flash Player'); ?></option>
+ <option value="xspf_player" <?php echo $is_xspf_player; ?>><?php echo T_('Flash Player'); ?></option>
</select>
<?php echo Ajax::observe('play_type_select','change',Ajax::action('?page=stream&action=set_play_type','play_type_select','play_type_form'),'1'); ?>
</form>
diff --git a/templates/show_plugins.inc.php b/templates/show_plugins.inc.php
index dd434d0c..ead57dfd 100644
--- a/templates/show_plugins.inc.php
+++ b/templates/show_plugins.inc.php
@@ -37,11 +37,11 @@ $web_path = Config::get('web_path');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_description"><?php echo _('Description'); ?></th>
- <th class="cel_version"><?php echo _('Version'); ?></th>
- <th class="cel_iversion"><?php echo _('Installed Version'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_description"><?php echo T_('Description'); ?></th>
+ <th class="cel_version"><?php echo T_('Version'); ?></th>
+ <th class="cel_iversion"><?php echo T_('Installed Version'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($plugins as $plugin_name) {
@@ -49,15 +49,15 @@ foreach ($plugins as $plugin_name) {
$installed_version = Plugin::get_plugin_version($plugin->_plugin->name);
if (! $installed_version) {
$action = "<a href=\"" . $web_path . "/admin/modules.php?action=install_plugin&amp;plugin=" . scrub_out($plugin_name) . "\">" .
- _('Activate') . "</a>";
+ T_('Activate') . "</a>";
}
else {
$action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_uninstall_plugin&amp;plugin=" . scrub_out($plugin_name) . "\">" .
- _('Deactivate') . "</a>";
+ T_('Deactivate') . "</a>";
if ($installed_version < $plugin->_plugin->version) {
$action .= '&nbsp;&nbsp;<a href="' . $web_path .
'/admin/modules.php?action=upgrade_plugin&amp;plugin=' .
- scrub_out($plugin_name) . '">' . _('Upgrade') . '</a>';
+ scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>';
}
}
?>
@@ -70,14 +70,14 @@ foreach ($plugins as $plugin_name) {
</tr>
<?php } if (!count($plugins)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="4"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+ <td colspan="4"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_name"><?php echo _('Name'); ?></th>
- <th class="cel_description"><?php echo _('Description'); ?></th>
- <th class="cel_version"><?php echo _('Version'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_name"><?php echo T_('Name'); ?></th>
+ <th class="cel_description"><?php echo T_('Description'); ?></th>
+ <th class="cel_version"><?php echo T_('Version'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<br />
diff --git a/templates/show_popular.inc.php b/templates/show_popular.inc.php
index c3bfeb52..db6cd424 100644
--- a/templates/show_popular.inc.php
+++ b/templates/show_popular.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Information')); ?>
+<?php show_box_top(T_('Information')); ?>
<?php
$object_ids = Stats::get_top('song');
$browse = new Browse();
diff --git a/templates/show_preference_admin.inc.php b/templates/show_preference_admin.inc.php
index 09848b5b..502c94f9 100644
--- a/templates/show_preference_admin.inc.php
+++ b/templates/show_preference_admin.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Preference Administration')); ?>
+<?php show_box_top(T_('Preference Administration')); ?>
<form method="post" action="<?php echo conf('web_path'); ?>/admin/preferences.php" enctype="multipart/form-data">
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
@@ -35,32 +35,32 @@
<col id="col_level" />
</colgroup>
<tr class="th-top">
- <th class="cel_preference"><?php echo _('Preference'); ?></th>
- <th class="cel_level"><?php echo _('Level'); ?></th>
+ <th class="cel_preference"><?php echo T_('Preference'); ?></th>
+ <th class="cel_level"><?php echo T_('Level'); ?></th>
</tr>
<?php foreach ($preferences as $preference) {
unset($is_25,$is_5,$is_100);
?>
<tr class="<?php echo flip_class(); ?>">
- <td class="cel_preference"><?php echo scrub_out(_($preference['description'])); ?></td>
+ <td class="cel_preference"><?php echo scrub_out(T_($preference['description'])); ?></td>
<td class="cel_level">
<?php $level_name = "is_" . $preference['level']; ${$level_name} = 'selected="selected"'; ?>
<select name="prefs[<?php echo scrub_out($preference['name']); ?>]">
- <option value="5" <?php echo $is_5; ?>><?php echo _('Guest'); ?></option>
- <option value="25" <?php echo $is_25; ?>><?php echo _('User'); ?></option>
- <option value="100" <?php echo $is_100; ?>><?php echo _('Admin'); ?></option>
+ <option value="5" <?php echo $is_5; ?>><?php echo T_('Guest'); ?></option>
+ <option value="25" <?php echo $is_25; ?>><?php echo T_('User'); ?></option>
+ <option value="100" <?php echo $is_100; ?>><?php echo T_('Admin'); ?></option>
</select>
</td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_preference"><?php echo _('Preference'); ?></th>
- <th class="cel_level"><?php echo _('Level'); ?></th>
+ <th class="cel_preference"><?php echo T_('Preference'); ?></th>
+ <th class="cel_level"><?php echo T_('Level'); ?></th>
</tr>
</table>
<div class="formValidation">
<input type="hidden" name="action" value="set_preferences" />
- <input type="submit" value="<?php echo _('Update'); ?>" />
+ <input type="submit" value="<?php echo T_('Update'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_preference_box.inc.php b/templates/show_preference_box.inc.php
index cd7b753c..6a8803a6 100644
--- a/templates/show_preference_box.inc.php
+++ b/templates/show_preference_box.inc.php
@@ -33,7 +33,7 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST
$is_admin = true;
}
?>
-<h4><?php echo _($preferences['title']); ?></h4>
+<h4><?php echo T_($preferences['title']); ?></h4>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_preference" />
@@ -44,16 +44,16 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST
<?php } ?>
</colgroup>
<tr class="th-top">
- <th class="cel_preference"><?php echo _('Preference'); ?></th>
- <th class="cel_value"><?php echo _('Value'); ?></th>
+ <th class="cel_preference"><?php echo T_('Preference'); ?></th>
+ <th class="cel_value"><?php echo T_('Value'); ?></th>
<?php if ($is_admin) { ?>
- <th class="cel_applytoall"><?php echo _('Apply to All'); ?></th>
- <th class="cel_level"><?php echo _('Access Level'); ?></th>
+ <th class="cel_applytoall"><?php echo T_('Apply to All'); ?></th>
+ <th class="cel_level"><?php echo T_('Access Level'); ?></th>
<?php } ?>
</tr>
<?php foreach ($preferences['prefs'] as $pref) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td class="cel_preference"><?php echo _($pref['description']); ?></td>
+ <td class="cel_preference"><?php echo T_($pref['description']); ?></td>
<td class="cel_value">
<?php create_preference_input($pref['name'], $pref['value']); ?>
</td>
@@ -62,11 +62,11 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST
<td class="cel_level">
<?php $name = 'on_' . $pref['level']; ${$name} = 'selected="selected"'; ?>
<select name="level_<?php echo $pref['name']; ?>">
- <option value="5" <?php echo $on_5; ?>><?php echo _('Guest'); ?></option>
- <option value="25" <?php echo $on_25; ?>><?php echo _('User'); ?></option>
- <option value="50" <?php echo $on_50; ?>><?php echo _('Content Manager'); ?></option>
- <option value="75" <?php echo $on_75; ?>><?php echo _('Catalog Manager'); ?></option>
- <option value="100" <?php echo $on_100; ?>><?php echo _('Admin'); ?></option>
+ <option value="5" <?php echo $on_5; ?>><?php echo T_('Guest'); ?></option>
+ <option value="25" <?php echo $on_25; ?>><?php echo T_('User'); ?></option>
+ <option value="50" <?php echo $on_50; ?>><?php echo T_('Content Manager'); ?></option>
+ <option value="75" <?php echo $on_75; ?>><?php echo T_('Catalog Manager'); ?></option>
+ <option value="100" <?php echo $on_100; ?>><?php echo T_('Admin'); ?></option>
</select>
<?php unset(${$name}); ?>
</td>
@@ -74,11 +74,11 @@ if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST
</tr>
<?php } // End foreach ($preferences['prefs'] as $pref) ?>
<tr class="th-bottom">
- <th class="cel_preference"><?php echo _('Preference'); ?></th>
- <th class="cel_value"><?php echo _('Value'); ?></th>
+ <th class="cel_preference"><?php echo T_('Preference'); ?></th>
+ <th class="cel_value"><?php echo T_('Value'); ?></th>
<?php if ($is_admin) { ?>
- <th class="cel_applytoall"><?php echo _('Apply to All'); ?></th>
- <th class="cel_level"><?php echo _('Access Level'); ?></th>
+ <th class="cel_applytoall"><?php echo T_('Apply to All'); ?></th>
+ <th class="cel_level"><?php echo T_('Access Level'); ?></th>
<?php } ?>
</tr>
</table>
diff --git a/templates/show_preferences.inc.php b/templates/show_preferences.inc.php
index 9aa98244..5ad845f5 100644
--- a/templates/show_preferences.inc.php
+++ b/templates/show_preferences.inc.php
@@ -32,13 +32,13 @@
*/
?>
-<?php /* HINT: Username */ show_box_top(sprintf(_('Editing %s preferences'), $fullname),'box box_preferences'); ?>
+<?php /* HINT: Username */ show_box_top(sprintf(T_('Editing %s preferences'), $fullname),'box box_preferences'); ?>
<?php if ($_REQUEST['tab'] != 'account' && $_REQUEST['tab'] != 'modules') { ?>
<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_preferences" enctype="multipart/form-data">
<?php show_preference_box($preferences[$_REQUEST['tab']]); ?>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Update Preferences'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Update Preferences'); ?>" />
<?php echo Core::form_register('update_preference'); ?>
<input type="hidden" name="tab" value="<?php echo scrub_out($_REQUEST['tab']); ?>" />
<input type="hidden" name="method" value="<?php echo scrub_out($_REQUEST['action']); ?>" />
diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php
index c2ab692e..dcd0bd76 100644
--- a/templates/show_random.inc.php
+++ b/templates/show_random.inc.php
@@ -27,19 +27,19 @@
*/
?>
-<?php show_box_top(_('Play Random Selection'), 'box box_random'); ?>
+<?php show_box_top(T_('Play Random Selection'), 'box box_random'); ?>
<form id="random" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/random.php?action=get_advanced&type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>">
<table class="tabledata" cellpadding="3" cellspacing="0">
<tr id="search_location">
- <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=song"><?php echo _('Songs'); ?></a><?php } else { echo _('Songs'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=album"><?php echo _('Albums'); ?></a><?php } else { echo _('Albums'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=artist"><?php echo _('Artists'); ?></a><?php } else { echo _('Artists'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=song"><?php echo T_('Songs'); ?></a><?php } else { echo T_('Songs'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=album"><?php echo T_('Albums'); ?></a><?php } else { echo T_('Albums'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/random.php?action=advanced&type=artist"><?php echo T_('Artists'); ?></a><?php } else { echo T_('Artists'); } ?></td>
</tr>
<tr id="search_blank_line"><td>&nbsp;</td></tr>
</table>
<table class="tabledata" cellpadding="0" cellspacing="0">
<tr id="search_item_count">
- <td><?php echo _('Item count'); ?></td>
+ <td><?php echo T_('Item count'); ?></td>
<td>
<?php $name = 'random_';
if ($_POST['random'] == -1) {
@@ -59,16 +59,16 @@
<option value="100"<?php echo $random_100; ?>>100</option>
<option value="500"<?php echo $random_500; ?>>500</option>
<option value="1000"<?php echo $random_1000; ?>>1000</option>
- <option value="-1" <?php echo $random_all; ?> ><?php echo _('All'); ?></option>
+ <option value="-1" <?php echo $random_all; ?> ><?php echo T_('All'); ?></option>
</select>
</td>
</tr>
<tr id="search_length">
- <td><?php echo _('Length'); ?></td>
+ <td><?php echo T_('Length'); ?></td>
<td>
<?php $name = 'length_' . intval($_POST['length']); ${$name} = ' selected="selected"'; ?>
<select name="length">
- <option value="0"<?php echo $length_0; ?>><?php echo _('Unlimited'); ?></option>
+ <option value="0"<?php echo $length_0; ?>><?php echo T_('Unlimited'); ?></option>
<option value="15"<?php echo $length_15; ?>><?php printf(ngettext('%d minute','%d minutes',15), "15"); ?></option>
<option value="30"<?php echo $length_30; ?>><?php printf(ngettext('%d minute','%d minutes',30), "30"); ?></option>
<option value="60"<?php echo $length_60; ?>><?php printf(ngettext('%d hour','%d hours',1), "1"); ?></option>
@@ -80,11 +80,11 @@
</td>
</tr>
<tr id="search_size_limit">
- <td><?php echo _('Size Limit'); ?></td>
+ <td><?php echo T_('Size Limit'); ?></td>
<td>
<?php $name = 'size_' . intval($_POST['size_limit']); ${$name} = ' selected="selected"'; ?>
<select name="size_limit">
- <option value="0"<?php echo $size_0; ?>><?php echo _('Unlimited'); ?></option>
+ <option value="0"<?php echo $size_0; ?>><?php echo T_('Unlimited'); ?></option>
<option value="64"<?php echo $size_64; ?>>64MB</option>
<option value="128"<?php echo $size_128; ?>>128MB</option>
<option value="256"<?php echo $size_256; ?>>256MB</option>
@@ -98,7 +98,7 @@
<?php require Config::get('prefix') . '/templates/show_rules.inc.php'; ?>
<div class="formValidation">
- <input type="submit" value="<?php echo _('Enqueue'); ?>" />
+ <input type="submit" value="<?php echo T_('Enqueue'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php
index be669f75..e5abaa23 100644
--- a/templates/show_random_albums.inc.php
+++ b/templates/show_random_albums.inc.php
@@ -27,9 +27,9 @@
*/
$web_path = Config::get('web_path');
-$button = Ajax::button('?page=index&action=random_albums','random',_('Refresh'),'random_refresh');
+$button = Ajax::button('?page=index&action=random_albums','random', T_('Refresh'),'random_refresh');
?>
-<?php show_box_top(_('Albums of the Moment') . ' ' . $button, 'box box_random_albums'); ?>
+<?php show_box_top(T_('Albums of the Moment') . ' ' . $button, 'box box_random_albums'); ?>
<?php
if ($albums) {
@@ -53,7 +53,7 @@ $button = Ajax::button('?page=index&action=random_albums','random',_('Refresh'),
echo "</div>";
}
?>
- <span class="play_album"><?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Play Album'),'play_full_' . $album->id); ?></span>
+ <span class="play_album"><?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add', T_('Play Album'),'play_full_' . $album->id); ?></span>
</div>
<?php } // end foreach ?>
diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php
index f91f71de..542dd2b2 100644
--- a/templates/show_recently_played.inc.php
+++ b/templates/show_recently_played.inc.php
@@ -27,7 +27,7 @@
*/
$link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('recently_played') : '';
-show_box_top(_('Recently Played') . $link, 'box box_recently_played');
+show_box_top(T_('Recently Played') . $link, 'box box_recently_played');
?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
@@ -39,12 +39,12 @@ show_box_top(_('Recently Played') . $link, 'box box_recently_played');
<col id="col_lastplayed" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_song"><?php echo _('Song'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_username"><?php echo _('Username'); ?></th>
- <th class="cel_lastplayed"><?php echo _('Last Played'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_song"><?php echo T_('Song'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_username"><?php echo T_('Username'); ?></th>
+ <th class="cel_lastplayed"><?php echo T_('Last Played'); ?></th>
</tr>
<?php foreach ($data as $row) {
$row_user = new User($row['user']);
@@ -84,13 +84,13 @@ show_box_top(_('Recently Played') . $link, 'box box_recently_played');
}
// I wonder how smart gettext is?
- $time_string = sprintf(ngettext('%d ' . rtrim($unit, 's') . ' ago', '%d ' . $unit . ' ago', $interval), $interval);
+ $time_string = sprintf(T_ngettext('%d ' . rtrim($unit, 's') . ' ago', '%d ' . $unit . ' ago', $interval), $interval);
$song->format();
?>
<tr class="<?php echo flip_class(); ?>">
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_' . $song->id); ?>
+ <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add', T_('Add'),'add_' . $song->id); ?>
</td>
<td class="cel_song"><?php echo $song->f_link; ?></td>
<td class="cel_album"><?php echo $song->f_album_link; ?></td>
@@ -105,16 +105,16 @@ show_box_top(_('Recently Played') . $link, 'box box_recently_played');
<?php } ?>
<?php if (!count($data)) { ?>
<tr>
- <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="6"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_username"><?php echo _('Username'); ?></th>
- <th class="cel_song"><?php echo _('Song'); ?></th>
- <th class="cel_album"><?php echo _('Album'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_lastplayed"><?php echo _('Last Played'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_username"><?php echo T_('Username'); ?></th>
+ <th class="cel_song"><?php echo T_('Song'); ?></th>
+ <th class="cel_album"><?php echo T_('Album'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_lastplayed"><?php echo T_('Last Played'); ?></th>
</tr>
</table>
<?php show_box_bottom(); ?>
diff --git a/templates/show_recommended_artists.inc.php b/templates/show_recommended_artists.inc.php
index 6a168048..4652a0eb 100644
--- a/templates/show_recommended_artists.inc.php
+++ b/templates/show_recommended_artists.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Similar Artists'), 'info-box'); ?>
+<?php show_box_top(T_('Similar Artists'), 'info-box'); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_add" />
@@ -39,14 +39,14 @@
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_songs"><?php echo _('Songs'); ?></th>
- <th class="cel_albums"><?php echo _('Albums'); ?></th>
- <th class="cel_time"><?php echo _('Time'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_rating"> <?php echo _('Rating'); ?> </th>
- <th class="cel_action"> <?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_songs"><?php echo T_('Songs'); ?></th>
+ <th class="cel_albums"><?php echo T_('Albums'); ?></th>
+ <th class="cel_time"><?php echo T_('Time'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_rating"> <?php echo T_('Rating'); ?> </th>
+ <th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
<?php
// Cache the ratings we are going to use
@@ -63,17 +63,17 @@ foreach ($object_ids as $artist_id) {
<?php } //end foreach ($artists as $artist) ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="5"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="5"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_artist"><?php echo _('Artist'); ?></th>
- <th class="cel_songs"> <?php echo _('Songs'); ?> </th>
- <th class="cel_albums"> <?php echo _('Albums'); ?> </th>
- <th class="cel_time"> <?php echo _('Time'); ?> </th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_rating"> <?php echo _('Rating'); ?> </th>
- <th class="cel_action"> <?php echo _('Action'); ?> </th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_artist"><?php echo T_('Artist'); ?></th>
+ <th class="cel_songs"> <?php echo T_('Songs'); ?> </th>
+ <th class="cel_albums"> <?php echo T_('Albums'); ?> </th>
+ <th class="cel_time"> <?php echo T_('Time'); ?> </th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_rating"> <?php echo T_('Rating'); ?> </th>
+ <th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
</table>
diff --git a/templates/show_registration_confirmation.inc.php b/templates/show_registration_confirmation.inc.php
index 9aad6786..d7b62222 100644
--- a/templates/show_registration_confirmation.inc.php
+++ b/templates/show_registration_confirmation.inc.php
@@ -33,22 +33,22 @@ $web_path = Config::get('web_path');
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" />
-<title><?php echo Config::get('site_title'); ?> - <?php echo _('Registration'); ?></title>
+<title><?php echo Config::get('site_title'); ?> - <?php echo T_('Registration'); ?></title>
<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?>/templates/install.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" />
</head>
<body>
<div id="header">
<h1><?php echo scrub_out(Config::get('site_title')); ?></h1>
-<?php echo _('Registration Complete'); ?>...
+<?php echo T_('Registration Complete'); ?>...
</div>
<script src="<?php echo $web_path; ?>/modules/prototype/prototype.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js" language="javascript" type="text/javascript"></script>
<div id="maincontainer">
-<?php echo _('Your account has been created. An activation key has been sent to the e-mail address you provided. Please check your e-mail for further information'); ?>
+<?php echo T_('Your account has been created. An activation key has been sent to the e-mail address you provided. Please check your e-mail for further information'); ?>
<br /><br />
-<a href="<?php echo Config::get('web_path'); ?>/login.php"><?php echo _('Return to Login Page'); ?></a>
+<a href="<?php echo Config::get('web_path'); ?>/login.php"><?php echo T_('Return to Login Page'); ?></a>
</div><!--end <div>id="maincontainer-->
<div id="bottom">
<p><strong>Ampache</strong><br />
diff --git a/templates/show_rename_artist.inc.php b/templates/show_rename_artist.inc.php
index 604ffcc8..8eebe5ce 100644
--- a/templates/show_rename_artist.inc.php
+++ b/templates/show_rename_artist.inc.php
@@ -33,15 +33,15 @@ function insert()
document.getElementById('artist_name').value = '<?php echo $artist->name; ?>';
}
</script>
-<?php /* HINT: Artist Name */ show_box_top(sprintf(_('Rename %s'), $artist->name)); ?>
+<?php /* HINT: Artist Name */ show_box_top(sprintf(T_('Rename %s'), $artist->name)); ?>
<form name="rename_artist" method="post" action="<?php echo conf('web_path'); ?>/artists.php?action=rename&amp;artist=<?php echo $artist->id; ?>" style="Display:inline;">
<?php show_artist_pulldown($artist->id, "artist_id", 4); ?>
<br />
- <?php echo _('OR'); ?><br />
+ <?php echo T_('OR'); ?><br />
<input type="text" name="artist_name" size="30" value="<?php echo scrub_out($_REQUEST['artist_name']); ?>" id="artist_name" />
- <a href="javascript:insert()">[<?php echo _('Insert current'); ?>]</a><br />
+ <a href="javascript:insert()">[<?php echo T_('Insert current'); ?>]</a><br />
<?php $GLOBALS['error']->print_error('artist_name'); ?>
- <input type="checkbox" name="update_id3" value="yes" />&nbsp; <?php echo _('Update id3 tags') ?><br />
- <input type="submit" value="<?php echo _('Rename'); ?>" /><br />
+ <input type="checkbox" name="update_id3" value="yes" />&nbsp; <?php echo T_('Update id3 tags') ?><br />
+ <input type="submit" value="<?php echo T_('Rename'); ?>" /><br />
</form>
<?php show_box_bottom(); ?>
diff --git a/templates/show_rules.inc.php b/templates/show_rules.inc.php
index e588f23a..ed076f0e 100644
--- a/templates/show_rules.inc.php
+++ b/templates/show_rules.inc.php
@@ -32,15 +32,15 @@ $logic_operator = strtolower($logic_operator);
<script type="text/javascript" src="<?php echo Config::get('web_path'); ?>/lib/javascript/search.js"></script>
<script type="text/javascript" src="<?php echo Config::get('web_path'); ?>/lib/javascript/search-data.php?type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>"></script>
-<?php show_box_top(_('Rules') . "...", 'box box_rules'); ?>
+<?php show_box_top(T_('Rules') . "...", 'box box_rules'); ?>
<table class="tabledata" cellpadding="3" cellspacing="0">
<tbody id="searchtable">
<tr id="rules_operator">
- <td><?php echo _('Match'); ?></td>
+ <td><?php echo T_('Match'); ?></td>
<td>
<select name="operator">
- <option value="and" <?php if($logic_operator == 'and') echo 'selected="selected"'?>><?php echo _('all rules'); ?></option>
- <option value="or" <?php if($logic_operator == 'or') echo 'selected="selected"'?>><?php echo _('any rule'); ?></option>
+ <option value="and" <?php if($logic_operator == 'and') echo 'selected="selected"'?>><?php echo T_('all rules'); ?></option>
+ <option value="or" <?php if($logic_operator == 'or') echo 'selected="selected"'?>><?php echo T_('any rule'); ?></option>
</select>
</td>
</tr>
@@ -48,7 +48,7 @@ $logic_operator = strtolower($logic_operator);
<td>
<a id="addrowbutton" href="javascript:void(0)">
<?php echo get_user_icon('add'); ?>
- <?php echo _('Add Another Rule'); ?>
+ <?php echo T_('Add Another Rule'); ?>
</a>
<script type="text/javascript">Event.observe('addrowbutton', 'click', SearchRow.add);</script>
</td>
diff --git a/templates/show_run_add_catalog.inc.php b/templates/show_run_add_catalog.inc.php
index be9f5b6f..d25ec832 100644
--- a/templates/show_run_add_catalog.inc.php
+++ b/templates/show_run_add_catalog.inc.php
@@ -28,5 +28,5 @@
// Get the count of the number of items in their playlist
?>
-<?php echo _('Found'); ?>:<?php echo $catalog_add_found; ?><br />
-<?php echo _('Reading'); ?>:<?php echo $catalog_add_directory; ?><br />
+<?php echo T_('Found'); ?>:<?php echo $catalog_add_found; ?><br />
+<?php echo T_('Reading'); ?>:<?php echo $catalog_add_directory; ?><br />
diff --git a/templates/show_search.inc.php b/templates/show_search.inc.php
index e55ba308..0d5484db 100644
--- a/templates/show_search.inc.php
+++ b/templates/show_search.inc.php
@@ -31,23 +31,23 @@
* This is the template for the searches... amazing!
*/
?>
-<?php show_box_top(_('Search Ampache') . "...", 'box box_advanced_search'); ?>
+<?php show_box_top(T_('Search Ampache') . "...", 'box box_advanced_search'); ?>
<form id="search" name="search" method="post" action="<?php echo Config::get('web_path'); ?>/search.php?type=<?php echo $_REQUEST['type'] ? scrub_out($_REQUEST['type']) : 'song'; ?>" enctype="multipart/form-data" style="Display:inline">
<table class="tabledata" cellpadding="3" cellspacing="0">
<tr id="search_location">
- <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=song"><?php echo _('Songs'); ?></a><?php } else { echo _('Songs'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=album"><?php echo _('Albums'); ?></a><?php } else { echo _('Albums'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=artist"><?php echo _('Artists'); ?></a><?php } else { echo _('Artists'); } ?></td>
- <td><?php if ($_REQUEST['type'] != 'video') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=video"><?php echo _('Videos'); ?></a><?php } else { echo _('Videos'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'song') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=song"><?php echo T_('Songs'); ?></a><?php } else { echo T_('Songs'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'album') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=album"><?php echo T_('Albums'); ?></a><?php } else { echo T_('Albums'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'artist') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=artist"><?php echo T_('Artists'); ?></a><?php } else { echo T_('Artists'); } ?></td>
+ <td><?php if ($_REQUEST['type'] != 'video') { ?><a href="<?php echo Config::get('web_path'); ?>/search.php?type=video"><?php echo T_('Videos'); ?></a><?php } else { echo T_('Videos'); } ?></td>
</tr>
<tr id="search_blank_line"><td>&nbsp;</td></tr>
</table>
<table class="tabledata" cellpadding="3" cellspacing="0">
<tr id="search_max_results">
- <td><?php echo _('Maximum Results'); ?></td>
+ <td><?php echo T_('Maximum Results'); ?></td>
<td>
<select name="limit">
- <option value="0"><?php echo _('Unlimited'); ?></option>
+ <option value="0"><?php echo T_('Unlimited'); ?></option>
<option value="25" <?php if($_REQUEST['limit']=="25") echo "selected=\"selected\""?>>25</option>
<option value="50" <?php if($_REQUEST['limit']=="50") echo "selected=\"selected\""?>>50</option>
<option value="100" <?php if($_REQUEST['limit']=="100") echo "selected=\"selected\""?>>100</option>
@@ -60,9 +60,9 @@
<?php require Config::get('prefix') . '/templates/show_rules.inc.php'; ?>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Search'); ?>" />&nbsp;&nbsp;
+ <input class="button" type="submit" value="<?php echo T_('Search'); ?>" />&nbsp;&nbsp;
<?php if ($_REQUEST['type'] == 'song' || ! $_REQUEST['type']) { ?>
- <input id="savesearchbutton" class="button" type="submit" value="<?php echo _('Save as Smart Playlist'); ?>" onClick="$('hiddenaction').setValue('save_as_smartplaylist');" />&nbsp;&nbsp;
+ <input id="savesearchbutton" class="button" type="submit" value="<?php echo T_('Save as Smart Playlist'); ?>" onClick="$('hiddenaction').setValue('save_as_smartplaylist');" />&nbsp;&nbsp;
<?php } ?>
<input type="hidden" id="hiddenaction" name="action" value="search" />
</div>
diff --git a/templates/show_search_bar.inc.php b/templates/show_search_bar.inc.php
index 558868bd..fa9dee8e 100644
--- a/templates/show_search_bar.inc.php
+++ b/templates/show_search_bar.inc.php
@@ -34,14 +34,14 @@
<input type="hidden" name="rule_1_operator" value="0" />
<input type="hidden" name="object_type" value="song" />
<select name="rule_1">
- <option value="anywhere"><?php echo _('Anywhere')?></option>
- <option value="title"><?php echo _('Title')?></option>
- <option value="album"><?php echo _('Album')?></option>
- <option value="artist"><?php echo _('Artist')?></option>
- <option value="tag"><?php echo _('Tag')?></option>
+ <option value="anywhere"><?php echo T_('Anywhere')?></option>
+ <option value="title"><?php echo T_('Title')?></option>
+ <option value="album"><?php echo T_('Album')?></option>
+ <option value="artist"><?php echo T_('Artist')?></option>
+ <option value="tag"><?php echo T_('Tag')?></option>
</select>
- <input class="button" type="submit" value="<?php echo _('Search'); ?>" id="searchBtn" />
- <a href="<?php echo $web_path; ?>/search.php?type=song" class="button" id="advSearchBtn"><?php echo _('Advanced Search'); ?></a>
+ <input class="button" type="submit" value="<?php echo T_('Search'); ?>" id="searchBtn" />
+ <a href="<?php echo $web_path; ?>/search.php?type=song" class="button" id="advSearchBtn"><?php echo T_('Advanced Search'); ?></a>
</form>
</div>
diff --git a/templates/show_search_options.inc.php b/templates/show_search_options.inc.php
index c4e49de6..a9434071 100644
--- a/templates/show_search_options.inc.php
+++ b/templates/show_search_options.inc.php
@@ -26,17 +26,17 @@
* @link http://www.ampache.org/
*/
?>
-<?php show_box_top(_('Options'),'info-box'); ?>
+<?php show_box_top(T_('Options'),'info-box'); ?>
<div id="information_actions">
<ul>
<li>
- <?php echo Ajax::button('?action=basket&type=browse_set&browse_id=' . $browse->id,'add',_('Add Search Results'),'add_search_results'); ?>
- <?php echo _('Add Search Results'); ?>
+ <?php echo Ajax::button('?action=basket&type=browse_set&browse_id=' . $browse->id,'add', T_('Add Search Results'),'add_search_results'); ?>
+ <?php echo T_('Add Search Results'); ?>
</li>
<?php if (Access::check_function('batch_download')) { ?>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=browse&amp;type=<?php echo scrub_out($_REQUEST['type']); ?>&amp;browse_id=<?php echo $browse->id; ?>"><?php echo get_user_icon('batch_download', _('Batch Download')); ?></a>
- <?php echo _('Batch Download'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=browse&amp;type=<?php echo scrub_out($_REQUEST['type']); ?>&amp;browse_id=<?php echo $browse->id; ?>"><?php echo get_user_icon('batch_download', T_('Batch Download')); ?></a>
+ <?php echo T_('Batch Download'); ?>
</li>
<?php } ?>
</ul>
diff --git a/templates/show_shout_row.inc.php b/templates/show_shout_row.inc.php
index 154171dd..221f3e89 100644
--- a/templates/show_shout_row.inc.php
+++ b/templates/show_shout_row.inc.php
@@ -36,11 +36,11 @@
<td class="cel_action">
<a href="<?php echo $web_path; ?>/admin/shout.php?action=show_edit&amp;shout_id=<?php echo $shout->id; ?>">
- <?php echo get_user_icon('edit', _('Edit')); ?>
+ <?php echo get_user_icon('edit', T_('Edit')); ?>
</a>
<a href="<?php echo $web_path; ?>/admin/shout.php?action=delete&amp;shout_id=<?php echo $shout->id; ?>">
- <?php echo get_user_icon('delete', _('Delete')); ?>
+ <?php echo get_user_icon('delete', T_('Delete')); ?>
</a>
</td>
</tr>
diff --git a/templates/show_shoutbox.inc.php b/templates/show_shoutbox.inc.php
index 5455539b..d2fc403e 100644
--- a/templates/show_shoutbox.inc.php
+++ b/templates/show_shoutbox.inc.php
@@ -27,7 +27,7 @@
*/
?>
-<?php show_box_top(_('Shoutbox')); ?>
+<?php show_box_top(T_('Shoutbox')); ?>
<div id="shoutbox">
<?php
foreach ($shouts as $shout_id) {
@@ -39,7 +39,7 @@
?>
<div class="shout <?php echo flip_class(); ?>">
<?php echo $shout->get_image(); ?>
- <?php echo Ajax::button('?action=basket&type=' . $shout->object_type .'&id=' . $shout->object_id,'add',_('Add'),'add_' . $shout->object_type . '_' . $shout->object_id); ?>
+ <?php echo Ajax::button('?action=basket&type=' . $shout->object_type .'&id=' . $shout->object_id,'add', T_('Add'),'add_' . $shout->object_type . '_' . $shout->object_id); ?>
<?php echo $object->f_link; ?>
<span class="information"><?php echo $client->f_link; ?> <?php echo date("d/m H:i",$shout->date); ?></span>
<span class="shouttext"><?php echo scrub_out($shout->text); ?></span>
diff --git a/templates/show_smartplaylist.inc.php b/templates/show_smartplaylist.inc.php
index adde43fa..917c0a35 100644
--- a/templates/show_smartplaylist.inc.php
+++ b/templates/show_smartplaylist.inc.php
@@ -31,24 +31,24 @@ show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title .
<ul>
<?php if (Access::check_function('batch_download')) { ?>
<li>
- <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=search&amp;id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('batch_download', _('Batch Download')); ?></a>
- <?php echo _('Batch Download'); ?>
+ <a href="<?php echo Config::get('web_path'); ?>/batch.php?action=search&amp;id=<?php echo $playlist->id; ?>"><?php echo get_user_icon('batch_download', T_('Batch Download')); ?></a>
+ <?php echo T_('Batch Download'); ?>
</li>
<?php } ?>
<li>
- <?php echo Ajax::button('?action=basket&type=smartplaylist&id=' . $playlist->id,'add',_('Add All'),'play_playlist'); ?>
- <?php echo _('Add All'); ?>
+ <?php echo Ajax::button('?action=basket&type=smartplaylist&id=' . $playlist->id,'add', T_('Add All'),'play_playlist'); ?>
+ <?php echo T_('Add All'); ?>
</li>
<?php if ($playlist->has_access()) { ?>
<li>
- <?php echo Ajax::button('?action=show_edit_object&type=smartplaylist_title&id=' . $playlist->id,'edit',_('Edit'),'edit_playlist_' . $playlist->id); ?>
- <?php echo _('Edit'); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=smartplaylist_title&id=' . $playlist->id,'edit', T_('Edit'),'edit_playlist_' . $playlist->id); ?>
+ <?php echo T_('Edit'); ?>
</li>
<li>
<a href="<?php echo Config::get('web_path'); ?>/smartplaylist.php?action=delete_playlist&playlist_id=<?php echo $playlist->id; ?>">
<?php echo get_user_icon('delete'); ?>
</a>
- <?php echo _('Delete'); ?>
+ <?php echo T_('Delete'); ?>
</li>
<?php } ?>
</ul>
@@ -59,7 +59,7 @@ show_box_top('<div id="playlist_row_' . $playlist->id . '">' . $title .
<?php require Config::get('prefix') . '/templates/show_rules.inc.php'; ?>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Save Changes'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Save Changes'); ?>" />
</div>
</form>
diff --git a/templates/show_smartplaylist_row.inc.php b/templates/show_smartplaylist_row.inc.php
index bf1f43f0..201df5cb 100644
--- a/templates/show_smartplaylist_row.inc.php
+++ b/templates/show_smartplaylist_row.inc.php
@@ -21,7 +21,7 @@
*/
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=smartplaylist&id=' . $playlist->id,'add',_('Add'),'add_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=basket&type=smartplaylist&id=' . $playlist->id,'add', T_('Add'),'add_playlist_' . $playlist->id); ?>
</td>
<td class="cel_playlist"><?php echo $playlist->f_link; ?></td>
<td class="cel_type"><?php echo $playlist->f_type; ?></td>
@@ -29,11 +29,11 @@
<td class="cel_action">
<?php if (Access::check_function('batch_download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/batch.php?action=smartplaylist&amp;id=<?php echo $playlist->id; ?>">
- <?php echo get_user_icon('batch_download',_('Batch Download')); ?>
+ <?php echo get_user_icon('batch_download', T_('Batch Download')); ?>
</a>
<?php } ?>
<?php if ($playlist->has_access()) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=smartplaylist_row&id=' . $playlist->id,'edit',_('Edit'),'edit_playlist_' . $playlist->id); ?>
- <?php echo Ajax::button('?page=browse&action=delete_object&type=smartplaylist&id=' . $playlist->id,'delete',_('Delete'),'delete_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=smartplaylist_row&id=' . $playlist->id,'edit', T_('Edit'),'edit_playlist_' . $playlist->id); ?>
+ <?php echo Ajax::button('?page=browse&action=delete_object&type=smartplaylist&id=' . $playlist->id,'delete', T_('Delete'),'delete_playlist_' . $playlist->id); ?>
<?php } ?>
</td>
diff --git a/templates/show_smartplaylist_title.inc.php b/templates/show_smartplaylist_title.inc.php
index 8691ac98..1d81ca80 100644
--- a/templates/show_smartplaylist_title.inc.php
+++ b/templates/show_smartplaylist_title.inc.php
@@ -21,4 +21,4 @@
*/
?>
-<?php echo sprintf(_('%s %s (Smart Playlist)'), $playlist->f_type, $playlist->name); ?>
+<?php echo sprintf(T_('%s %s (Smart Playlist)'), $playlist->f_type, $playlist->name); ?>
diff --git a/templates/show_smartplaylists.inc.php b/templates/show_smartplaylists.inc.php
index 2c891884..b371d882 100644
--- a/templates/show_smartplaylists.inc.php
+++ b/templates/show_smartplaylists.inc.php
@@ -32,11 +32,11 @@
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=smartplaylist&sort=name',_('Playlist Name'),'playlist_sort_name'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=smartplaylist&sort=name', T_('Playlist Name'),'playlist_sort_name'); ?></th>
<th class="cel_type">&nbsp;</th>
- <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=smartplaylist&sort=user',_('Owner'),'playlist_sort_owner'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=smartplaylist&sort=user', T_('Owner'),'playlist_sort_owner'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
<?php
foreach ($object_ids as $playlist_id) {
@@ -49,15 +49,15 @@ foreach ($object_ids as $playlist_id) {
<?php } // end foreach ($playlists as $playlist) ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="6"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name',_('Playlist Name'),'playlist_sort_name_bottom'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name_bottom'); ?></th>
<th class="cel_type">&nbsp;</th>
- <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user',_('Owner'),'playlist_sort_owner_bottom'); ?></th>
- <th class="cel_action"><?php echo _('Actions'); ?></th>
+ <th class="cel_owner"><?php echo Ajax::text('?page=browse&action=set_sort&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner_bottom'); ?></th>
+ <th class="cel_action"><?php echo T_('Actions'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php' ?>
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&amp;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&amp;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>";
}
}
?>
diff --git a/templates/show_song_row.inc.php b/templates/show_song_row.inc.php
index 626f5967..5913e64a 100644
--- a/templates/show_song_row.inc.php
+++ b/templates/show_song_row.inc.php
@@ -28,7 +28,7 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_' . $song->id); ?>
+ <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add', T_('Add'),'add_' . $song->id); ?>
</td>
<td class="cel_song"><a href="<?php echo Song::play_url($song->id); ?>" title="<?php echo scrub_out($song->title); ?>"><?php echo $song->f_title; ?></a></td>
<td class="cel_artist"><?php echo $song->f_artist_link; ?></td>
@@ -40,23 +40,23 @@
<td class="cel_rating" id="rating_<?php echo $song->id; ?>_song"><?php Rating::show($song->id,'song'); ?></td>
<?php } ?>
<td class="cel_action">
- <a href="<?php echo $song->link; ?>"><?php echo get_user_icon('preferences',_('Song Information')); ?></a>
+ <a href="<?php echo $song->link; ?>"><?php echo get_user_icon('preferences', T_('Song Information')); ?></a>
<?php if (Config::get('shoutbox')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/shout.php?action=show_add_shout&amp;type=song&amp;id=<?php echo $song->id; ?>">
- <?php echo get_user_icon('comment',_('Post Shout')); ?>
+ <?php echo get_user_icon('comment', T_('Post Shout')); ?>
</a>
<?php } ?>
<?php if (Access::check_function('download')) { ?>
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&amp;song_id=<?php echo $song->id; ?>">
- <?php echo get_user_icon('download',_('Download')); ?>
+ <?php echo get_user_icon('download', T_('Download')); ?>
</a>
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
- <?php echo Ajax::button('?action=show_edit_object&type=song_row&id=' . $song->id,'edit',_('Edit'),'edit_song_' . $song->id); ?>
+ <?php echo Ajax::button('?action=show_edit_object&type=song_row&id=' . $song->id,'edit', T_('Edit'),'edit_song_' . $song->id); ?>
<?php $icon = $song->enabled ? 'disable' : 'enable'; ?>
<?php $button_flip_state_id = 'button_flip_state_' . $song_id; ?>
<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 } ?>
</td>
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index 4befb999..98331fc6 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -43,19 +43,19 @@ $ajax_url = Config::get('ajax_url');
<col id="col_action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=title', _('Song Title'), 'sort_song_title'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist', _('Artist'), 'sort_song_artist'); ?></th>
- <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=album', _('Album'), 'sort_song_album'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=track', _('Track'), 'sort_song_track'); ?></th>
- <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=time', _('Time'), 'sort_song_time'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=title', T_('Song Title'), 'sort_song_title'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=artist', T_('Artist'), 'sort_song_artist'); ?></th>
+ <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=album', T_('Album'), 'sort_song_album'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=track', T_('Track'), 'sort_song_track'); ?></th>
+ <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&sort=time', T_('Time'), 'sort_song_time'); ?></th>
<?php if (Config::get('ratings')) {
Rating::build_cache('song', $object_ids);
?>
- <th class="cel_rating"><?php echo _('Rating'); ?></th>
+ <th class="cel_rating"><?php echo T_('Rating'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
foreach ($object_ids as $song_id) {
@@ -68,21 +68,21 @@ $ajax_url = Config::get('ajax_url');
<?php } ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="9"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="9"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=title',_('Song Title'),'sort_song_title_bottom'); ?></th>
- <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=artist',_('Artist'),'sort_song_artist_bottom'); ?></th>
- <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=album',_('Album'),'sort_song_album_bottom'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=track',_('Track'),'sort_song_track_bottom'); ?></th>
- <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=time',_('Time'),'sort_song_time_bottom'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=title', T_('Song Title'),'sort_song_title_bottom'); ?></th>
+ <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=artist', T_('Artist'),'sort_song_artist_bottom'); ?></th>
+ <th class="cel_album"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=album', T_('Album'),'sort_song_album_bottom'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=track', T_('Track'),'sort_song_track_bottom'); ?></th>
+ <th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&type=song&sort=time', T_('Time'),'sort_song_time_bottom'); ?></th>
<?php if (Config::get('ratings')) { ?>
- <th class="cel_rating"><?php echo _('Rating'); ?></th>
+ <th class="cel_rating"><?php echo T_('Rating'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/show_stats.inc.php b/templates/show_stats.inc.php
index 07f6da6f..8f3b37e3 100644
--- a/templates/show_stats.inc.php
+++ b/templates/show_stats.inc.php
@@ -29,19 +29,19 @@
$stats = Catalog::get_stats();
$catalogs = Catalog::get_catalogs();
?>
-<?php show_box_top(_('Statistics'), 'box box_stats'); ?>
-<em><?php echo _('Catalogs'); ?></em>
+<?php show_box_top(T_('Statistics'), 'box box_stats'); ?>
+<em><?php echo T_('Catalogs'); ?></em>
<table class="tabledata" cellpadding="3" cellspacing="1">
<tr class="th-top">
- <th><?php echo _('Connected Users'); ?></th>
- <th><?php echo _('Total Users'); ?></th>
- <th><?php echo _('Albums'); ?></th>
- <th><?php echo _('Artists'); ?></th>
- <th><?php echo _('Songs'); ?></th>
- <th><?php echo _('Videos'); ?></th>
- <th><?php echo _('Tags'); ?></th>
- <th><?php echo _('Catalog Size'); ?></th>
- <th><?php echo _('Catalog Time'); ?></th>
+ <th><?php echo T_('Connected Users'); ?></th>
+ <th><?php echo T_('Total Users'); ?></th>
+ <th><?php echo T_('Albums'); ?></th>
+ <th><?php echo T_('Artists'); ?></th>
+ <th><?php echo T_('Songs'); ?></th>
+ <th><?php echo T_('Videos'); ?></th>
+ <th><?php echo T_('Tags'); ?></th>
+ <th><?php echo T_('Catalog Size'); ?></th>
+ <th><?php echo T_('Catalog Time'); ?></th>
</tr>
<tr>
<td><?php echo $stats['connected']; ?></td>
@@ -68,14 +68,14 @@ $catalogs = Catalog::get_catalogs();
<col id="col_total" />
</colgroup>
<tr class="th-top">
- <th class="cel_catalog"><?php echo _('Name'); ?></th>
- <th class="cel_path"><?php echo _('Path'); ?></th>
- <th class="cel_lastverify"><?php echo _('Last Verify'); ?></th>
- <th class="cel_lastadd"><?php echo _('Last Add'); ?></th>
- <th class="cel_lastclean"><?php echo _('Last Clean'); ?></th>
- <th class="cel_songs"><?php echo _('Songs'); ?></th>
- <th class="cel_video"><?php echo _('Videos'); ?></th>
- <th class="cel_total"><?php echo _('Catalog Size'); ?></th>
+ <th class="cel_catalog"><?php echo T_('Name'); ?></th>
+ <th class="cel_path"><?php echo T_('Path'); ?></th>
+ <th class="cel_lastverify"><?php echo T_('Last Verify'); ?></th>
+ <th class="cel_lastadd"><?php echo T_('Last Add'); ?></th>
+ <th class="cel_lastclean"><?php echo T_('Last Clean'); ?></th>
+ <th class="cel_songs"><?php echo T_('Songs'); ?></th>
+ <th class="cel_video"><?php echo T_('Videos'); ?></th>
+ <th class="cel_total"><?php echo T_('Catalog Size'); ?></th>
</tr>
<?php foreach ($catalogs as $catalog_id) {
$catalog = new Catalog($catalog_id);
diff --git a/templates/show_stats_popular.inc.php b/templates/show_stats_popular.inc.php
index 01340054..6e3f49ad 100644
--- a/templates/show_stats_popular.inc.php
+++ b/templates/show_stats_popular.inc.php
@@ -30,13 +30,13 @@
<div>
<?php
$objects = Stats::get_top('album');
- $headers = array('f_link'=>_('Most Popular Albums'));
+ $headers = array('f_link' => T_('Most Popular Albums'));
show_box_top('','info-box box_popular_albums');
require Config::get('prefix') . '/templates/show_objects.inc.php';
show_box_bottom();
$objects = Stats::get_top('artist');
- $headers = array('f_name_link'=>_('Most Popular Artists'));
+ $headers = array('f_name_link' => T_('Most Popular Artists'));
show_box_top('','info-box box_popular_artists');
require Config::get('prefix') . '/templates/show_objects.inc.php';
show_box_bottom();
diff --git a/templates/show_tagcloud.inc.php b/templates/show_tagcloud.inc.php
index 6ba7bb8f..215b0141 100644
--- a/templates/show_tagcloud.inc.php
+++ b/templates/show_tagcloud.inc.php
@@ -37,6 +37,6 @@ $web_path = Config::get('web_path');
<?php echo Ajax::observe('click_' . intval($tag->id),'click',Ajax::action('?page=tag&action=add_filter&browse_id=' . $browse2->id . '&tag_id=' . intval($tag->id),'')); ?>
<?php } ?>
<?php if (!count($object_ids)) { ?>
-<span class="fatalerror"><?php echo _('Not Enough Data'); ?></span>
+<span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span>
<?php } ?>
<?php Ajax::end_container(); ?>
diff --git a/templates/show_test.inc.php b/templates/show_test.inc.php
index fcc070bd..eda139d8 100644
--- a/templates/show_test.inc.php
+++ b/templates/show_test.inc.php
@@ -36,26 +36,26 @@
</head>
<body bgcolor="#f0f0f0">
<div id="header">
-<h1><?php echo _('Ampache Debug'); ?></h1>
-<p><?php echo _('You\'ve reached this page because a configuration error has occured. Debug Information below'); ?></p>
+<h1><?php echo T_('Ampache Debug'); ?></h1>
+<p><?php echo T_('You\'ve reached this page because a configuration error has occured. Debug Information below'); ?></p>
</div>
<div>
<table align="center" cellpadding="3" cellspacing="0">
<tr>
- <td><font size="+1"><?php echo _('CHECK'); ?></font></td>
+ <td><font size="+1"><?php echo T_('CHECK'); ?></font></td>
<td>
- <font size="+1"><?php echo _('STATUS'); ?></font>
+ <font size="+1"><?php echo T_('STATUS'); ?></font>
</td>
- <td><font size="+1"><?php echo _('DESCRIPTION'); ?></font></td>
+ <td><font size="+1"><?php echo T_('DESCRIPTION'); ?></font></td>
</tr>
<tr>
- <td valign="top"><?php echo _('PHP Version'); ?></td>
+ <td valign="top"><?php echo T_('PHP Version'); ?></td>
<td valign="top">[
<?php
if (!check_php_ver()) {
echo debug_result('',false);
if (function_exists('hash_algos')) { $algos = hash_algos(); }
- $string = "<strong>" . phpversion() . " " . _('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_bool(in_array('sha256',$algos)) . "</strong>";
+ $string = "<strong>" . phpversion() . " " . T_('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . T_('SHA256 Support') . " " . print_bool(in_array('sha256',$algos)) . "</strong>";
}
else {
echo debug_result('',true);
@@ -64,12 +64,12 @@
]
</td>
<td>
- <?php echo _('This tests to make sure that you are running a version of PHP that is known to work with Ampache.'); ?>
+ <?php echo T_('This tests to make sure that you are running a version of PHP that is known to work with Ampache.'); ?>
<?php echo $string; ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Mysql for PHP'); ?></td>
+ <td valign="top"><?php echo T_('Mysql for PHP'); ?></td>
<td valign="top">[
<?php
if (!check_php_mysql()) {
@@ -82,11 +82,11 @@
]
</td>
<td>
- <?php echo _('This test checks to see if you have the mysql extensions loaded for PHP. These are required for Ampache to work.'); ?>
+ <?php echo T_('This test checks to see if you have the mysql extensions loaded for PHP. These are required for Ampache to work.'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('PHP Session Support'); ?></td>
+ <td valign="top"><?php echo T_('PHP Session Support'); ?></td>
<td valign="top">[
<?php
if (!check_php_session()) {
@@ -99,11 +99,11 @@
]
</td>
<td>
- <?php echo _('This test checks to make sure that you have PHP session support enabled. Sessions are required for Ampache to work.'); ?>
+ <?php echo T_('This test checks to make sure that you have PHP session support enabled. Sessions are required for Ampache to work.'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('PHP ICONV Support'); ?></td>
+ <td valign="top"><?php echo T_('PHP ICONV Support'); ?></td>
<td valign="top">[
<?php
if (!check_php_iconv()) {
@@ -115,11 +115,11 @@
?>]
</td>
<td>
- <?php echo _('This test checks to make sure you have Iconv support installed. Iconv support is required for Ampache'); ?>
+ <?php echo T_('This test checks to make sure you have Iconv support installed. Iconv support is required for Ampache'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('PHP PCRE Support'); ?></td>
+ <td valign="top"><?php echo T_('PHP PCRE Support'); ?></td>
<td valign="top">[
<?php
if (!check_php_pcre()) {
@@ -131,11 +131,11 @@
?>]
</td>
<td>
- <?php echo _('This test makes sure you have PCRE support compiled into your version of PHP, this is required for Ampache.'); ?>
+ <?php echo T_('This test makes sure you have PCRE support compiled into your version of PHP, this is required for Ampache.'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('PHP Safe Mode'); ?></td>
+ <td valign="top"><?php echo T_('PHP Safe Mode'); ?></td>
<td valign="top">[
<?php
if (!check_safemode()) {
@@ -147,29 +147,29 @@
?>]
</td>
<td>
- <?php echo _("This test makes sure that PHP isn't running in safe mode. Some features of Ampache may not work correctly in safe mode."); ?>
+ <?php echo T_("This test makes sure that PHP isn't running in safe mode. Some features of Ampache may not work correctly in safe mode."); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Override Memory Limit'); ?></td>
+ <td valign="top"><?php echo T_('Override Memory Limit'); ?></td>
<td valign="top">[
<?php echo debug_result('', check_override_memory()); ?>]
</td>
<td>
- <?php echo _('This tests whether Ampache can override the memory limit. This is not strictly necessary, but may result in a better experience.'); ?>
+ <?php echo T_('This tests whether Ampache can override the memory limit. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Override Execution Limit'); ?></td>
+ <td valign="top"><?php echo T_('Override Execution Limit'); ?></td>
<td valign="top">[
<?php echo debug_result('', check_override_exec_time()); ?>]
</td>
<td>
- <?php echo _('This tests whether Ampache can override the limit on maximum execution time. This is not strictly necessary, but may result in a better experience.'); ?>
+ <?php echo T_('This tests whether Ampache can override the limit on maximum execution time. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo sprintf(_("%s is readable"),"ampache.cfg.php"); ?></td>
+ <td valign="top"><?php echo sprintf(T_("%s is readable"),"ampache.cfg.php"); ?></td>
<td valign="top">[
<?php
if (!is_readable($configfile)) {
@@ -182,13 +182,13 @@
]
</td>
<td width="350px">
- <?php echo _('This attempts to read /config/ampache.cfg.php If this fails either the ampache.cfg.php is not in the correct locations or
+ <?php echo T_('This attempts to read /config/ampache.cfg.php If this fails either the ampache.cfg.php is not in the correct locations or
it is not currently readable by your webserver.'); ?>
</td>
</tr>
<tr>
<td valign="top">
- <?php echo _('Ampache.cfg.php Configured?'); ?>
+ <?php echo T_('Ampache.cfg.php Configured?'); ?>
</td>
<td valign="top">[
<?php
@@ -204,11 +204,11 @@
]
</td>
<td>
- <?php echo _("This test makes sure that you have set all of the required configuration variables and that we are able to completely parse your config file"); ?>
+ <?php echo T_("This test makes sure that you have set all of the required configuration variables and that we are able to completely parse your config file"); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _("DB Connection"); ?></td>
+ <td valign="top"><?php echo T_("DB Connection"); ?></td>
<td valign="top">[
<?php
$db = check_database($results['database_hostname'], $results['database_username'], $results['database_password'],$results['database_name']);
@@ -222,11 +222,11 @@
]
</td>
<td>
- <?php echo _("This attempts to connect to your database using the values from your ampache.cfg.php"); ?>
+ <?php echo T_("This attempts to connect to your database using the values from your ampache.cfg.php"); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('DB Inserted'); ?></td>
+ <td valign="top"><?php echo T_('DB Inserted'); ?></td>
<td valign="top">[
<?php
$db_inserted = check_database_inserted($db,$results['local_db']);
@@ -240,12 +240,12 @@
]
</td>
<td>
- <?php echo _('This checks a few key tables to make sure that you have successfully inserted the ampache database and that the user has access to the database'); ?>
+ <?php echo T_('This checks a few key tables to make sure that you have successfully inserted the ampache database and that the user has access to the database'); ?>
</td>
</tr>
<tr>
- <td valign="top"><?php echo _('Web Path'); ?></td>
+ <td valign="top"><?php echo T_('Web Path'); ?></td>
<td valign="top">[
<?php
/*
@@ -269,7 +269,7 @@
]
</td>
<td>
- <?php echo _('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?>
+ <?php echo T_('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?>
</td>
</tr>
</table>
diff --git a/templates/show_test_config.inc.php b/templates/show_test_config.inc.php
index 5a493bff..b78c0dff 100644
--- a/templates/show_test_config.inc.php
+++ b/templates/show_test_config.inc.php
@@ -44,7 +44,7 @@ body {
</head>
<body bgcolor="#f0f0f0">
<div id="header">
-<h1><?php echo _('Ampache Debug'); ?></h1>
+<h1><?php echo T_('Ampache Debug'); ?></h1>
<p>Ampache.cfg.php error detected</p>
</div>
<div id="content">
diff --git a/templates/show_update_items.inc.php b/templates/show_update_items.inc.php
index c952dc41..0466f876 100644
--- a/templates/show_update_items.inc.php
+++ b/templates/show_update_items.inc.php
@@ -26,10 +26,10 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Starting Update from Tags'), 'box box_update_items');
+show_box_top(T_('Starting Update from Tags'), 'box box_update_items');
Catalog::update_single_item($type,$object_id);
?>
<br />
-<strong><?php echo _('Update from Tags Complete'); ?></strong>&nbsp;&nbsp;
-<a class="button" href="<?php echo $target_url; ?>"><?php echo _('Continue'); ?></a>
+<strong><?php echo T_('Update from Tags Complete'); ?></strong>&nbsp;&nbsp;
+<a class="button" href="<?php echo $target_url; ?>"><?php echo T_('Continue'); ?></a>
<?php show_box_bottom(); ?>
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));
diff --git a/templates/show_user_activate.inc.php b/templates/show_user_activate.inc.php
index af8caf19..71307724 100644
--- a/templates/show_user_activate.inc.php
+++ b/templates/show_user_activate.inc.php
@@ -33,14 +33,14 @@ $web_path = Config::get('web_path');
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" />
-<title><?php echo Config::get('site_title'); ?> - <?php echo _('Registration'); ?></title>
+<title><?php echo Config::get('site_title'); ?> - <?php echo T_('Registration'); ?></title>
<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?>/templates/install.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" />
</head>
<body>
<div id="header">
<h1><?php echo Config::get('site_title'); ?></h1>
-<?php echo _('Registration'); ?>...
+<?php echo T_('Registration'); ?>...
</div>
<script src="<?php echo $web_path; ?>/modules/prototype/prototype.js" language="javascript" type="text/javascript"></script>
@@ -52,15 +52,15 @@ $web_path = Config::get('web_path');
if ($validation == User::get_validation($username) AND strlen($validation)) {
User::activate_user($username);
?>
-<h3><?php echo _('User Activated'); ?></h3>
+<h3><?php echo T_('User Activated'); ?></h3>
<p>
<?php
/* HINT: Start A tag, End A tag */
- printf(_('This User ID is activated and can be used %sLogin%s'), '<a href="' . Config::get('web_path'). '/login.php">', '</a>'); ?>
+ printf(T_('This User ID is activated and can be used %sLogin%s'), '<a href="' . Config::get('web_path'). '/login.php">', '</a>'); ?>
</p>
<?php } else { ?>
-<h3><?php echo _('Validation Failed'); ?></h3>
-<p><?php echo _("The validation key used isn't correct"); ?></p>
+<h3><?php echo T_('Validation Failed'); ?></h3>
+<p><?php echo T_("The validation key used isn't correct"); ?></p>
<?php } ?>
</div><!--end <div>id="maincontainer-->
<div id="bottom">
diff --git a/templates/show_user_preferences.inc.php b/templates/show_user_preferences.inc.php
index ead20fee..f179f768 100644
--- a/templates/show_user_preferences.inc.php
+++ b/templates/show_user_preferences.inc.php
@@ -32,7 +32,7 @@
*/
?>
-<?php /* HINT: Editing Username preferences */ show_box_top(sprintf(_('Editing %s preferences'), $client->fullname),'box box_preferences'); ?>
+<?php /* HINT: Editing Username preferences */ show_box_top(sprintf(T_('Editing %s preferences'), $client->fullname),'box box_preferences'); ?>
<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=admin_update_preferences" enctype="multipart/form-data">
<table class="tabledata" cellspacing="0">
<colgroup>
@@ -40,12 +40,12 @@
<col id="col_value" />
</colgroup>
<tr class="th-top">
- <th class="col_preference"><?php echo _('Preference'); ?></th>
- <th class="col_value"><?php echo _('Value'); ?></th>
+ <th class="col_preference"><?php echo T_('Preference'); ?></th>
+ <th class="col_value"><?php echo T_('Value'); ?></th>
</tr>
<?php foreach ($preferences as $pref) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td class="cel_preference"><?php echo _($pref['description']); ?></td>
+ <td class="cel_preference"><?php echo T_($pref['description']); ?></td>
<td class="cel_value">
<?php create_preference_input($pref['name'], $pref['value']); ?>
</td>
@@ -54,7 +54,7 @@
<tr>
<td>
<div class="formValidation">
- <input class="button" type="submit" value="<?php echo _('Update Preferences'); ?>" />
+ <input class="button" type="submit" value="<?php echo T_('Update Preferences'); ?>" />
<?php echo Core::form_register('update_preference'); ?>
<input type="hidden" name="user_id" value="<?php echo scrub_out($_REQUEST['user_id']); ?>" />
</div>
diff --git a/templates/show_user_recommendations.inc.php b/templates/show_user_recommendations.inc.php
index 3d163ae5..6b2e761a 100644
--- a/templates/show_user_recommendations.inc.php
+++ b/templates/show_user_recommendations.inc.php
@@ -34,10 +34,10 @@
<?php
if (count($recommended_artists)) {
$items = $working_user->format_recommendations($recommended_artists,'artist');
- show_info_box(_('Recommended Artists'),'artist',$items);
+ show_info_box(T_('Recommended Artists'),'artist',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
@@ -45,10 +45,10 @@
<?php
if (count($recommended_albums)) {
$items = $working_user->format_recommendations($recommended_albums,'album');
- show_info_box(_('Recommended Albums'),'album',$items);
+ show_info_box(T_('Recommended Albums'),'album',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
@@ -56,10 +56,10 @@
<?php
if (count($recommended_songs)) {
$items = $working_user->format_recommendations($recommended_songs,'song');
- show_info_box(_('Recommended Songs'),'song',$items);
+ show_info_box(T_('Recommended Songs'),'song',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
diff --git a/templates/show_user_registration.inc.php b/templates/show_user_registration.inc.php
index 2d9ce3a8..27f951a6 100644
--- a/templates/show_user_registration.inc.php
+++ b/templates/show_user_registration.inc.php
@@ -33,7 +33,7 @@ $web_path = Config::get('web_path');
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" />
-<title><?php echo Config::get('site_title'); ?> - <?php echo _('Registration'); ?></title>
+<title><?php echo Config::get('site_title'); ?> - <?php echo T_('Registration'); ?></title>
<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" />
</head>
@@ -45,7 +45,7 @@ $web_path = Config::get('web_path');
<div id="maincontainer">
<div id="header">
<h1><?php echo scrub_out(Config::get('site_title')); ?></h1>
-<span><?php echo _('Registration'); ?>...</span>
+<span><?php echo T_('Registration'); ?>...</span>
</div>
<?php
@@ -59,50 +59,50 @@ $email = scrub_in($_REQUEST['email']);
<?php
/* If we should show the user agreement */
if (Config::get('user_agreement')) { ?>
-<h3><?php echo _('User Agreement'); ?></h3>
+<h3><?php echo T_('User Agreement'); ?></h3>
<div class="registrationAgreement">
<div class="agreementContent">
<?php Registration::show_agreement(); ?>
</div>
<div class="agreementCheckbox">
- <input type='checkbox' name='accept_agreement' /> <?php echo _('I Accept'); ?>
+ <input type='checkbox' name='accept_agreement' /> <?php echo T_('I Accept'); ?>
<?php Error::display('user_agreement'); ?>
</div>
</div>
<?php } // end if(conf('user_agreement')) ?>
-<h3><?php echo _('User Information'); ?></h3>
+<h3><?php echo T_('User Information'); ?></h3>
<div class="registerfield require">
- <label for="username"><?php echo _('Username'); ?>: <span class="asterix">*</span></label>
+ <label for="username"><?php echo T_('Username'); ?>: <span class="asterix">*</span></label>
<input type='text' name='username' id='username' value='<?php echo scrub_out($username); ?>' />
<?php Error::display('username'); ?>
<?php Error::display('duplicate_user'); ?>
</div>
<div class="registerfield require">
- <label for="fullname"><?php echo _('Full Name'); ?>: <span class="asterix">*</span></label>
+ <label for="fullname"><?php echo T_('Full Name'); ?>: <span class="asterix">*</span></label>
<input type='text' name='fullname' id='fullname' value='<?php echo scrub_out($fullname); ?>' />
<?php Error::display('fullname'); ?>
</div>
<div class="registerfield require">
- <label for="email"><?php echo _('E-mail'); ?>: <span class="asterix">*</span></label>
+ <label for="email"><?php echo T_('E-mail'); ?>: <span class="asterix">*</span></label>
<input type='text' name='email' id='email' value='<?php echo scrub_out($email); ?>' />
<?php Error::display('email'); ?>
</div>
<div class="registerfield require">
- <label for="password"><?php echo _('Password'); ?>: <span class="asterix">*</span></label>
+ <label for="password"><?php echo T_('Password'); ?>: <span class="asterix">*</span></label>
<input type='password' name='password_1' id='password_1' />
<?php Error::display('password'); ?>
</div>
<div class="registerfield require">
- <label for="confirm_passord"><?php echo _('Confirm Password'); ?>: <span class="asterix">*</span></label>
+ <label for="confirm_passord"><?php echo T_('Confirm Password'); ?>: <span class="asterix">*</span></label>
<input type='password' name='password_2' id='password_2' />
</div>
<div class="registerInformation">
- <span><?php echo _('* Required fields'); ?></span>
+ <span><?php echo T_('* Required fields'); ?></span>
</div>
<?php if (Config::get('captcha_public_reg')) { ?>
@@ -112,7 +112,7 @@ if (Config::get('user_agreement')) { ?>
<div class="registerButtons">
<input type="hidden" name="action" value="add_user" />
- <input type='submit' name='submit_registration' id='submit_registration' value='<?php echo _('Register User'); ?>' />
+ <input type='submit' name='submit_registration' id='submit_registration' value='<?php echo T_('Register User'); ?>' />
</div>
</form>
</div><!-- end <div id="registerbox-->
@@ -120,7 +120,7 @@ if (Config::get('user_agreement')) { ?>
<div id="footer">
<a href="http://www.ampache.org/index.php">Ampache v.<?php echo Config::get('version'); ?></a><br />
Copyright (c) 2001 - 2010 Ampache.org
- <?php echo _('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo _('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
+ <?php echo T_('Queries:'); ?><?php echo Dba::$stats['query']; ?> <?php echo T_('Cache Hits:'); ?><?php echo database_object::$cache_hit; ?>
</div>
</body>
</html>
diff --git a/templates/show_user_row.inc.php b/templates/show_user_row.inc.php
index 13ec72e7..93f783e4 100644
--- a/templates/show_user_row.inc.php
+++ b/templates/show_user_row.inc.php
@@ -43,18 +43,18 @@
</td>
<?php } ?>
<td class="cel_action">
- <a href="<?php echo $web_path; ?>/admin/users.php?action=show_edit&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('edit', _('Edit')); ?></a>
- <a href="<?php echo $web_path; ?>/admin/users.php?action=show_preferences&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('preferences', _('Preferences')); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/users.php?action=show_edit&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('edit', T_('Edit')); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/users.php?action=show_preferences&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('preferences', T_('Preferences')); ?></a>
<?php
//FIXME: Fix this for the extra permission levels
if ($client->disabled == '1') {
- echo "<a href=\"".$web_path."/admin/users.php?action=enable&amp;user_id=$client->id\">" . get_user_icon('enable', _('Enable')) . "</a>";
+ echo "<a href=\"".$web_path."/admin/users.php?action=enable&amp;user_id=$client->id\">" . get_user_icon('enable', T_('Enable')) . "</a>";
}
else {
- echo "<a href=\"".$web_path."/admin/users.php?action=disable&amp;user_id=$client->id\">" . get_user_icon('disable', _('Disable')) ."</a>";
+ echo "<a href=\"".$web_path."/admin/users.php?action=disable&amp;user_id=$client->id\">" . get_user_icon('disable', T_('Disable')) ."</a>";
}
?>
- <a href="<?php echo $web_path; ?>/admin/users.php?action=delete&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('delete', _('Delete')); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/users.php?action=delete&amp;user_id=<?php echo $client->id; ?>"><?php echo get_user_icon('delete', T_('Delete')); ?></a>
</td>
<?php
if (($client->is_logged_in()) AND ($client->is_online())) {
diff --git a/templates/show_user_stats.inc.php b/templates/show_user_stats.inc.php
index 9d812672..10ca28f5 100644
--- a/templates/show_user_stats.inc.php
+++ b/templates/show_user_stats.inc.php
@@ -35,11 +35,11 @@
if (count($favorite_artists)) {
$items = $working_user->format_favorites($favorite_artists);
$title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&amp;type=artist">' .
- get_user_icon('all', _('Favorite Artists')) . '</a>&nbsp;' . _('Favorite Artists');
+ get_user_icon('all', T_('Favorite Artists')) . '</a>&nbsp;' . T_('Favorite Artists');
show_info_box($title,'artist',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
@@ -48,11 +48,11 @@
if (count($favorite_albums)) {
$items = $working_user->format_favorites($favorite_albums);
$title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&amp;type=album">' .
- get_user_icon('all', _('Favorite Albums')) . '</a>&nbsp;' . _('Favorite Albums');
+ get_user_icon('all', T_('Favorite Albums')) . '</a>&nbsp;' . T_('Favorite Albums');
show_info_box($title,'album',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
@@ -61,11 +61,11 @@
if (count($favorite_songs)) {
$items = $working_user->format_favorites($favorite_songs);
$title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&amp;type=song">' .
- get_user_icon('all', _('Favorite Songs')) . '</a>&nbsp;' . _('Favorite Songs');
+ get_user_icon('all', T_('Favorite Songs')) . '</a>&nbsp;' . T_('Favorite Songs');
show_info_box($title,'your_song',$items);
}
else {
- echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>";
}
?>
</td>
diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php
index 552d4b19..ae789f4b 100644
--- a/templates/show_users.inc.php
+++ b/templates/show_users.inc.php
@@ -43,36 +43,36 @@ $web_path = Config::get('web_path');
<col id="col_online" />
</colgroup>
<tr class="th-top">
- <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=fullname',_('Fullname'),'users_sort_fullname'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=username',_('Username'),'users_sort_username');?>)</th>
- <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=last_seen',_('Last Seen'),'users_sort_lastseen'); ?></th>
- <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=create_date',_('Registration Date'),'users_sort_createdate'); ?></th>
- <th class="cel_activity"><?php echo _('Activity'); ?></th>
+ <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=fullname', T_('Fullname'),'users_sort_fullname'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=username', T_('Username'),'users_sort_username');?>)</th>
+ <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=last_seen', T_('Last Seen'),'users_sort_lastseen'); ?></th>
+ <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=create_date', T_('Registration Date'),'users_sort_createdate'); ?></th>
+ <th class="cel_activity"><?php echo T_('Activity'); ?></th>
<?php if (Config::get('track_user_ip')) { ?>
- <th class="cel_lastip"><?php echo _('Last Ip'); ?></th>
+ <th class="cel_lastip"><?php echo T_('Last Ip'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
- <th class="cel_online"><?php echo _('On-line'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
+ <th class="cel_online"><?php echo T_('On-line'); ?></th>
</tr>
<?php
foreach ($object_ids as $user_id) {
$client = new User($user_id);
$client->format();
- $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');
?>
<tr class="<?php echo flip_class(); ?>" align="center" id="admin_user_<?php echo $client->id; ?>">
<?php require Config::get('prefix') . '/templates/show_user_row.inc.php'; ?>
</tr>
<?php } //end foreach users ?>
<tr class="th-bottom">
- <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=fullname',_('Fullname'),'users_sort_fullname1'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=username',_('Username'),'users_sort_username1');?>)</th>
- <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=last_seen',_('Last Seen'),'users_sort_lastseen1'); ?></th>
- <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=create_date',_('Registration Date'),'users_sort_createdate1'); ?></th>
- <th class="cel_activity"><?php echo _('Activity'); ?></th>
+ <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=fullname', T_('Fullname'),'users_sort_fullname1'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=username', T_('Username'),'users_sort_username1');?>)</th>
+ <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=last_seen', T_('Last Seen'),'users_sort_lastseen1'); ?></th>
+ <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&type=user&sort=create_date', T_('Registration Date'),'users_sort_createdate1'); ?></th>
+ <th class="cel_activity"><?php echo T_('Activity'); ?></th>
<?php if (Config::get('track_user_ip')) { ?>
- <th class="cel_lastip"><?php echo _('Last Ip'); ?></th>
+ <th class="cel_lastip"><?php echo T_('Last Ip'); ?></th>
<?php } ?>
- <th class="cel_action"><?php echo _('Action'); ?></th>
- <th class="cel_online"><?php echo _('On-line'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
+ <th class="cel_online"><?php echo T_('On-line'); ?></th>
</tr>
</table>
diff --git a/templates/show_verify_catalog.inc.php b/templates/show_verify_catalog.inc.php
index 4786c703..a9004b5e 100644
--- a/templates/show_verify_catalog.inc.php
+++ b/templates/show_verify_catalog.inc.php
@@ -26,13 +26,13 @@
* @link http://www.ampache.org/
*/
-show_box_top(_('Verify Catalog'), 'box box_verify_catalog');
+show_box_top(T_('Verify Catalog'), 'box box_verify_catalog');
/* HINT: Catalog Name */
-printf(_('Updating the %s catalog'), "<strong>[ $this->name ]</strong>");
+printf(T_('Updating the %s catalog'), "<strong>[ $this->name ]</strong>");
echo "<br />\n";
printf(ngettext('%d item found checking tag information', '%d items found checking tag information', $number), $number);
echo "<br />\n\n";
-echo _('Verified') . ': <span id="verify_count_' . $this->id . '">' . $catalog_verify_found . '</span><br />';
-echo _('Reading') . ': <span id="verify_dir_' . $this->id . '">' . $catalog_verify_directory . '</span><br />';
+echo T_('Verified') . ': <span id="verify_count_' . $this->id . '">' . $catalog_verify_found . '</span><br />';
+echo T_('Reading') . ': <span id="verify_dir_' . $this->id . '">' . $catalog_verify_directory . '</span><br />';
show_box_bottom();
?>
diff --git a/templates/show_video_row.inc.php b/templates/show_video_row.inc.php
index 6f0ebd1f..e34c4bff 100644
--- a/templates/show_video_row.inc.php
+++ b/templates/show_video_row.inc.php
@@ -28,7 +28,7 @@
?>
<td class="cel_add">
- <?php echo Ajax::button('?action=basket&type=video&id=' . $video->id,'add',_('Add'),'add_video_' . $video->id); ?>
+ <?php echo Ajax::button('?action=basket&type=video&id=' . $video->id,'add', T_('Add'),'add_video_' . $video->id); ?>
</td>
<td class="cel_title"><?php echo $video->f_title; ?></td>
<td class="cel_codec"><?php echo $video->f_codec; ?></td>
@@ -37,6 +37,6 @@
<td class="cel_tags"><?php $video->f_tags; ?></td>
<td class="cel_action">
<?php if (Access::check_function('download')) { ?>
- <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&type=video&oid=<?php echo $video->id; ?>"><?php echo get_user_icon('download',_('Download')); ?></a>
+ <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&type=video&oid=<?php echo $video->id; ?>"><?php echo get_user_icon('download', T_('Download')); ?></a>
<?php } ?>
</td>
diff --git a/templates/show_videos.inc.php b/templates/show_videos.inc.php
index a4fe0741..90a2b700 100644
--- a/templates/show_videos.inc.php
+++ b/templates/show_videos.inc.php
@@ -41,13 +41,13 @@ $web_path = Config::get('web_path');
<col id="col-action" />
</colgroup>
<tr class="th-top">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_title"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=title',_('Title'),'sort_video_title'); ?></th>
- <th class="cel_codec"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=codec',_('Codec'),'sort_video_codec'); ?></th>
- <th class="cel_resolution"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=resolution',_('Resolution'),'sort_video_rez'); ?></th>
- <th class="cel_length"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=length',_('Time'),'sort_video_length'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_title"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=title', T_('Title'),'sort_video_title'); ?></th>
+ <th class="cel_codec"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=codec', T_('Codec'),'sort_video_codec'); ?></th>
+ <th class="cel_resolution"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=resolution', T_('Resolution'),'sort_video_rez'); ?></th>
+ <th class="cel_length"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=length', T_('Time'),'sort_video_length'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
<?php
/* Foreach through every artist that has been passed to us */
@@ -61,17 +61,17 @@ foreach ($object_ids as $video_id) {
<?php } //end foreach ?>
<?php if (!count($object_ids)) { ?>
<tr class="<?php echo flip_class(); ?>">
- <td colspan="7"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
+ <td colspan="7"><span class="fatalerror"><?php echo T_('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
- <th class="cel_add"><?php echo _('Add'); ?></th>
- <th class="cel_title"><?php echo _('Title'); ?></th>
- <th class="cel_codec"><?php echo _('Codec'); ?></th>
- <th class="cel_resolution"><?php echo _('Resolution'); ?></th>
- <th class="cel_length"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=length',_('Time'),'sort_video_length_bottom'); ?></th>
- <th class="cel_tags"><?php echo _('Tags'); ?></th>
- <th class="cel_action"><?php echo _('Action'); ?></th>
+ <th class="cel_add"><?php echo T_('Add'); ?></th>
+ <th class="cel_title"><?php echo T_('Title'); ?></th>
+ <th class="cel_codec"><?php echo T_('Codec'); ?></th>
+ <th class="cel_resolution"><?php echo T_('Resolution'); ?></th>
+ <th class="cel_length"><?php echo Ajax::text('?page=browse&action=set_sort&type=video&sort=length', T_('Time'),'sort_video_length_bottom'); ?></th>
+ <th class="cel_tags"><?php echo T_('Tags'); ?></th>
+ <th class="cel_action"><?php echo T_('Action'); ?></th>
</tr>
</table>
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index f1d980a0..00685bc4 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -31,11 +31,11 @@ $class_name = 'sidebar_' . $_SESSION['state']['sidebar_tab'];
${$class_name} = ' active';
// List of buttons ( id, title, icon, access level)
-$sidebar_items[] = array('id'=>'home', 'title'=>_('Home'), 'icon'=>'home', 'access'=>5);
-$sidebar_items[] = array('id'=>'localplay', 'title'=>_('Localplay'), 'icon'=>'volumeup', 'access'=>5);
-$sidebar_items[] = array('id'=>'preferences', 'title'=>_('Preferences'), 'icon'=>'edit', 'access'=>5);
-$sidebar_items[] = array('id'=>'modules','title'=>_('Modules'),'icon'=>'plugin','access'=>100);
-$sidebar_items[] = array('id'=>'admin', 'title'=>_('Admin'), 'icon'=>'admin', 'access'=>100);
+$sidebar_items[] = array('id'=>'home', 'title' => T_('Home'), 'icon'=>'home', 'access'=>5);
+$sidebar_items[] = array('id'=>'localplay', 'title' => T_('Localplay'), 'icon'=>'volumeup', 'access'=>5);
+$sidebar_items[] = array('id'=>'preferences', 'title' => T_('Preferences'), 'icon'=>'edit', 'access'=>5);
+$sidebar_items[] = array('id'=>'modules','title' => T_('Modules'),'icon'=>'plugin','access'=>100);
+$sidebar_items[] = array('id'=>'admin', 'title' => T_('Admin'), 'icon'=>'admin', 'access'=>100);
$web_path = Config::get('web_path');
@@ -65,7 +65,7 @@ $ajax_url = Config::get('ajax_url');
?>
<li id="sb_tab_logout" class="sb1">
<a href="<?php echo Config::get('web_path'); ?>/logout.php" id="sidebar_logout" >
- <?php echo get_user_icon('logout',_('Logout')); ?>
+ <?php echo get_user_icon('logout', T_('Logout')); ?>
</a>
</li>
</ul>
diff --git a/templates/sidebar_admin.inc.php b/templates/sidebar_admin.inc.php
index 789d654d..eda90e7c 100644
--- a/templates/sidebar_admin.inc.php
+++ b/templates/sidebar_admin.inc.php
@@ -28,44 +28,44 @@
?>
<ul class="sb2" id="sb_admin">
- <li><h4><?php echo _('Catalogs'); ?></h4>
+ <li><h4><?php echo T_('Catalogs'); ?></h4>
<ul class="sb3" id="sb_admin_catalogs">
- <li id="sb_admin_catalogs_Add"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_add_catalog"><?php echo _('Add a Catalog'); ?></a></li>
- <li id="sb_admin_catalogs_Show"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_catalogs"><?php echo _('Show Catalogs'); ?></a></li>
+ <li id="sb_admin_catalogs_Add"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_add_catalog"><?php echo T_('Add a Catalog'); ?></a></li>
+ <li id="sb_admin_catalogs_Show"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_catalogs"><?php echo T_('Show Catalogs'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('User Tools'); ?></h4>
+ <li><h4><?php echo T_('User Tools'); ?></h4>
<ul class="sb3" id="sb_admin_ut">
- <li id="sb_admin_ut_AddUser"><a href="<?php echo $web_path; ?>/admin/users.php?action=show_add_user"><?php echo _('Add User'); ?></a></li>
- <li id="sb_admin_ut_BrowseUsers"><a href="<?php echo $web_path; ?>/admin/users.php"><?php echo _('Browse Users'); ?></a></li>
+ <li id="sb_admin_ut_AddUser"><a href="<?php echo $web_path; ?>/admin/users.php?action=show_add_user"><?php echo T_('Add User'); ?></a></li>
+ <li id="sb_admin_ut_BrowseUsers"><a href="<?php echo $web_path; ?>/admin/users.php"><?php echo T_('Browse Users'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Access Control'); ?></h4>
+ <li><h4><?php echo T_('Access Control'); ?></h4>
<ul class="sb3" id="sb_admin_acl">
- <li id="sb_admin_acl_AddAccess"><a href="<?php echo $web_path; ?>/admin/access.php?action=show_add_advanced"><?php echo _('Add ACL'); ?></a></li>
- <li id="sb_admin_acl_ShowAccess"><a href="<?php echo $web_path; ?>/admin/access.php"><?php echo _('Show ACL(s)'); ?></a></li>
+ <li id="sb_admin_acl_AddAccess"><a href="<?php echo $web_path; ?>/admin/access.php?action=show_add_advanced"><?php echo T_('Add ACL'); ?></a></li>
+ <li id="sb_admin_acl_ShowAccess"><a href="<?php echo $web_path; ?>/admin/access.php"><?php echo T_('Show ACL(s)'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Other Tools'); ?></h4>
+ <li><h4><?php echo T_('Other Tools'); ?></h4>
<ul class="sb3" id="sb_admin_ot">
- <li id="sb_admin_ot_Debug"><a href="<?php echo $web_path; ?>/admin/system.php?action=show_debug"><?php echo _('Ampache Debug'); ?></a></li>
- <li id="sb_admin_ot_ClearNowPlaying"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo _('Clear Now Playing'); ?></a></li>
- <li id="sb_admin_ot_ExportCatalog"><a href="<?php echo $web_path; ?>/admin/export.php"><?php echo _('Export Catalog'); ?></a></li>
+ <li id="sb_admin_ot_Debug"><a href="<?php echo $web_path; ?>/admin/system.php?action=show_debug"><?php echo T_('Ampache Debug'); ?></a></li>
+ <li id="sb_admin_ot_ClearNowPlaying"><a href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo T_('Clear Now Playing'); ?></a></li>
+ <li id="sb_admin_ot_ExportCatalog"><a href="<?php echo $web_path; ?>/admin/export.php"><?php echo T_('Export Catalog'); ?></a></li>
<?php if (Config::get('shoutbox')) { ?>
- <li id="sb_admin_ot_ManageShoutbox"><a href="<?php echo $web_path; ?>/admin/shout.php"><?php echo _('Manage Shoutbox'); ?></a></li>
+ <li id="sb_admin_ot_ManageShoutbox"><a href="<?php echo $web_path; ?>/admin/shout.php"><?php echo T_('Manage Shoutbox'); ?></a></li>
<?php } ?>
</ul>
</li>
<?php if (Access::check('interface','100')) { ?>
- <li><h4><?php echo _('Server Config'); ?></h4>
+ <li><h4><?php echo T_('Server Config'); ?></h4>
<ul class="sb3" id="sb_preferences_sc">
<?php
$catagories = Preference::get_catagories();
foreach ($catagories as $name) {
$f_name = ucfirst($name);
?>
- <li id="sb_preferences_sc_<?php echo $f_name; ?>"><a href="<?php echo $web_path; ?>/preferences.php?action=admin&amp;tab=<?php echo $name; ?>"><?php echo _($f_name); ?></a></li>
+ <li id="sb_preferences_sc_<?php echo $f_name; ?>"><a href="<?php echo $web_path; ?>/preferences.php?action=admin&amp;tab=<?php echo $name; ?>"><?php echo T_($f_name); ?></a></li>
<?php } ?>
</ul>
</li>
diff --git a/templates/sidebar_home.inc.php b/templates/sidebar_home.inc.php
index 8c7fd25d..186bd7e1 100644
--- a/templates/sidebar_home.inc.php
+++ b/templates/sidebar_home.inc.php
@@ -29,7 +29,7 @@
$ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
?>
<ul class="sb2" id="sb_home">
- <li><h4><?php echo _('Browse'); ?></h4>
+ <li><h4><?php echo T_('Browse'); ?></h4>
<?php
// Build the selected dealie
if (isset($_REQUEST['action'])) {
@@ -38,23 +38,23 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
}
?>
<ul class="sb3" id="sb_browse_bb">
- <li id="sb_browse_bb_SongTitle"><a href="<?php echo $web_path; ?>/browse.php?action=song"><?php echo _('Song Titles'); ?></a></li>
- <li id="sb_browse_bb_Album"><a href="<?php echo $web_path; ?>/browse.php?action=album"><?php echo _('Albums'); ?></a></li>
- <li id="sb_browse_bb_Artist"><a href="<?php echo $web_path; ?>/browse.php?action=artist"><?php echo _('Artists'); ?></a></li>
- <li id="sb_browse_bb_Tags"><a href="<?php echo $web_path; ?>/browse.php?action=tag"><?php echo _('Tag Cloud'); ?></a></li>
- <li id="sb_browse_bb_Playlist"><a href="<?php echo $web_path; ?>/browse.php?action=playlist"><?php echo _('Playlists'); ?></a></li>
- <li id="sb_browse_bb_SmartPlaylist"><a href="<?php echo $web_path; ?>/browse.php?action=smartplaylist"><?php echo _('Smart Playlists'); ?></a></li>
- <li id="sb_browse_bb_RadioStation"><a href="<?php echo $web_path; ?>/browse.php?action=live_stream"><?php echo _('Radio Stations'); ?></a></li>
- <li id="sb_browse_bb_Video"><a href="<?php echo $web_path; ?>/browse.php?action=video"><?php echo _('Videos'); ?></a></li>
+ <li id="sb_browse_bb_SongTitle"><a href="<?php echo $web_path; ?>/browse.php?action=song"><?php echo T_('Song Titles'); ?></a></li>
+ <li id="sb_browse_bb_Album"><a href="<?php echo $web_path; ?>/browse.php?action=album"><?php echo T_('Albums'); ?></a></li>
+ <li id="sb_browse_bb_Artist"><a href="<?php echo $web_path; ?>/browse.php?action=artist"><?php echo T_('Artists'); ?></a></li>
+ <li id="sb_browse_bb_Tags"><a href="<?php echo $web_path; ?>/browse.php?action=tag"><?php echo T_('Tag Cloud'); ?></a></li>
+ <li id="sb_browse_bb_Playlist"><a href="<?php echo $web_path; ?>/browse.php?action=playlist"><?php echo T_('Playlists'); ?></a></li>
+ <li id="sb_browse_bb_SmartPlaylist"><a href="<?php echo $web_path; ?>/browse.php?action=smartplaylist"><?php echo T_('Smart Playlists'); ?></a></li>
+ <li id="sb_browse_bb_RadioStation"><a href="<?php echo $web_path; ?>/browse.php?action=live_stream"><?php echo T_('Radio Stations'); ?></a></li>
+ <li id="sb_browse_bb_Video"><a href="<?php echo $web_path; ?>/browse.php?action=video"><?php echo T_('Videos'); ?></a></li>
</ul>
</li>
<?php Ajax::start_container('browse_filters'); ?>
<?php Ajax::end_container(); ?>
- <li><h4><?php echo _('Playlist'); ?></h4>
+ <li><h4><?php echo T_('Playlist'); ?></h4>
<ul class="sb3" id="sb_home_info">
- <li id="sb_home_info_CurrentlyPlaying"><a href="<?php echo $web_path; ?>/index.php"><?php echo _('Currently Playing'); ?></a></li>
+ <li id="sb_home_info_CurrentlyPlaying"><a href="<?php echo $web_path; ?>/index.php"><?php echo T_('Currently Playing'); ?></a></li>
<?php if (Config::get('allow_democratic_playback')) { ?>
- <li id="sb_home_democratic_playlist"><a href="<?php echo $web_path; ?>/democratic.php?action=show_playlist"><?php echo _('Democratic'); ?></a></li>
+ <li id="sb_home_democratic_playlist"><a href="<?php echo $web_path; ?>/democratic.php?action=show_playlist"><?php echo T_('Democratic'); ?></a></li>
<?php } ?>
<?php if ($server_allow = Config::get('allow_localplay_playback') AND $controller = Config::get('localplay_controller') AND $access_check = Access::check('localplay','5')) { ?>
<?php
@@ -63,32 +63,32 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
$current_instance = $localplay->current_instance();
$class = $current_instance ? '' : ' class="active_instance"';
?>
- <li id="sb_localplay_info_show"><a href="<?php echo $web_path; ?>/localplay.php?action=show_playlist"><?php echo _('Localplay'); ?></a></li>
+ <li id="sb_localplay_info_show"><a href="<?php echo $web_path; ?>/localplay.php?action=show_playlist"><?php echo T_('Localplay'); ?></a></li>
<?php } ?>
- <li id="sb_browse_bb_Playlist"><a href="<?php echo $web_path; ?>/playlist.php?action=show_import_playlist"><?php echo _('Import'); ?></a></li>
+ <li id="sb_browse_bb_Playlist"><a href="<?php echo $web_path; ?>/playlist.php?action=show_import_playlist"><?php echo T_('Import'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Random'); ?></h4>
+ <li><h4><?php echo T_('Random'); ?></h4>
<ul class="sb3" id="sb_home_random">
- <li id="sb_home_random_album"><?php echo Ajax::text('?page=random&action=album',_('Album'),'home_random_album'); ?></li>
- <li id="sb_home_random_artist"><?php echo Ajax::text('?page=random&action=artist',_('Artist'),'home_random_artist'); ?></li>
- <li id="sb_home_random_playlist"><?php echo Ajax::text('?page=random&action=playlist',_('Playlist'),'home_random_playlist'); ?></li>
- <li id="sb_home_random_advanced"><a href="<?php echo $web_path; ?>/random.php?action=advanced&type=song"><?php echo _('Advanced'); ?></a></li>
+ <li id="sb_home_random_album"><?php echo Ajax::text('?page=random&action=album', T_('Album'),'home_random_album'); ?></li>
+ <li id="sb_home_random_artist"><?php echo Ajax::text('?page=random&action=artist', T_('Artist'),'home_random_artist'); ?></li>
+ <li id="sb_home_random_playlist"><?php echo Ajax::text('?page=random&action=playlist', T_('Playlist'),'home_random_playlist'); ?></li>
+ <li id="sb_home_random_advanced"><a href="<?php echo $web_path; ?>/random.php?action=advanced&type=song"><?php echo T_('Advanced'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Information'); ?></h4>
+ <li><h4><?php echo T_('Information'); ?></h4>
<ul class="sb3" id="sb_home_info">
- <li id="sb_home_info_Statistics"><a href="<?php echo $web_path; ?>/stats.php?action=show"><?php echo _('Statistics'); ?></a></li>
- <li id="sb_home_info_Newest"><a href="<?php echo $web_path; ?>/stats.php?action=newest"><?php echo _('Newest'); ?></a></li>
- <li id="sb_home_info_Popular"><a href="<?php echo $web_path; ?>/stats.php?action=popular"><?php echo _('Popular'); ?></a></li>
+ <li id="sb_home_info_Statistics"><a href="<?php echo $web_path; ?>/stats.php?action=show"><?php echo T_('Statistics'); ?></a></li>
+ <li id="sb_home_info_Newest"><a href="<?php echo $web_path; ?>/stats.php?action=newest"><?php echo T_('Newest'); ?></a></li>
+ <li id="sb_home_info_Popular"><a href="<?php echo $web_path; ?>/stats.php?action=popular"><?php echo T_('Popular'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Search'); ?></h4>
+ <li><h4><?php echo T_('Search'); ?></h4>
<ul class="sb3" id="sb_home_search">
- <li id="sb_home_search_song"><a href="<?php echo $web_path; ?>/search.php?type=song"><?php echo _('Songs'); ?></a></li>
- <li id="sb_home_search_album"><a href="<?php echo $web_path; ?>/search.php?type=album"><?php echo _('Albums'); ?></a></li>
- <li id="sb_home_search_artist"><a href="<?php echo $web_path; ?>/search.php?type=artist"><?php echo _('Artists'); ?></a></li>
- <li id="sb_home_search_video"><a href="<?php echo $web_path; ?>/search.php?type=video"><?php echo _('Videos'); ?></a></li>
+ <li id="sb_home_search_song"><a href="<?php echo $web_path; ?>/search.php?type=song"><?php echo T_('Songs'); ?></a></li>
+ <li id="sb_home_search_album"><a href="<?php echo $web_path; ?>/search.php?type=album"><?php echo T_('Albums'); ?></a></li>
+ <li id="sb_home_search_artist"><a href="<?php echo $web_path; ?>/search.php?type=artist"><?php echo T_('Artists'); ?></a></li>
+ <li id="sb_home_search_video"><a href="<?php echo $web_path; ?>/search.php?type=video"><?php echo T_('Videos'); ?></a></li>
</ul>
</li>
</ul>
diff --git a/templates/sidebar_localplay.inc.php b/templates/sidebar_localplay.inc.php
index 7339e2a9..a689e497 100644
--- a/templates/sidebar_localplay.inc.php
+++ b/templates/sidebar_localplay.inc.php
@@ -37,19 +37,19 @@
$class = $current_instance ? '' : ' class="active_instance"';
?>
<?php if (Access::check('localplay','25')) { ?>
- <li><h4><?php echo _('Localplay'); ?></h4>
+ <li><h4><?php echo T_('Localplay'); ?></h4>
<ul class="sb3" id="sb_localplay_info">
<?php if (Access::check('localplay','75')) { ?>
- <li id="sb_localplay_info_add_instance"><a href="<?php echo $web_path; ?>/localplay.php?action=show_add_instance"><?php echo _('Add Instance'); ?></a></li>
- <li id="sb_localplay_info_show_instances"><a href="<?php echo $web_path; ?>/localplay.php?action=show_instances"><?php echo _('Show instances'); ?></a></li>
+ <li id="sb_localplay_info_add_instance"><a href="<?php echo $web_path; ?>/localplay.php?action=show_add_instance"><?php echo T_('Add Instance'); ?></a></li>
+ <li id="sb_localplay_info_show_instances"><a href="<?php echo $web_path; ?>/localplay.php?action=show_instances"><?php echo T_('Show instances'); ?></a></li>
<?php } ?>
- <li id="sb_localplay_info_show"><a href="<?php echo $web_path; ?>/localplay.php?action=show_playlist"><?php echo _('Show Playlist'); ?></a></li>
+ <li id="sb_localplay_info_show"><a href="<?php echo $web_path; ?>/localplay.php?action=show_playlist"><?php echo T_('Show Playlist'); ?></a></li>
</ul>
</li>
<?php } ?>
- <li><h4><?php echo _('Active Instance'); ?></h4>
+ <li><h4><?php echo T_('Active Instance'); ?></h4>
<ul class="sb3" id="sb_localplay_instances">
- <li id="sb_localplay_instances_none"<?php echo $class; ?>><?php echo Ajax::text('?page=localplay&action=set_instance&instance=0',_('None'),'localplay_instance_none'); ?></li>
+ <li id="sb_localplay_instances_none"<?php echo $class; ?>><?php echo Ajax::text('?page=localplay&action=set_instance&instance=0', T_('None'),'localplay_instance_none'); ?></li>
<?php
// Requires a little work.. :(
$instances = $localplay->get_instances();
@@ -65,13 +65,13 @@
</ul>
</li>
<?php } else { ?>
- <li><h4><?php echo _('Localplay Disabled'); ?></h4></li>
+ <li><h4><?php echo T_('Localplay Disabled'); ?></h4></li>
<?php if (!$server_allow) { ?>
- <li><?php echo _('Allow Localplay set to False'); ?></li>
+ <li><?php echo T_('Allow Localplay set to False'); ?></li>
<?php } elseif (!$controller) { ?>
- <li><?php echo _('Localplay Controller Not Defined'); ?></li>
+ <li><?php echo T_('Localplay Controller Not Defined'); ?></li>
<?php } elseif (!$access_check) { ?>
- <li><?php echo _('Access Denied'); ?></li>
+ <li><?php echo T_('Access Denied'); ?></li>
<?php } ?>
<?php } ?>
</ul>
diff --git a/templates/sidebar_modules.inc.php b/templates/sidebar_modules.inc.php
index 83e64568..7989f030 100644
--- a/templates/sidebar_modules.inc.php
+++ b/templates/sidebar_modules.inc.php
@@ -29,25 +29,25 @@
$ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
?>
<ul class="sb2" id="sb_modules">
-<li><h4><?php echo _('Modules'); ?></h4>
+<li><h4><?php echo T_('Modules'); ?></h4>
<ul class="sb3" id="sb_Modules">
- <li id="sb_preferences_mo_localplay"><a href="<?php echo $web_path; ?>/admin/modules.php?action=show_localplay"><?php echo _('Localplay Modules'); ?></a></li>
- <li id="sb_preferences_mo_plugins"><a href="<?php echo $web_path; ?>/admin/modules.php?action=show_plugins"><?php echo _('Available Plugins'); ?></a></li>
+ <li id="sb_preferences_mo_localplay"><a href="<?php echo $web_path; ?>/admin/modules.php?action=show_localplay"><?php echo T_('Localplay Modules'); ?></a></li>
+ <li id="sb_preferences_mo_plugins"><a href="<?php echo $web_path; ?>/admin/modules.php?action=show_plugins"><?php echo T_('Available Plugins'); ?></a></li>
</ul>
</li>
- <li><h4><?php echo _('Other Tools'); ?></h4>
+ <li><h4><?php echo T_('Other Tools'); ?></h4>
<ul class="sb3" id="sb_admin_ot">
- <li id="sb_admin_ot_Duplicates"><a href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo _('Find Duplicates'); ?></a></li>
- <li id="sb_admin_ot_Mail"><a href="<?php echo $web_path; ?>/admin/mail.php"><?php echo _('Mail Users'); ?></a></li>
- <li id="sb_admin_ot_ManageFlagged"><a href="<?php echo $web_path; ?>/admin/flag.php"><?php echo _('Manage Flagged'); ?></a></li>
- <li id="sb_admin_ot_ShowDisabled"><a href="<?php echo $web_path; ?>/admin/flag.php?action=show_disabled"><?php echo _('Show Disabled'); ?></a></li>
+ <li id="sb_admin_ot_Duplicates"><a href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo T_('Find Duplicates'); ?></a></li>
+ <li id="sb_admin_ot_Mail"><a href="<?php echo $web_path; ?>/admin/mail.php"><?php echo T_('Mail Users'); ?></a></li>
+ <li id="sb_admin_ot_ManageFlagged"><a href="<?php echo $web_path; ?>/admin/flag.php"><?php echo T_('Manage Flagged'); ?></a></li>
+ <li id="sb_admin_ot_ShowDisabled"><a href="<?php echo $web_path; ?>/admin/flag.php?action=show_disabled"><?php echo T_('Show Disabled'); ?></a></li>
</ul>
</li>
<!--
<?php if (Config::get('allow_democratic_playback')) { ?>
- <li><h4><?php echo _('Democratic'); ?></h4>
+ <li><h4><?php echo T_('Democratic'); ?></h4>
<ul class="sb3" id="sb_home_democratic">
- <li id="sb_home_democratic_playlist"><a href="<?php echo $web_path; ?>/democratic.php?action=manage_playlists"><?php echo _('Manage Playlist'); ?></a></li>
+ <li id="sb_home_democratic_playlist"><a href="<?php echo $web_path; ?>/democratic.php?action=manage_playlists"><?php echo T_('Manage Playlist'); ?></a></li>
</ul>
</li>
<?php } ?>
diff --git a/templates/sidebar_preferences.inc.php b/templates/sidebar_preferences.inc.php
index 46ce68c2..b18d6be8 100644
--- a/templates/sidebar_preferences.inc.php
+++ b/templates/sidebar_preferences.inc.php
@@ -33,16 +33,16 @@
$catagories = Preference::get_catagories();
?>
<ul class="sb2" id="sb_preferences">
- <li><h4><?php echo _('Preferences'); ?></h4>
+ <li><h4><?php echo T_('Preferences'); ?></h4>
<ul class="sb3" id="sb_preferences_sections">
<?php
foreach ($catagories as $name) {
if ($name == 'system') { continue; }
$f_name = ucfirst($name);
?>
- <li id="sb_preferences_sections_<?php echo $f_name; ?>"><a href="<?php echo $web_path; ?>/preferences.php?tab=<?php echo $name; ?>"><?php echo _($f_name); ?></a></li>
+ <li id="sb_preferences_sections_<?php echo $f_name; ?>"><a href="<?php echo $web_path; ?>/preferences.php?tab=<?php echo $name; ?>"><?php echo T_($f_name); ?></a></li>
<?php } ?>
- <li id="sb_preferences_sections_account"><a href="<?php echo $web_path; ?>/preferences.php?tab=account"><?php echo _('Account'); ?></a></li>
+ <li id="sb_preferences_sections_account"><a href="<?php echo $web_path; ?>/preferences.php?tab=account"><?php echo T_('Account'); ?></a></li>
</ul>
</li>
</ul>