aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-18 21:49:34 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 21:49:34 +0100
commit708615687ffff3e45b8f5aced9c114daab59c55a (patch)
tree483aa1f8996b98734aff04804dfe74d1309b7b82
parent2126ae2efb6141fbd0d117dd9f7a4a8f6fa3ae2e (diff)
downloadmpd-708615687ffff3e45b8f5aced9c114daab59c55a.tar.gz
mpd-708615687ffff3e45b8f5aced9c114daab59c55a.tar.xz
mpd-708615687ffff3e45b8f5aced9c114daab59c55a.zip
screen_lyrics: added gettext markers
Diffstat (limited to '')
-rw-r--r--src/screen_lyrics.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 6d9c6e4af..f98e6692b 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -278,15 +278,18 @@ lyrics_open(mpdclient_t *c)
static const char *
lyrics_title(char *str, size_t size)
{
- if (current.loader != NULL)
- return "Lyrics (loading)";
- else if (current.artist != NULL && current.title != NULL &&
- current.lines->len > 0) {
- snprintf(str, size, "Lyrics: %s - %s",
+ if (current.loader != NULL) {
+ snprintf(str, size, "%s (%s)",
+ _("Lyrics"), _("loading..."));
+ return str;
+ } else if (current.artist != NULL && current.title != NULL &&
+ current.lines->len > 0) {
+ snprintf(str, size, "%s: %s - %s",
+ _("Lyrics"),
current.artist, current.title);
return str;
} else
- return "Lyrics";
+ return _("Lyrics");
}
static void