Python-i18n: allow None as a gettext path (searches default)

This commit is contained in:
Adriaan de Groot 2017-08-16 16:45:34 +02:00
parent 74be2fd098
commit 78b3c8ed32
2 changed files with 3 additions and 3 deletions

View File

@ -240,12 +240,12 @@ gettext_languages()
return pyList; return pyList;
} }
std::string bp::object
gettext_path() gettext_path()
{ {
// TODO: distinguish between -d runs and normal runs // TODO: distinguish between -d runs and normal runs
// TODO: can we detect DESTDIR-installs? // TODO: can we detect DESTDIR-installs?
return std::string(); return bp::object(); // None
} }

View File

@ -61,7 +61,7 @@ std::string check_target_env_output( const boost::python::list& args,
std::string obscure( const std::string& string ); std::string obscure( const std::string& string );
std::string gettext_path(); boost::python::object gettext_path();
boost::python::list gettext_languages(); boost::python::list gettext_languages();