diff options
| author | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-14 13:18:55 +0000 |
|---|---|---|
| committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-14 13:18:55 +0000 |
| commit | 044c0f87fe79cbb4061927b594490235c5b0a948 (patch) | |
| tree | f7d985939b141ab42cb0936c21bf2def6b6d7ac3 /gdb/python/py-type.c | |
| parent | 79f283fe85c2bc28eb97695c591e3c95423a32c8 (diff) | |
| download | ppe42-binutils-044c0f87fe79cbb4061927b594490235c5b0a948.tar.gz ppe42-binutils-044c0f87fe79cbb4061927b594490235c5b0a948.zip | |
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
* 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.
Diffstat (limited to 'gdb/python/py-type.c')
| -rw-r--r-- | gdb/python/py-type.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index ae12b5895a..238b84a2aa 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -290,7 +290,7 @@ typy_range (PyObject *self, PyObject *args) && TYPE_CODE (type) != TYPE_CODE_RANGE) { PyErr_SetString (PyExc_RuntimeError, - "This type does not have a range."); + _("This type does not have a range.")); return NULL; } @@ -362,7 +362,8 @@ typy_target (PyObject *self, PyObject *args) if (!TYPE_TARGET_TYPE (type)) { - PyErr_SetString (PyExc_RuntimeError, "type does not have a target"); + PyErr_SetString (PyExc_RuntimeError, + _("Type does not have a target.")); return NULL; } |

