From 92d2315a87d24c51f2f0d3265c87c59f0d9730c3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 19 Jul 2009 15:39:53 +0200 Subject: python/apt_pkgmodule.cc: Fix apt_pkg.gettext to not ignore second parameter. --- python/apt_pkgmodule.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python') diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index b6ae709e..cbf88294 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -29,7 +29,6 @@ #include /*}}}*/ - /** * A Python->C->Python gettext() function. * @@ -41,7 +40,7 @@ static PyObject *py_gettext(PyObject *self, PyObject *Args) { const char *msg; char *domain = "python-apt"; - if (PyArg_ParseTuple(Args,"s|s:gettext",&msg) == 0) + if (PyArg_ParseTuple(Args,"s|s:gettext",&msg, &domain) == 0) return 0; return PyString_FromString(dgettext(domain, msg)); -- cgit v1.2.3