mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
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.
This commit is contained in:
parent
5234c72e28
commit
b34a88e4f4
@ -471,27 +471,28 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
return AF_ERROR;
|
||||
}
|
||||
if (s->scale_nominal <= 0) {
|
||||
mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] "
|
||||
_("error parsing command line") ": " _("value out of range")
|
||||
": scale > 0\n");
|
||||
mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] %s: %s: scale > 0\n",
|
||||
mp_gtext("error parsing command line"),
|
||||
mp_gtext("value out of range"));
|
||||
return AF_ERROR;
|
||||
}
|
||||
if (s->ms_stride <= 0) {
|
||||
mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] "
|
||||
_("error parsing command line") ": " _("value out of range")
|
||||
": stride > 0\n");
|
||||
mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] %s: %s: stride > 0\n",
|
||||
mp_gtext("error parsing command line"),
|
||||
mp_gtext("value out of range"));
|
||||
return AF_ERROR;
|
||||
}
|
||||
if (s->percent_overlap < 0 || s->percent_overlap > 1) {
|
||||
mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] "
|
||||
_("error parsing command line") ": " _("value out of range")
|
||||
": 0 <= overlap <= 1\n");
|
||||
mp_msg(MSGT_AFILTER, MSGL_ERR,
|
||||
"[scaletempo] %s: %s: 0 <= overlap <= 1\n",
|
||||
mp_gtext("error parsing command line"),
|
||||
mp_gtext("value out of range"));
|
||||
return AF_ERROR;
|
||||
}
|
||||
if (s->ms_search < 0) {
|
||||
mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] "
|
||||
_("error parsing command line") ": " _("value out of range")
|
||||
": search >= 0\n");
|
||||
mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] %s: %s: search >= 0\n",
|
||||
mp_gtext("error parsing command line"),
|
||||
mp_gtext("value out of range"));
|
||||
return AF_ERROR;
|
||||
}
|
||||
if (speed.len > 0) {
|
||||
@ -508,9 +509,10 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
s->speed_tempo = 1;
|
||||
s->speed_pitch = 1;
|
||||
} else {
|
||||
mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] "
|
||||
_("error parsing command line") ": " _("value out of range")
|
||||
": speed=[pitch|tempo|none|both]\n");
|
||||
mp_msg(MSGT_AFILTER, MSGL_ERR,
|
||||
"[scaletempo] %s: %s: speed=[pitch|tempo|none|both]\n",
|
||||
mp_gtext("error parsing command line"),
|
||||
mp_gtext("value out of range"));
|
||||
return AF_ERROR;
|
||||
}
|
||||
}
|
||||
|
@ -489,15 +489,16 @@ vf_instance_t* vf_open_filter(struct MPOpts *opts, vf_instance_t* next, const ch
|
||||
p += sprintf(str,"%s",name);
|
||||
for(i = 0 ; args && args[2*i] ; i++)
|
||||
p += sprintf(p," %s=%s",args[2*i],args[2*i+1]);
|
||||
mp_tmsg(MSGT_VFILTER,MSGL_INFO,"Opening video filter: " "[%s]\n",str);
|
||||
mp_msg(MSGT_VFILTER, MSGL_INFO, "%s[%s]\n",
|
||||
mp_gtext("Opening video filter: "), str);
|
||||
}
|
||||
} else if(strcmp(name,"vo")) {
|
||||
if(args && strcmp(args[0],"_oldargs_") == 0)
|
||||
mp_tmsg(MSGT_VFILTER,MSGL_INFO,"Opening video filter: "
|
||||
"[%s=%s]\n", name,args[1]);
|
||||
mp_msg(MSGT_VFILTER, MSGL_INFO, "%s[%s=%s]\n",
|
||||
mp_gtext("Opening video filter: "), name, args[1]);
|
||||
else
|
||||
mp_tmsg(MSGT_VFILTER,MSGL_INFO,"Opening video filter: "
|
||||
"[%s]\n", name);
|
||||
mp_msg(MSGT_VFILTER, MSGL_INFO, "%s[%s]\n",
|
||||
mp_gtext("Opening video filter: "), name);
|
||||
}
|
||||
return vf_open_plugin(opts, filter_list,next,name,args);
|
||||
}
|
||||
|
@ -642,7 +642,8 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer)
|
||||
// demuxer->endpos=avi_header.movi_end;
|
||||
if(demuxer->video->id != -2) {
|
||||
if(!ds_fill_buffer(demuxer->video)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_WARN,"ASF: " "No video stream found.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_WARN, "ASF: %s",
|
||||
mp_gtext("No video stream found.\n"));
|
||||
demuxer->video->sh=NULL;
|
||||
//printf("ASF: missing video stream!? contact the author, it may be a bug :(\n");
|
||||
} else {
|
||||
@ -659,7 +660,8 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer)
|
||||
if(demuxer->audio->id!=-2){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_V,"ASF: Searching for audio stream (id:%d).\n",demuxer->audio->id);
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"ASF: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "ASF: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
demuxer->audio->sh=NULL;
|
||||
} else {
|
||||
sh_audio=demuxer->audio->sh;sh_audio->ds=demuxer->audio;
|
||||
|
@ -492,7 +492,8 @@ static demuxer_t* demux_open_avi(demuxer_t* demuxer){
|
||||
}
|
||||
}
|
||||
if(v_pos==-1){
|
||||
mp_tmsg(MSGT_DEMUX,MSGL_ERR,"AVI_NI: " "No video stream found.\n");
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "AVI_NI: %s",
|
||||
mp_gtext("No video stream found.\n"));
|
||||
return NULL;
|
||||
}
|
||||
if(a_pos==-1){
|
||||
@ -518,14 +519,17 @@ static demuxer_t* demux_open_avi(demuxer_t* demuxer){
|
||||
demuxer->seekable=0;
|
||||
}
|
||||
if(!ds_fill_buffer(d_video)){
|
||||
mp_tmsg(MSGT_DEMUX,MSGL_ERR,"AVI: " "Missing video stream!? Contact the author, it may be a bug :(\n");
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "AVI: %s",
|
||||
mp_gtext("Missing video stream!? Contact the author, "
|
||||
"it may be a bug :(\n"));
|
||||
return NULL;
|
||||
}
|
||||
sh_video=d_video->sh;sh_video->ds=d_video;
|
||||
if(d_audio->id!=-2){
|
||||
mp_msg(MSGT_DEMUX,MSGL_V,"AVI: Searching for audio stream (id:%d)\n",d_audio->id);
|
||||
if(!priv->audio_streams || !ds_fill_buffer(d_audio)){
|
||||
mp_tmsg(MSGT_DEMUX,MSGL_INFO,"AVI: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "AVI: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
d_audio->sh=sh_audio=NULL;
|
||||
} else {
|
||||
sh_audio=d_audio->sh;sh_audio->ds=d_audio;
|
||||
|
@ -344,14 +344,16 @@ static demuxer_t* demux_open_lmlm4(demuxer_t* demuxer){
|
||||
demuxer->seekable = 0;
|
||||
|
||||
if(!ds_fill_buffer(demuxer->video)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"LMLM4: " "No video stream found.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "LMLM4: %s",
|
||||
mp_gtext("No video stream found.\n"));
|
||||
demuxer->video->sh=NULL;
|
||||
} else {
|
||||
sh_video=demuxer->video->sh;sh_video->ds=demuxer->video;
|
||||
}
|
||||
if(demuxer->audio->id!=-2) {
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"LMLM4: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "LMLM4: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
demuxer->audio->sh=NULL;
|
||||
} else {
|
||||
sh_audio=demuxer->audio->sh;sh_audio->ds=demuxer->audio;
|
||||
|
@ -726,7 +726,8 @@ static int demux_mpg_probe(demuxer_t *demuxer) {
|
||||
} else
|
||||
{
|
||||
if(demuxer->synced==2)
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_ERR,"MPEG: " "Missing video stream!? Contact the author, it may be a bug :(\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_ERR, "MPEG: %s",
|
||||
mp_gtext("Missing video stream!? Contact the author, it may be a bug :(\n"));
|
||||
else
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_V,"Not MPEG System Stream format... (maybe Transport Stream?)\n");
|
||||
}
|
||||
@ -1102,7 +1103,8 @@ static demuxer_t* demux_mpg_ps_open(demuxer_t* demuxer)
|
||||
|
||||
if(demuxer->audio->id!=-2) {
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"MPEG: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "MPEG: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
demuxer->audio->sh=NULL;
|
||||
} else {
|
||||
sh_audio=demuxer->audio->sh;sh_audio->ds=demuxer->audio;
|
||||
|
@ -1740,13 +1740,15 @@ header_end:
|
||||
if(demuxer->video->id==-1 && v_streams>0){
|
||||
// find the valid video stream:
|
||||
if(!ds_fill_buffer(demuxer->video)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"RM: " "No video stream found.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "RM: %s",
|
||||
mp_gtext("No video stream found.\n"));
|
||||
}
|
||||
}
|
||||
if(demuxer->audio->id==-1 && a_streams>0){
|
||||
// find the valid audio stream:
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"RM: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "RM: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -871,7 +871,8 @@ static demuxer_t* demux_open_ty(demuxer_t* demuxer)
|
||||
|
||||
if(demuxer->audio->id!=-2) {
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUXER,MSGL_INFO,"MPEG: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, "MPEG: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
demuxer->audio->sh=NULL;
|
||||
} else {
|
||||
sh_audio=demuxer->audio->sh;sh_audio->ds=demuxer->audio;
|
||||
|
@ -562,7 +562,8 @@ static demuxer_t* demux_open_vivo(demuxer_t* demuxer){
|
||||
vivo_priv_t* priv=demuxer->priv;
|
||||
|
||||
if(!ds_fill_buffer(demuxer->video)){
|
||||
mp_tmsg(MSGT_DEMUX,MSGL_ERR,"VIVO: " "Missing video stream!? Contact the author, it may be a bug :(\n");
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "VIVO: %s",
|
||||
mp_gtext("Missing video stream!? Contact the author, it may be a bug :(\n"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -645,7 +646,8 @@ static demuxer_t* demux_open_vivo(demuxer_t* demuxer){
|
||||
/* AUDIO init */
|
||||
if (demuxer->audio->id >= -1){
|
||||
if(!ds_fill_buffer(demuxer->audio)){
|
||||
mp_tmsg(MSGT_DEMUX,MSGL_ERR,"VIVO: " "No audio stream found -> no sound.\n");
|
||||
mp_msg(MSGT_DEMUX, MSGL_ERR, "VIVO: %s",
|
||||
mp_gtext("No audio stream found -> no sound.\n"));
|
||||
} else
|
||||
{ sh_audio_t* sh=new_sh_audio(demuxer,1);
|
||||
|
||||
|
@ -34,7 +34,8 @@ static muxer_stream_t* rawaudiofile_new_stream(muxer_t *muxer,int type){
|
||||
muxer_stream_t* s;
|
||||
if (!muxer) return NULL;
|
||||
if(type==MUXER_TYPE_AUDIO && muxer->avih.dwStreams>=1){
|
||||
mp_tmsg(MSGT_MUXER,MSGL_ERR,"Too many streams!"" ""Rawaudio muxer supports only one audio stream!\n");
|
||||
mp_msg(MSGT_MUXER, MSGL_ERR, "%s %s", mp_gtext("Too many streams!"),
|
||||
mp_gtext("Rawaudio muxer supports only one audio stream!\n"));
|
||||
return NULL;
|
||||
}
|
||||
s=malloc(sizeof(muxer_stream_t));
|
||||
|
@ -820,9 +820,10 @@ static void exit_sighandler(int x){
|
||||
kill(getpid(),SIGKILL);
|
||||
#endif
|
||||
}
|
||||
mp_tmsg(MSGT_CPLAYER,MSGL_FATAL,"\n" "\nMPlayer interrupted by signal %d in module: %s\n",x,
|
||||
current_module?current_module:"unknown"
|
||||
);
|
||||
mp_msg(MSGT_CPLAYER, MSGL_FATAL, "\n");
|
||||
mp_tmsg(MSGT_CPLAYER,MSGL_FATAL,
|
||||
"\nMPlayer interrupted by signal %d in module: %s\n", x,
|
||||
current_module ? current_module : "unknown");
|
||||
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SIGNAL=%d\n", x);
|
||||
if(sig_count<=1)
|
||||
switch(x){
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user