Code

screen_lyrics: added gettext markers
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:49:34 +0000 (21:49 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:49:34 +0000 (21:49 +0100)
src/screen_lyrics.c

index 6d9c6e4af03ab96a700c0dc647f9d8ed0d114423..f98e6692b817f192d8f1cbfefa2e311ffad53760 100644 (file)
@@ -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