From: Max Kellermann Date: Mon, 20 Mar 2017 20:00:58 +0000 (+0100) Subject: colors: simplify i18n strings X-Git-Tag: v0.27~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=efba35e8f4e4f5c38a64721c5f79e26fb65fd631;p=ncmpc.git colors: simplify i18n strings --- diff --git a/src/colors.c b/src/colors.c index 0c79e13..2c1a2d0 100644 --- a/src/colors.c +++ b/src/colors.c @@ -152,7 +152,8 @@ colors_str2color(const char *str) if (cur != endptr && endptr[0] == '\0') { color |= tmp; } else { - fprintf(stderr,_("Warning: Unknown color - %s\n"), str); + fprintf(stderr, "%s: %s\n", + _("Unknown color"), str); return COLOR_ERROR; } } @@ -191,7 +192,8 @@ colors_assign(const char *name, const char *value) color_entry_t *entry = colors_lookup_by_name(name); if (!entry) { - fprintf(stderr,_("Warning: Unknown color field - %s\n"), name); + fprintf(stderr, "%s: %s", + _("Unknown color field"), name); return -1; }