FreeCAD: master b52ac5fc

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2019-11-13 04:56:04 master 25b3cfc1
Changeset Draft: move translate function to translate module

The translate mechanism in Draft depends on the `QtCore`
`translate` function. This is defined in its own module
so that `DraftGui.py` is not as big and hard to manage.

Other modules in Draft can import the translate function
without needing to import the entire interface, which
often causes errors and circular dependencies.

We can import `QtCore.QT_TRANSLATE_NOOP` at the top level
in `Draft.py` because it does not depend on the graphical
interface.
mod - src/Mod/Draft/CMakeLists.txt Diff File
mod - src/Mod/Draft/Draft.py Diff File
mod - src/Mod/Draft/DraftGui.py Diff File
add - src/Mod/Draft/draftutils/translate.py Diff File