From 044c0f87fe79cbb4061927b594490235c5b0a948 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Wed, 14 Apr 2010 13:18:55 +0000 Subject: 2010-04-14 Phil Muldoon * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass error/warning messages. Capitalize and use complete sentences. (blpy_block_syms_iternext): Likewise. * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) (frame_info_to_frame_object, frapy_read_var) (gdbpy_frame_stop_reason_string): Likewise. * python/py-lazy-string.c (stpy_convert_to_value) (gdbpy_create_lazy_string_object): Likewise. * python/py-objfile.c (objfpy_set_printers): Likewise. * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. * python/python.c (parameter_to_python): Likewise. * python/py-type.c (typy_range, typy_target): Likewise. * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. --- gdb/python/py-cmd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/python/py-cmd.c') diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index ae462d9..d187d16 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -279,7 +279,7 @@ parse_command_name (char *text, struct cmd_list_element ***base_list) ; if (i < 0) { - PyErr_SetString (PyExc_RuntimeError, _("no command name found")); + PyErr_SetString (PyExc_RuntimeError, _("No command name found.")); return NULL; } lastchar = i; @@ -311,7 +311,7 @@ parse_command_name (char *text, struct cmd_list_element ***base_list) elt = lookup_cmd_1 (&text, cmdlist, NULL, 1); if (!elt || elt == (struct cmd_list_element *) -1) { - PyErr_Format (PyExc_RuntimeError, _("could not find command prefix %s"), + PyErr_Format (PyExc_RuntimeError, _("Could not find command prefix %s."), prefix_text); xfree (prefix_text); xfree (result); @@ -325,7 +325,7 @@ parse_command_name (char *text, struct cmd_list_element ***base_list) return result; } - PyErr_Format (PyExc_RuntimeError, _("'%s' is not a prefix command"), + PyErr_Format (PyExc_RuntimeError, _("'%s' is not a prefix command."), prefix_text); xfree (prefix_text); xfree (result); @@ -374,7 +374,7 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw) /* Note: this is apparently not documented in Python. We return 0 for success, -1 for failure. */ PyErr_Format (PyExc_RuntimeError, - _("command object already initialized")); + _("Command object already initialized.")); return -1; } @@ -389,13 +389,13 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw) && cmdtype != class_trace && cmdtype != class_obscure && cmdtype != class_maintenance) { - PyErr_Format (PyExc_RuntimeError, _("invalid command class argument")); + PyErr_Format (PyExc_RuntimeError, _("Invalid command class argument.")); return -1; } if (completetype < -1 || completetype >= (int) N_COMPLETERS) { - PyErr_Format (PyExc_RuntimeError, _("invalid completion type argument")); + PyErr_Format (PyExc_RuntimeError, _("Invalid completion type argument.")); return -1; } -- cgit v1.1