1
0
forked from aniani/vim

updated for version 7.3.1229

Problem:    Python: not so easy to delete/restore translating.
Solution:   Make macros do translation of exception messages. (ZyX)
            Note: this breaks translations!
This commit is contained in:
Bram Moolenaar
2013-06-23 13:28:17 +02:00
parent 808c2bc8bf
commit 0bd80ccd85
3 changed files with 114 additions and 111 deletions

View File

@@ -1169,7 +1169,7 @@ BufferSubscript(PyObject *self, PyObject* idx)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1203,7 +1203,7 @@ BufferAsSubscript(PyObject *self, PyObject* idx, PyObject* val)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}
@@ -1285,7 +1285,7 @@ RangeSubscript(PyObject *self, PyObject* idx)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1312,7 +1312,7 @@ RangeAsSubscript(PyObject *self, PyObject *idx, PyObject *val)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}
@@ -1491,7 +1491,7 @@ ListSubscript(PyObject *self, PyObject* idx)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return NULL;
}
}
@@ -1515,7 +1515,7 @@ ListAsSubscript(PyObject *self, PyObject *idx, PyObject *obj)
}
else
{
PyErr_SetString(PyExc_TypeError, _("index must be int or slice"));
PyErr_SET_STRING(PyExc_TypeError, "index must be int or slice");
return -1;
}
}