aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-06 17:57:46 +0100
committerMax Kellermann <max@duempel.org>2009-01-06 17:57:46 +0100
commitbdb3382cc7190a0ff8ddddf32e7998d4582e590c (patch)
treee6af5e9f7be55813c43bf06ad361491d8b69f453 /src/command.c
parentd33bf3168ac8771f95f3c414770fd935e1a61608 (diff)
downloadmpd-bdb3382cc7190a0ff8ddddf32e7998d4582e590c.tar.gz
mpd-bdb3382cc7190a0ff8ddddf32e7998d4582e590c.tar.xz
mpd-bdb3382cc7190a0ff8ddddf32e7998d4582e590c.zip
command: check_key_bindings() returns message without comment
The comment "press %s for the key editor" is only used by timer_check_key_bindings(), move it there. This lets us merge the two error messages in check_key_bindings() and eases the translator's work.
Diffstat (limited to '')
-rw-r--r--src/command.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/command.c b/src/command.c
index 35efb0ccb..685fa7056 100644
--- a/src/command.c
+++ b/src/command.c
@@ -481,20 +481,11 @@ check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
if (cp[i].keys[j] &&
(cmd = find_key_command(cp[i].keys[j],cp)) != cp[i].command) {
if (buf) {
-#ifdef ENABLE_KEYDEF_SCREEN
- g_snprintf(buf, bufsize,
- _("Key %s assigned to %s and %s (press %s for the key editor)"),
- key2str(cp[i].keys[j]),
- get_key_command_name(cp[i].command),
- get_key_command_name(cmd),
- get_key_names(CMD_SCREEN_KEYDEF,0));
-#else
g_snprintf(buf, bufsize,
_("Key %s assigned to %s and %s\n"),
key2str(cp[i].keys[j]),
get_key_command_name(cp[i].command),
get_key_command_name(cmd));
-#endif
} else
fprintf(stderr,
_("Key %s assigned to %s and %s\n"),