aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_artist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 11:57:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 11:57:00 +0200
commit547b0c5f28be1e830c00ac167806ffba641855c6 (patch)
tree26cf54557089794fbd55499a741a4f0bcd48e2db /src/screen_artist.c
parent4ca0f663a918fc04389ff4351b596209902bd11c (diff)
downloadmpd-547b0c5f28be1e830c00ac167806ffba641855c6.tar.gz
mpd-547b0c5f28be1e830c00ac167806ffba641855c6.tar.xz
mpd-547b0c5f28be1e830c00ac167806ffba641855c6.zip
screen_artist: better screen title
The artist screen shouldn't be marked "experimental" anymore. Describe the current state of the screen in the title, instead of always writing "Artist".
Diffstat (limited to 'src/screen_artist.c')
-rw-r--r--src/screen_artist.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c
index e488a3a08..86291d87d 100644
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
@@ -374,23 +374,29 @@ get_title(char *str, size_t size)
switch(mode) {
case LIST_ARTISTS:
- g_snprintf(str, size, _("Artist: [db browser - EXPERIMENTAL]"));
+ g_snprintf(str, size, _("All artists"));
break;
+
case LIST_ALBUMS:
s1 = utf8_to_locale(artist);
- g_snprintf(str, size, _("Artist: %s"), s1);
+ g_snprintf(str, size, _("Albums of artist: %s"), s1);
g_free(s1);
break;
+
case LIST_SONGS:
s1 = utf8_to_locale(artist);
- s2 = *album == 0
- ? g_strdup(_("All tracks"))
- : utf8_to_locale(album);
- g_snprintf(str, size, _("Artist: %s - %s"), s1, s2);
+ if (*album != 0) {
+ s2 = utf8_to_locale(album);
+ g_snprintf(str, size,
+ _("Album: %s - %s"), s1, s2);
+ g_free(s2);
+ } else
+ g_snprintf(str, size,
+ _("All tracks of artist: %s"), s1);
g_free(s1);
- g_free(s2);
break;
}
+
return str;
}