add module for Qt translation stuff
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
#include <Base/RotationPy.h>
|
||||
#include <Base/Sequencer.h>
|
||||
#include <Base/Tools.h>
|
||||
#include <Base/Translate.h>
|
||||
#include <Base/UnitsApi.h>
|
||||
#include <Base/QuantityPy.h>
|
||||
#include <Base/UnitPy.h>
|
||||
@@ -331,6 +332,11 @@ Application::Application(std::map<std::string,std::string> &mConfig)
|
||||
Py_INCREF(pConsoleModule);
|
||||
PyModule_AddObject(pAppModule, "Console", pConsoleModule);
|
||||
|
||||
// Translate module
|
||||
PyObject* pTranslateModule = (new Base::Translate)->module().ptr();
|
||||
Py_INCREF(pTranslateModule);
|
||||
PyModule_AddObject(pAppModule, "Qt", pTranslateModule);
|
||||
|
||||
//insert Units module
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
static struct PyModuleDef UnitsModuleDef = {
|
||||
|
||||
Reference in New Issue
Block a user