summaryrefslogtreecommitdiffstats
path: root/libmpdemux/cue_read.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 21:33:12 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 21:33:12 +0000
commit8318fcd06b7e2e94a2ef309f0ae3ed8890adc01d (patch)
treeb9bf14e369b00ff68fc2825b60a09c540a08f586 /libmpdemux/cue_read.c
parent09ed4549ebf56596a637586b5c5e99c1d361caa8 (diff)
downloadmpv-8318fcd06b7e2e94a2ef309f0ae3ed8890adc01d.tar.bz2
mpv-8318fcd06b7e2e94a2ef309f0ae3ed8890adc01d.tar.xz
[TRIVIAL] More translatables to help_mp and printfs to mp_msg on libmpdemux
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16968 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/cue_read.c')
-rw-r--r--libmpdemux/cue_read.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/libmpdemux/cue_read.c b/libmpdemux/cue_read.c
index 1786693a63..46ef5f3652 100644
--- a/libmpdemux/cue_read.c
+++ b/libmpdemux/cue_read.c
@@ -11,7 +11,7 @@
#include "config.h"
#include "mp_msg.h"
-//#include "help_mp.h"
+#include "help_mp.h"
#include "stream.h"
@@ -150,7 +150,7 @@ static int cue_getTrackinfo(char *Line, tTrack *track)
else if (strncmp(&Line[4], "PREGAP ", 7)==0) { ; /* ignore */ }
else if (strncmp(&Line[4], "FLAGS ", 6)==0) { ; /* ignore */ }
else mp_msg (MSGT_OPEN,MSGL_INFO,
- "[bincue] Unexpected cuefile line: %s\n", Line);
+ MSGTR_MPDEMUX_CUEREAD_UnexpectedCuefileLine, Line);
}
return(0);
}
@@ -201,7 +201,7 @@ static int cue_find_bin (char *firstline) {
fd_bin = open (bin_filename, O_RDONLY);
if (fd_bin == -1)
{
- mp_msg(MSGT_OPEN,MSGL_STATUS, "[bincue] bin filename tested: %s\n",
+ mp_msg(MSGT_OPEN,MSGL_STATUS, MSGTR_MPDEMUX_CUEREAD_BinFilenameTested,
bin_filename);
/* now try to find it with the path of the cue file */
@@ -210,7 +210,7 @@ static int cue_find_bin (char *firstline) {
if (fd_bin == -1)
{
mp_msg(MSGT_OPEN,MSGL_STATUS,
- "[bincue] bin filename tested: %s\n", s);
+ MSGTR_MPDEMUX_CUEREAD_BinFilenameTested, s);
/* now I would say the whole filename is shit, build our own */
strncpy(s, cue_filename, strlen(cue_filename) - 3 );
s[strlen(cue_filename) - 3] = '\0';
@@ -219,7 +219,7 @@ static int cue_find_bin (char *firstline) {
if (fd_bin == -1)
{
mp_msg(MSGT_OPEN,MSGL_STATUS,
- "[bincue] bin filename tested: %s\n", s);
+ MSGTR_MPDEMUX_CUEREAD_BinFilenameTested, s);
/* ok try it with path */
snprintf(t, sizeof( t ), "%s/%s", bincue_path, s);
@@ -227,7 +227,7 @@ static int cue_find_bin (char *firstline) {
if (fd_bin == -1)
{
mp_msg(MSGT_OPEN,MSGL_STATUS,
- "[bincue] bin filename tested: %s\n",t);
+ MSGTR_MPDEMUX_CUEREAD_BinFilenameTested,t);
/* now I would say the whole filename is shit, build our own */
strncpy(s, cue_filename, strlen(cue_filename) - 3 );
s[strlen(cue_filename) - 3] = '\0';
@@ -236,18 +236,18 @@ static int cue_find_bin (char *firstline) {
if (fd_bin == -1)
{
mp_msg(MSGT_OPEN,MSGL_STATUS,
- "[bincue] bin filename tested: %s \n", s);
+ MSGTR_MPDEMUX_CUEREAD_BinFilenameTested, s);
/* ok try it with path */
snprintf(t, sizeof( t ), "%s/%s", bincue_path, s);
fd_bin = open (t, O_RDONLY);
if (fd_bin == -1)
{
mp_msg(MSGT_OPEN,MSGL_STATUS,
- "[bincue] bin filename tested: %s\n", s);
+ MSGTR_MPDEMUX_CUEREAD_BinFilenameTested, s);
/* I'll give up */
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] couldn't find the bin file - giving up\n");
+ MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile);
return -1;
}
}
@@ -260,7 +260,7 @@ static int cue_find_bin (char *firstline) {
}
mp_msg(MSGT_OPEN,MSGL_INFO,
- "[bincue] using bin file %s\n", bin_filename);
+ MSGTR_MPDEMUX_CUEREAD_UsingBinFile, bin_filename);
return 0;
}
@@ -294,7 +294,7 @@ static inline int cue_mode_2_sector_size(int mode)
default:
mp_msg(MSGT_OPEN,MSGL_FATAL,
- "[bincue] unknown mode for binfile. should not happen. aborting\n");
+ MSGTR_MPDEMUX_CUEREAD_UnknownModeForBinfile);
abort();
}
@@ -345,7 +345,7 @@ static int cue_read_cue (char *in_cue_filename)
if (fd_cue == NULL)
{
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] cannot open %s\n", in_cue_filename);
+ MSGTR_MPDEMUX_CUEREAD_CannotOpenCueFile, in_cue_filename);
return -1;
}
@@ -355,7 +355,7 @@ static int cue_read_cue (char *in_cue_filename)
if(! fgets( sLine, 256, fd_cue ) )
{
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] error reading from %s\n", in_cue_filename);
+ MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
fclose (fd_cue);
return -1;
}
@@ -371,7 +371,7 @@ static int cue_read_cue (char *in_cue_filename)
if(! fgets( sLine, 256, fd_cue ) )
{
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] error reading from %s\n", in_cue_filename);
+ MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
fclose (fd_cue);
return -1;
}
@@ -381,7 +381,7 @@ static int cue_read_cue (char *in_cue_filename)
if (cue_getTrackinfo(sLine, &tracks[nTracks++]) != 0)
{
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] error reading from %s\n", in_cue_filename);
+ MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
fclose (fd_cue);
return -1;
}
@@ -390,7 +390,7 @@ static int cue_read_cue (char *in_cue_filename)
/* make a fake track with stands for the Lead out */
if (fstat (fd_bin, &filestat) == -1) {
mp_msg(MSGT_OPEN,MSGL_ERR,
- "[bincue] error getting size of bin file\n");
+ MSGTR_MPDEMUX_CUEREAD_ErrGettingBinFileSize);
fclose (fd_cue);
return -1;
}
@@ -485,7 +485,7 @@ static void cue_vcd_read_toc(){
for (i = 0; i < nTracks; ++i) {
mp_msg(MSGT_OPEN,MSGL_INFO,
- "track %02d: format=%d %02d:%02d:%02d\n",
+ MSGTR_MPDEMUX_CUEREAD_InfoTrackFormat,
i+1,
tracks[i].mode,
tracks[i].minute,
@@ -511,12 +511,12 @@ static int cue_vcd_read(stream_t *stream, char *mem, int size) {
return 0;
if(lseek(fd_bin, position+VCD_SECTOR_OFFS, SEEK_SET) == -1) {
- mp_msg(MSGT_OPEN,MSGL_ERR, "[bincue] unexpected end of bin file\n");
+ mp_msg(MSGT_OPEN,MSGL_ERR, MSGTR_MPDEMUX_CUEREAD_UnexpectedBinFileEOF);
return 0;
}
if(read(fd_bin, mem, VCD_SECTOR_DATA) != VCD_SECTOR_DATA) {
- mp_msg(MSGT_OPEN,MSGL_ERR, "[bincue] couldn't read %d bytes of payload\n", VCD_SECTOR_DATA);
+ mp_msg(MSGT_OPEN,MSGL_ERR, MSGTR_MPDEMUX_CUEREAD_CannotReadNBytesOfPayload, VCD_SECTOR_DATA);
return 0;
}
@@ -575,7 +575,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ErrTrackSelect " (seek)\n");
return STREAM_UNSUPORTED;
}
- mp_msg(MSGT_OPEN,MSGL_INFO,"CUE stream_open, filename=%s, track=%d, available tracks: %d -> %d\n", filename, track, ret, ret2);
+ mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_MPDEMUX_CUEREAD_CueStreamInfo_FilenameTrackTracksavail, filename, track, ret, ret2);
stream->fd = f;
stream->type = STREAMTYPE_VCDBINCUE;