diff options
author | 2001-08-18 20:32:09 +0000 | |
---|---|---|
committer | 2001-08-18 20:32:09 +0000 | |
commit | a093da7e40363951a5bfc3e612a176a9c420275a (patch) | |
tree | 70b111c8382a6157086209b748dfcae4629c7b52 /open.c | |
parent | 3c6fb12ef1db6f56cf65202205c13078e74742e6 (diff) |
more messages for translator :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1585 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'open.c')
-rw-r--r-- | open.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -7,6 +7,7 @@ #include "config.h" #include "mp_msg.h" +#include "help_mp.h" #ifdef __FreeBSD__ #include <sys/cdrio.h> @@ -40,12 +41,12 @@ int bsize = VCD_SECTOR_SIZE; if(vcd_track){ int ret,ret2; f=open(filename,O_RDONLY); - if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,"CD-ROM Device '%s' not found!\n",filename);return NULL; } + if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CdDevNotfound,filename);return NULL; } vcd_read_toc(f); ret2=vcd_get_track_end(f,vcd_track); - if(ret2<0){ mp_msg(MSGT_OPEN,MSGL_ERR,"Error selecting VCD track! (get)\n");return NULL;} + if(ret2<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (get)\n");return NULL;} ret=vcd_seek_to_track(f,vcd_track); - if(ret<0){ mp_msg(MSGT_OPEN,MSGL_ERR,"Error selecting VCD track! (seek)\n");return NULL;} + if(ret<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (seek)\n");return NULL;} // seek_to_byte+=ret; mp_msg(MSGT_OPEN,MSGL_V,"VCD start byte position: 0x%X end: 0x%X\n",ret,ret2); #ifdef VCD_CACHE @@ -65,7 +66,7 @@ if(vcd_track){ //============ Open STDIN ============ if(!strcmp(filename,"-")){ // read from stdin - mp_msg(MSGT_OPEN,MSGL_INFO,"Reading from stdin...\n"); + mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN); f=0; // 0=stdin stream=new_stream(f,STREAMTYPE_STREAM); return stream; @@ -76,13 +77,13 @@ if(vcd_track){ if(url) { (*file_format)=autodetectProtocol( url, &f ); if( (*file_format)==DEMUXER_TYPE_UNKNOWN ) { - mp_msg(MSGT_OPEN,MSGL_ERR,"Unable to open URL: %s\n", filename); + mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename); url_free(url); return NULL; } f=streaming_start( &url, f, file_format ); - if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,"Unable to open URL: %s\n", url->url); return NULL; } - mp_msg(MSGT_OPEN,MSGL_INFO,"Connected to server: %s\n", url->hostname ); + if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->url); return NULL; } + mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname ); stream=new_stream(f,STREAMTYPE_STREAM); return NULL; } @@ -90,7 +91,7 @@ if(vcd_track){ //============ Open plain FILE ============ f=open(filename,O_RDONLY); - if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,"File not found: '%s'\n",filename);return NULL; } + if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; } len=lseek(f,0,SEEK_END); lseek(f,0,SEEK_SET); if (len == -1) perror("Error: lseek failed to obtain video file size"); |