summaryrefslogtreecommitdiffstats
path: root/artists.php
diff options
context:
space:
mode:
authormomo-i <webmaster@momo-i.org>2011-02-03 14:03:16 +0900
committermomo-i <webmaster@momo-i.org>2011-02-03 14:03:16 +0900
commit9ce63661d1ce941dee468cec6fe197534a636f40 (patch)
tree2c89d117befdad5dfab8948979897a39d667db48 /artists.php
parent7ef24e84c6986a07be5144df4b67186f78f99d61 (diff)
downloadampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.gz
ampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.bz2
ampache-9ce63661d1ce941dee468cec6fe197534a636f40.zip
Fixed indent and add translation words
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/artists.php b/artists.php
index f4e611f0..ee02589a 100644
--- a/artists.php
+++ b/artists.php
@@ -55,14 +55,13 @@ switch($_REQUEST['action']) {
}
break;
case 'show_all_songs':
- $artist = new Artist($_REQUEST['artist']);
+ $artist = new Artist($_REQUEST['artist']);
$artist->format();
$object_type = 'song';
$object_ids = $artist->get_songs();
require_once Config::get('prefix') . '/templates/show_artist.inc.php';
break;
case 'update_from_tags':
-
$type = 'artist';
$object_id = intval($_REQUEST['artist']);
$target_url = Config::get('web_path') . "/artists.php?action=show&amp;artist=" . $object_id;
@@ -93,8 +92,8 @@ switch($_REQUEST['action']) {
}
if ($count > 0) {
show_confirmation (
- "Renamed artist(s)",
- "$count artists have been merged with " . $artist->name,
+ _('Renamed artist(s)'),
+ sprintf(_('%1$s artists have been merged with %2$s'), $count, $artist->name),
conf('web_path') . "/artists.php?action=show&artist=" . $artist->id
);
} else {
@@ -173,8 +172,8 @@ switch($_REQUEST['action']) {
// show something other than a blank screen after this
if ($ret) {
show_confirmation (
- "Renamed artist",
- $artist->name . " is now known as " . $newname,
+ _('Renamed artist'),
+ sprintf(_('%1$s is now known as %2$s'), $artist->name, $newname),
conf('web_path') . "/artists.php?action=show&artist=" . $newid
);
}