summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 00:53:30 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 16:03:10 +0200
commit902289f2b3754b43e474cf5b5d3b0a4dbb7e7069 (patch)
tree2aa6b28d7e551a7de3990baa6d882cd8b47d045e
parentc1dfa22ebaacec3a6aa56d82cac59b883ba88317 (diff)
downloadmpv-902289f2b3754b43e474cf5b5d3b0a4dbb7e7069.tar.bz2
mpv-902289f2b3754b43e474cf5b5d3b0a4dbb7e7069.tar.xz
translation: remove \r and \n from translated PAUSE string
-rw-r--r--mplayer.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/mplayer.c b/mplayer.c
index cc6d79b051..097a9f4223 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2866,17 +2866,12 @@ static void pause_loop(struct MPContext *mpctx)
struct MPOpts *opts = &mpctx->opts;
mp_cmd_t* cmd;
if (!opts->quiet) {
- // Small hack to display the pause message on the OSD line.
- // The pause string is: "\n == PAUSE == \r" so we need to
- // take the first and the last char out
if (opts->term_osd && !mpctx->sh_video) {
- char msg[128] = _("\n ===== PAUSE =====\r");
- int mlen = strlen(msg);
- msg[mlen-1] = '\0';
- set_osd_msg(OSD_MSG_PAUSE, 1, 0, "%s", msg+1);
+ set_osd_tmsg(OSD_MSG_PAUSE, 1, 0, " ===== PAUSE =====");
update_osd_msg(mpctx);
} else
- mp_tmsg(MSGT_CPLAYER,MSGL_STATUS,"\n ===== PAUSE =====\r");
+ mp_msg(MSGT_CPLAYER, MSGL_STATUS, "%c%s%c",
+ '\n', mp_gtext(" ===== PAUSE ====="), '\r');
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n");
}