aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-06 18:19:29 +0100
committerMax Kellermann <max@duempel.org>2009-01-06 18:19:29 +0100
commitcc9502576b1fb669b71ddf3f772a567d55789928 (patch)
tree4ec4749754870a06e92c7b5d92b96f459f47b83d /src
parentbdb3382cc7190a0ff8ddddf32e7998d4582e590c (diff)
downloadmpd-cc9502576b1fb669b71ddf3f772a567d55789928.tar.gz
mpd-cc9502576b1fb669b71ddf3f772a567d55789928.tar.xz
mpd-cc9502576b1fb669b71ddf3f772a567d55789928.zip
removed newline from translatable strings
Don't make translators deal with newlines.
Diffstat (limited to 'src')
-rw-r--r--src/colors.c6
-rw-r--r--src/command.c8
-rw-r--r--src/screen_browser.c6
3 files changed, 12 insertions, 8 deletions
diff --git a/src/colors.c b/src/colors.c
index 43fe8d478..14c7cc762 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -236,7 +236,8 @@ colors_start(void)
list = list->next;
}
} else if (color_definition_list && !can_change_color())
- fprintf(stderr, _("Terminal lacks support for changing colors\n"));
+ fprintf(stderr, "%s\n",
+ _("Terminal lacks support for changing colors"));
if (options.enable_colors) {
enum color i;
@@ -246,7 +247,8 @@ colors_start(void)
colors_update_pair(i);
}
} else if (options.enable_colors) {
- fprintf(stderr, _("Terminal lacks color capabilities\n"));
+ fprintf(stderr, "%s\n",
+ _("Terminal lacks color capabilities"));
options.enable_colors = 0;
}
diff --git a/src/command.c b/src/command.c
index 685fa7056..2f3bafd85 100644
--- a/src/command.c
+++ b/src/command.c
@@ -482,16 +482,18 @@ check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
(cmd = find_key_command(cp[i].keys[j],cp)) != cp[i].command) {
if (buf) {
g_snprintf(buf, bufsize,
- _("Key %s assigned to %s and %s\n"),
+ _("Key %s assigned to %s and %s"),
key2str(cp[i].keys[j]),
get_key_command_name(cp[i].command),
get_key_command_name(cmd));
- } else
+ } else {
fprintf(stderr,
- _("Key %s assigned to %s and %s\n"),
+ _("Key %s assigned to %s and %s"),
key2str(cp[i].keys[j]),
get_key_command_name(cp[i].command),
get_key_command_name(cmd));
+ fputc('\n', stderr);
+ }
cp[i].flags |= COMMAND_KEY_CONFLICT;
set_key_flags(cp, cmd, COMMAND_KEY_CONFLICT);
retval = -1;
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 5118f8816..fcc8ddb83 100644
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
@@ -258,7 +258,7 @@ enqueue_and_play(mpdclient_t *c, filelist_entry_t *entry)
entry->flags |= HIGHLIGHT;
#endif
strfsong(buf, BUFSIZE, options.list_format, song);
- screen_status_printf(_("Adding \'%s\' to playlist\n"), buf);
+ screen_status_printf(_("Adding \'%s\' to playlist"), buf);
mpdclient_update(c); /* get song id */
} else
return false;
@@ -368,7 +368,7 @@ browser_select_entry(mpdclient_t *c, filelist_entry_t *entry,
if (mpdclient_cmd_add_path(c, dir->path) == 0) {
char *tmp = utf8_to_locale(dir->path);
- screen_status_printf(_("Adding \'%s\' to playlist\n"), tmp);
+ screen_status_printf(_("Adding \'%s\' to playlist"), tmp);
g_free(tmp);
}
#endif
@@ -394,7 +394,7 @@ browser_select_entry(mpdclient_t *c, filelist_entry_t *entry,
char buf[BUFSIZE];
strfsong(buf, BUFSIZE, options.list_format, song);
- screen_status_printf(_("Adding \'%s\' to playlist\n"), buf);
+ screen_status_printf(_("Adding \'%s\' to playlist"), buf);
}
#ifndef NCMPC_MINI
} else {