summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-07 19:25:52 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-07 21:35:23 +0200
commitb34a88e4f44ee2a926c8c30f8fb3954fc7d71b90 (patch)
treecb056d99378f7a00fb64f4ddd2598f50938f8833 /stream
parent5234c72e28c27e232a35ebcbadc50c5933cccf7d (diff)
downloadmpv-b34a88e4f44ee2a926c8c30f8fb3954fc7d71b90.tar.bz2
mpv-b34a88e4f44ee2a926c8c30f8fb3954fc7d71b90.tar.xz
translations: tweak cases that relied on concatenating adjacent strings
Tweak some code parts that used to rely on string literals from translation macros being concatenated with other adjacent string literals. Break up the resulting string into independently translated parts, so that the existing translations for those parts can still be used.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c3
-rw-r--r--stream/stream_vcd.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index 33b8e84764..fe36b22d51 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -570,7 +570,8 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
ret2=cue_vcd_get_track_end(track);
ret=cue_vcd_seek_to_track(track);
if(ret<0){
- mp_tmsg(MSGT_OPEN,MSGL_ERR,"Error selecting VCD track." " (seek)\n");
+ mp_msg(MSGT_OPEN, MSGL_ERR, "%s (seek)\n",
+ mp_gtext("Error selecting VCD track."));
return STREAM_UNSUPPORTED;
}
mp_tmsg(MSGT_OPEN,MSGL_INFO,"CUE stream_open, filename=%s, track=%d, available tracks: %d -> %d\n", filename, track, ret, ret2);
diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c
index 324075d16f..a7f77e193b 100644
--- a/stream/stream_vcd.c
+++ b/stream/stream_vcd.c
@@ -126,7 +126,8 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
}
ret2=vcd_get_track_end(vcd,p->track);
if(ret2<0){
- mp_tmsg(MSGT_OPEN,MSGL_ERR,"Error selecting VCD track." " (get)\n");
+ mp_msg(MSGT_OPEN, MSGL_ERR, "%s (get)\n",
+ mp_gtext("Error selecting VCD track."));
close(f);
free(vcd);
m_struct_free(&stream_opts,opts);
@@ -134,7 +135,8 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
}
ret=vcd_seek_to_track(vcd,p->track);
if(ret<0){
- mp_tmsg(MSGT_OPEN,MSGL_ERR,"Error selecting VCD track." " (seek)\n");
+ mp_msg(MSGT_OPEN, MSGL_ERR, "%s (seek)\n",
+ mp_gtext("Error selecting VCD track."));
close(f);
free(vcd);
m_struct_free(&stream_opts,opts);