diff options
author | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-27 15:46:36 +0000 |
---|---|---|
committer | ptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-27 15:46:36 +0000 |
commit | c846ef4a98c60654062e1d183e0ec0c04d70cf19 (patch) | |
tree | eea64b02202e40d93dc6c621da14addef386d435 /parser-mecmd.c | |
parent | 371f69cf246a803cc822e707c506a8fb41d7e92e (diff) | |
download | mpv-c846ef4a98c60654062e1d183e0ec0c04d70cf19.tar.bz2 mpv-c846ef4a98c60654062e1d183e0ec0c04d70cf19.tar.xz |
localization of parser-m*cmd.c messages
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21328 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'parser-mecmd.c')
-rw-r--r-- | parser-mecmd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/parser-mecmd.c b/parser-mecmd.c index e6bb81fb28..3af78a1eae 100644 --- a/parser-mecmd.c +++ b/parser-mecmd.c @@ -14,6 +14,7 @@ #endif #include "mp_msg.h" +#include "help_mp.h" #include "m_option.h" #include "m_config.h" #include "parser-mecmd.h" @@ -77,7 +78,7 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) no_more_opts = 1; if (i+1 >= argc) { - mp_msg(MSGT_CFGPARSER, MSGL_ERR, "'--' indicates no more options, but no filename was given on the command line.\n"); + mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_NoFileGivenOnCommandLine); goto err_out; } continue; @@ -92,7 +93,7 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) mp_opt = m_config_get_option(config,opt); if(!mp_opt) { tmp = M_OPT_UNKNOWN; - mp_msg(MSGT_CFGPARSER, MSGL_ERR, "-%s is not an MEncoder option\n",opt); + mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_NotAnMEncoderOption, opt); goto err_out; } if(!entry || (mp_opt->flags & M_OPT_GLOBAL)){ @@ -104,7 +105,7 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) else if(tmp < 0){ // mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp); - mp_msg(MSGT_CFGPARSER, MSGL_FATAL, "Error parsing option on the command line: -%s\n",opt); + mp_msg(MSGT_CFGPARSER, MSGL_FATAL, MSGTR_ErrorParsingOptionOnCommandLine, opt); goto err_out; } } else { @@ -141,7 +142,7 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) exit(0); if(nf == 0) { m_entry_list_free(lst); - mp_msg(MSGT_CFGPARSER, MSGL_ERR, "No file given\n"); + mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_NoFileGiven); return NULL; } return lst; |