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 /libaf/af_scaletempo.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 'libaf/af_scaletempo.c')
-rw-r--r-- | libaf/af_scaletempo.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libaf/af_scaletempo.c b/libaf/af_scaletempo.c index 8b39290efa..2d420784c6 100644 --- a/libaf/af_scaletempo.c +++ b/libaf/af_scaletempo.c @@ -470,26 +470,26 @@ static int control(struct af_instance_s* af, int cmd, void* arg) return AF_ERROR; } if (s->scale_nominal <= 0) { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " - MSGTR_ErrorParsingCommandLine ": " MSGTR_AF_ValueOutOfRange + mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " + _(MSGTR_ErrorParsingCommandLine) ": " _(MSGTR_AF_ValueOutOfRange) ": scale > 0\n"); return AF_ERROR; } if (s->ms_stride <= 0) { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " - MSGTR_ErrorParsingCommandLine ": " MSGTR_AF_ValueOutOfRange + mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " + _(MSGTR_ErrorParsingCommandLine) ": " _(MSGTR_AF_ValueOutOfRange) ": stride > 0\n"); return AF_ERROR; } if (s->percent_overlap < 0 || s->percent_overlap > 1) { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " - MSGTR_ErrorParsingCommandLine ": " MSGTR_AF_ValueOutOfRange + mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " + _(MSGTR_ErrorParsingCommandLine) ": " _(MSGTR_AF_ValueOutOfRange) ": 0 <= overlap <= 1\n"); return AF_ERROR; } if (s->ms_search < 0) { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " - MSGTR_ErrorParsingCommandLine ": " MSGTR_AF_ValueOutOfRange + mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " + _(MSGTR_ErrorParsingCommandLine) ": " _(MSGTR_AF_ValueOutOfRange) ": search >= 0\n"); return AF_ERROR; } @@ -507,8 +507,8 @@ static int control(struct af_instance_s* af, int cmd, void* arg) s->speed_tempo = 1; s->speed_pitch = 1; } else { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " - MSGTR_ErrorParsingCommandLine ": " MSGTR_AF_ValueOutOfRange + mp_tmsg(MSGT_AFILTER, MSGL_ERR, "[scaletempo] " + _(MSGTR_ErrorParsingCommandLine) ": " _(MSGTR_AF_ValueOutOfRange) ": speed=[pitch|tempo|none|both]\n"); return AF_ERROR; } |