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_md5sum.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_md5sum.c')
-rw-r--r-- | libvo/vo_md5sum.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libvo/vo_md5sum.c b/libvo/vo_md5sum.c index 58fab4e1fd..be51ce6b23 100644 --- a/libvo/vo_md5sum.c +++ b/libvo/vo_md5sum.c @@ -85,8 +85,8 @@ int framenum = 0; */ static void md5sum_write_error(void) { - mp_msg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name); - exit_player_bad(MSGTR_Exit_error); + mp_tmsg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name); + exit_player_bad(_(MSGTR_Exit_error)); } /* ------------------------------------------------------------------------- */ @@ -113,7 +113,7 @@ static int preinit(const char *arg) }; mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, - MSGTR_VO_ParsingSuboptions); + _(MSGTR_VO_ParsingSuboptions)); md5sum_outfile = strdup("md5sums"); if (subopt_parse(arg, subopts) != 0) { @@ -124,7 +124,7 @@ static int preinit(const char *arg) md5sum_outfile); mp_msg(MSGT_VO, MSGL_INFO, "%s: %s\n", info.short_name, - MSGTR_VO_SuboptionsParsedOK); + _(MSGTR_VO_SuboptionsParsedOK)); return 0; } @@ -149,10 +149,10 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, if ( (md5sum_fd = fopen(md5sum_outfile, "w") ) == 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, strerror(errno) ); - exit_player_bad(MSGTR_Exit_error); + info.short_name, _(MSGTR_VO_GenericError), strerror(errno) ); + exit_player_bad(_(MSGTR_Exit_error)); } return 0; |