diff --git a/src/conf.c b/src/conf.c
index 6d4bf887662f8d9d89796b1426369544bfb68fa3..2b63b9b3623162f1ef4eeca9c40312fec5555b56 100644 (file)
--- a/src/conf.c
+++ b/src/conf.c
while (i < len && str[i] != '=' && !g_ascii_isspace(str[i]))
buf[j++] = str[i++];
if( (cmd=get_key_command_from_name(buf)) == CMD_NONE ) {
+ /* the hotkey configuration contains an unknown
+ command */
print_error(_("Unknown command"), buf);
return -1;
}
memset(buf, 0, MAX_LINE_LENGTH);
g_strlcpy(buf, str+i, MAX_LINE_LENGTH);
if (*buf == 0) {
+ /* the hotkey configuration line is incomplete */
print_error(_("Incomplete hotkey configuration"), str);
return -1;
}
if (!strcmp(str,"elapsed") || !strcmp(str,"remaining"))
return str;
else {
+ /* translators: ncmpc supports displaying the
+ "elapsed" or "remaining" time of a song being
+ played; in this case, the configuration file
+ contained an invalid setting */
print_error(_("Bad time display type"), str);
return DEFAULT_TIMEDISPLAY_TYPE;
}
value = strchr(p, '=');
if (value == NULL) {
+ /* an equals sign '=' was expected while parsing a
+ configuration file line */
fprintf(stderr, "%s\n", _("Missing '='"));
return NULL;
}
while( tmp && tmp[i] ) {
char *name = g_ascii_strdown(tmp[i], -1);
if (screen_lookup_name(name) == NULL) {
+ /* an unknown screen name was specified in the
+ configuration file */
print_error(_("Unknown screen name"), name);
free(name);
} else {