diff options
author | Amar Takhar <mplayer@darkbeer.org> | 2009-07-06 02:41:23 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 01:28:07 +0300 |
commit | b5972d6f14c04384d88d3f813b435d484562403f (patch) | |
tree | af30d63d0bca01c2132cd54f43b51e444948abc0 /libvo/vo_jpeg.c | |
parent | 7394680e4eb7b21cd8bf38b973ff66881889be26 (diff) | |
download | mpv-b5972d6f14c04384d88d3f813b435d484562403f.tar.bz2 mpv-b5972d6f14c04384d88d3f813b435d484562403f.tar.xz |
Translation system changes part 1: wrap translated strings
Replace mp_msg() calls which have a translated string as the format
argument with mp_tmsg and add _() around all other translated strings.
Diffstat (limited to 'libvo/vo_jpeg.c')
-rw-r--r-- | libvo/vo_jpeg.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index d29d7b0cd5..7853a49acb 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -118,36 +118,36 @@ static void jpeg_mkdir(char *buf, int verbose) { case EEXIST: if ( stat(buf, &stat_p ) < 0 ) { mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, - MSGTR_VO_GenericError, strerror(errno) ); + _(MSGTR_VO_GenericError), strerror(errno) ); mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %s\n", info.short_name, - MSGTR_VO_UnableToAccess,buf); - exit_player_bad(MSGTR_Exit_error); + _(MSGTR_VO_UnableToAccess), buf); + exit_player_bad(_(MSGTR_Exit_error)); } if ( !S_ISDIR(stat_p.st_mode) ) { mp_msg(MSGT_VO, MSGL_ERR, "%s: %s %s\n", info.short_name, - buf, MSGTR_VO_ExistsButNoDirectory); - exit_player_bad(MSGTR_Exit_error); + buf, _(MSGTR_VO_ExistsButNoDirectory)); + exit_player_bad(_(MSGTR_Exit_error)); } if ( !(stat_p.st_mode & S_IWUSR) ) { mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", info.short_name, - buf, MSGTR_VO_DirExistsButNotWritable); - exit_player_bad(MSGTR_Exit_error); + buf, _(MSGTR_VO_DirExistsButNotWritable)); + exit_player_bad(_(MSGTR_Exit_error)); } mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, - buf, MSGTR_VO_DirExistsAndIsWritable); + buf, _(MSGTR_VO_DirExistsAndIsWritable)); break; default: mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, - MSGTR_VO_GenericError, strerror(errno) ); + _(MSGTR_VO_GenericError), strerror(errno) ); mp_msg(MSGT_VO, MSGL_ERR, "%s: %s - %s\n", info.short_name, - buf, MSGTR_VO_CantCreateDirectory); - exit_player_bad(MSGTR_Exit_error); + buf, _(MSGTR_VO_CantCreateDirectory)); + exit_player_bad(_(MSGTR_Exit_error)); } /* end switch */ } else if ( verbose ) { mp_msg(MSGT_VO, MSGL_INFO, "%s: %s - %s\n", info.short_name, - buf, MSGTR_VO_DirectoryCreateSuccess); + buf, _(MSGTR_VO_DirectoryCreateSuccess)); } /* end if */ } @@ -188,11 +188,11 @@ static uint32_t jpeg_write(uint8_t * name, uint8_t * buffer) if ( !buffer ) return 1; if ( (outfile = fopen(name, "wb") ) == NULL ) { mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s\n", info.short_name, - MSGTR_VO_CantCreateFile); + _(MSGTR_VO_CantCreateFile)); mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", - info.short_name, MSGTR_VO_GenericError, + info.short_name, _(MSGTR_VO_GenericError), strerror(errno) ); - exit_player_bad(MSGTR_Exit_error); + exit_player_bad(_(MSGTR_Exit_error)); } cinfo.err = jpeg_std_error(&jerr); @@ -357,7 +357,7 @@ static int preinit(const char *arg) const char *info_message = NULL; mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, - MSGTR_VO_ParsingSuboptions); + _(MSGTR_VO_ParsingSuboptions)); jpeg_progressive_mode = 0; jpeg_baseline = 1; @@ -372,12 +372,12 @@ static int preinit(const char *arg) return -1; } - if (jpeg_progressive_mode) info_message = MSGTR_VO_JPEG_ProgressiveJPEG; - else info_message = MSGTR_VO_JPEG_NoProgressiveJPEG; + if (jpeg_progressive_mode) info_message = _(MSGTR_VO_JPEG_ProgressiveJPEG); + else info_message = _(MSGTR_VO_JPEG_NoProgressiveJPEG); mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, info_message); - if (jpeg_baseline) info_message = MSGTR_VO_JPEG_BaselineJPEG; - else info_message = MSGTR_VO_JPEG_NoBaselineJPEG; + if (jpeg_baseline) info_message = _(MSGTR_VO_JPEG_BaselineJPEG); + else info_message = _(MSGTR_VO_JPEG_NoBaselineJPEG); mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, info_message); mp_msg(MSGT_VO, MSGL_V, "%s: optimize --> %d\n", info.short_name, @@ -398,7 +398,7 @@ static int preinit(const char *arg) } mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, - MSGTR_VO_SuboptionsParsedOK); + _(MSGTR_VO_SuboptionsParsedOK)); return 0; } |