summaryrefslogtreecommitdiffstats
path: root/artists.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-03-31 17:01:04 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-04-12 21:13:29 -0400
commitf65076b93d91fe9718cf9bef37638d64290b9f28 (patch)
tree40fbc65baffab34971d8c7b685ef9c99e0f4014f /artists.php
parent15457b16f17a141fa76a3b9882892362b601787c (diff)
downloadampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2
ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to write a quick T_() as a simple wrapper; it's not so easy to rewrite PHP to allow redeclaration of a function.
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/artists.php b/artists.php
index 7f57df4c..c7a75b73 100644
--- a/artists.php
+++ b/artists.php
@@ -75,20 +75,20 @@ switch($_REQUEST['action']) {
$that_artist->merge($artist->id);
$count++;
} else
- $GLOBALS['error']->add_error('general', sprintf(_('Error: No such artist \'%s\''), $artist_id));
+ $GLOBALS['error']->add_error('general', sprintf(T_('Error: No such artist \'%s\''), $artist_id));
} else {
- $GLOBALS['error']->add_error('general', sprintf(_('Error: \'%s\' is not a valid ID'), $artist_id));
+ $GLOBALS['error']->add_error('general', sprintf(T_('Error: \'%s\' is not a valid ID'), $artist_id));
}
}
else
- $GLOBALS['error']->add_error('general', sprintf(_('Error: No such artist \'%s\''), $_REQUEST['artist']));
+ $GLOBALS['error']->add_error('general', sprintf(T_('Error: No such artist \'%s\''), $_REQUEST['artist']));
} else {
- $GLOBALS['error']->add_error('general',_("Error: Errenous request"));
+ $GLOBALS['error']->add_error('general', T_("Error: Errenous request"));
}
if ($count > 0) {
show_confirmation (
- _('Renamed artist(s)'),
- sprintf(_('%1$s artists have been merged with %2$s'), $count, $artist->name),
+ T_('Renamed artist(s)'),
+ sprintf(T_('%1$s artists have been merged with %2$s'), $count, $artist->name),
conf('web_path') . "/artists.php?action=show&artist=" . $artist->id
);
} else {
@@ -167,8 +167,8 @@ switch($_REQUEST['action']) {
// show something other than a blank screen after this
if ($ret) {
show_confirmation (
- _('Renamed artist'),
- sprintf(_('%1$s is now known as %2$s'), $artist->name, $newname),
+ T_('Renamed artist'),
+ sprintf(T_('%1$s is now known as %2$s'), $artist->name, $newname),
conf('web_path') . "/artists.php?action=show&artist=" . $newid
);
}
@@ -192,7 +192,7 @@ switch($_REQUEST['action']) {
/* Enclose this in the purty box! */
require (conf('prefix') . '/templates/show_box_top.inc.php');
show_alphabet_list('artists','artists.php',$match);
- show_alphabet_form($chr,_('Show Artists starting with'),"artists.php?action=match");
+ show_alphabet_form($chr, T_('Show Artists starting with'),"artists.php?action=match");
require (conf('prefix') . '/templates/show_box_bottom.inc.php');
if ($match === "Browse") {