From: Max Kellermann Date: Tue, 18 Nov 2008 20:49:34 +0000 (+0100) Subject: screen_lyrics: added gettext markers X-Git-Tag: v0.12_beta1~49 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=708615687ffff3e45b8f5aced9c114daab59c55a;p=ncmpc.git screen_lyrics: added gettext markers --- diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 6d9c6e4..f98e669 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