summaryrefslogtreecommitdiffstats
path: root/parser-mpcmd.c
diff options
context:
space:
mode:
authorptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-27 15:46:36 +0000
committerptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-27 15:46:36 +0000
commitc846ef4a98c60654062e1d183e0ec0c04d70cf19 (patch)
treeeea64b02202e40d93dc6c621da14addef386d435 /parser-mpcmd.c
parent371f69cf246a803cc822e707c506a8fb41d7e92e (diff)
downloadmpv-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-mpcmd.c')
-rw-r--r--parser-mpcmd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c
index 57cdd65ad6..37245afa05 100644
--- a/parser-mpcmd.c
+++ b/parser-mpcmd.c
@@ -14,6 +14,7 @@
#endif
#include "mp_msg.h"
+#include "help_mp.h"
#include "m_option.h"
#include "m_config.h"
#include "playtree.h"
@@ -103,7 +104,7 @@ m_config_parse_mp_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;
@@ -150,7 +151,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
char* end = NULL;
l = (i+1<argc) ? strtol(argv[i+1],&end,0) : 0;
if(!end || *end != '\0') {
- mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The loop option must be an integer: %s\n",argv[i+1]);
+ mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_TheLoopOptionMustBeAnInteger, argv[i+1]);
tmp = ERR_OUT_OF_RANGE;
} else {
play_tree_t* pt = last_entry ? last_entry : last_parent;
@@ -196,7 +197,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
}
} else {
tmp = M_OPT_UNKNOWN;
- mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Unknown option on the command line: -%s\n",opt);
+ mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_UnknownOptionOnCommandLine, opt);
}
}
}
@@ -206,7 +207,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
tmp = M_OPT_EXIT - tmp;
} else
if (tmp < 0) {
- 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;
}
i += tmp;
@@ -241,7 +242,7 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
last_entry = entry;
}
} else {
- mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Invalid play entry %s\n",argv[i]);
+ mp_msg(MSGT_CFGPARSER, MSGL_ERR, MSGTR_InvalidPlayEntry, argv[i]);
}
} else { // dvd:// or dvd://x entry