diff --git a/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp b/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp
index 1b67907833..4a66c9be08 100644
--- a/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp
+++ b/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp
@@ -72,6 +72,7 @@ void loadPartDesignResource()
{
// add resources and reloads the translators
Q_INIT_RESOURCE(PartDesign);
+ Q_INIT_RESOURCE(PartDesign_translation);
Gui::Translator::instance()->refresh();
}
diff --git a/src/Mod/PartDesign/Gui/CMakeLists.txt b/src/Mod/PartDesign/Gui/CMakeLists.txt
index 376f557dee..b3f5767dc7 100644
--- a/src/Mod/PartDesign/Gui/CMakeLists.txt
+++ b/src/Mod/PartDesign/Gui/CMakeLists.txt
@@ -29,7 +29,11 @@ set(PartDesignGui_LIBS
FreeCADGui
)
-qt_add_resources(PartDesignGui_SRCS Resources/PartDesign.qrc)
+set (PartDesign_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/PartDesign_translation.qrc)
+qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts"
+ ${CMAKE_CURRENT_BINARY_DIR}/Resources/translations)
+qt_create_resource_file(${PartDesign_TR_QRC} ${QM_SRCS})
+qt_add_resources(PartDesignGui_SRCS Resources/PartDesign.qrc ${PartDesign_TR_QRC})
set(PartDesignGui_UIC_SRCS
TaskFeaturePick.ui
diff --git a/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc b/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc
index f771ff3bc9..43382ffcef 100644
--- a/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc
+++ b/src/Mod/PartDesign/Gui/Resources/PartDesign.qrc
@@ -60,47 +60,5 @@
icons/PartDesignWorkbench.svg
icons/Tree_PartDesign_Pad.svg
icons/Tree_PartDesign_Revolution.svg
- translations/PartDesign_af.qm
- translations/PartDesign_ar.qm
- translations/PartDesign_ca.qm
- translations/PartDesign_cs.qm
- translations/PartDesign_de.qm
- translations/PartDesign_el.qm
- translations/PartDesign_es-ES.qm
- translations/PartDesign_eu.qm
- translations/PartDesign_fi.qm
- translations/PartDesign_fil.qm
- translations/PartDesign_fr.qm
- translations/PartDesign_gl.qm
- translations/PartDesign_hr.qm
- translations/PartDesign_hu.qm
- translations/PartDesign_id.qm
- translations/PartDesign_it.qm
- translations/PartDesign_ja.qm
- translations/PartDesign_kab.qm
- translations/PartDesign_ko.qm
- translations/PartDesign_lt.qm
- translations/PartDesign_nl.qm
- translations/PartDesign_no.qm
- translations/PartDesign_pl.qm
- translations/PartDesign_pt-BR.qm
- translations/PartDesign_pt-PT.qm
- translations/PartDesign_ro.qm
- translations/PartDesign_ru.qm
- translations/PartDesign_sk.qm
- translations/PartDesign_sl.qm
- translations/PartDesign_sr.qm
- translations/PartDesign_sv-SE.qm
- translations/PartDesign_tr.qm
- translations/PartDesign_uk.qm
- translations/PartDesign_val-ES.qm
- translations/PartDesign_vi.qm
- translations/PartDesign_zh-CN.qm
- translations/PartDesign_zh-TW.qm
- translations/PartDesign_es-AR.qm
- translations/PartDesign_bg.qm
- translations/PartDesign_ka.qm
- translations/PartDesign_sr-CS.qm
- translations/PartDesign_be.qm
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_af.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_af.qm
deleted file mode 100644
index e8ccd61aa0..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_af.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ar.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ar.qm
deleted file mode 100644
index cdbcfa3783..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ar.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_be.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_be.qm
deleted file mode 100644
index 494e8d5f45..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_be.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_bg.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_bg.qm
deleted file mode 100644
index fa473dad9c..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_bg.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ca.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ca.qm
deleted file mode 100644
index e53f250725..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ca.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_cs.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_cs.qm
deleted file mode 100644
index 1e982c9f7e..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_cs.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_de.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_de.qm
deleted file mode 100644
index c6f195c5b7..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_de.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_el.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_el.qm
deleted file mode 100644
index 25e94548aa..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_el.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-AR.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-AR.qm
deleted file mode 100644
index 1c433b2b34..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-AR.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-ES.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-ES.qm
deleted file mode 100644
index bc5ad14928..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_es-ES.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_eu.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_eu.qm
deleted file mode 100644
index 1689c0af5e..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_eu.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fi.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fi.qm
deleted file mode 100644
index 9a2dadf291..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fi.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fil.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fil.qm
deleted file mode 100644
index 0ec712d402..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fil.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fr.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fr.qm
deleted file mode 100644
index 1096f02474..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_fr.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_gl.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_gl.qm
deleted file mode 100644
index 4824c295b9..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_gl.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hr.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hr.qm
deleted file mode 100644
index 3c7462856d..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hr.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hu.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hu.qm
deleted file mode 100644
index d842780d1d..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_hu.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_id.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_id.qm
deleted file mode 100644
index 033fb4e7a3..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_id.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_it.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_it.qm
deleted file mode 100644
index 89e1f41d3e..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_it.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ja.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ja.qm
deleted file mode 100644
index be1dbf683c..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ja.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ka.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ka.qm
deleted file mode 100644
index ad820c6526..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ka.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_kab.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_kab.qm
deleted file mode 100644
index c275e3f666..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_kab.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ko.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ko.qm
deleted file mode 100644
index 6fe46bb502..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ko.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_lt.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_lt.qm
deleted file mode 100644
index 7902469f9e..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_lt.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_nl.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_nl.qm
deleted file mode 100644
index 2cd2f80ca4..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_nl.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_no.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_no.qm
deleted file mode 100644
index 79481cbf93..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_no.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pl.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pl.qm
deleted file mode 100644
index b65682b1a2..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pl.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-BR.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-BR.qm
deleted file mode 100644
index 06cfa26b8d..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-BR.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-PT.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-PT.qm
deleted file mode 100644
index 954a4b2935..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_pt-PT.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ro.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ro.qm
deleted file mode 100644
index 0f60736f0f..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ro.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ru.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ru.qm
deleted file mode 100644
index 3c2a5dc0aa..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_ru.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sk.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sk.qm
deleted file mode 100644
index c0ee59d735..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sk.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sl.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sl.qm
deleted file mode 100644
index eb62f0dd36..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sl.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr-CS.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr-CS.qm
deleted file mode 100644
index 57f32a4275..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr-CS.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr.qm
deleted file mode 100644
index 9d22a47916..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sr.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sv-SE.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sv-SE.qm
deleted file mode 100644
index 3b56430b9b..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_sv-SE.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_tr.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_tr.qm
deleted file mode 100644
index 33491bee34..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_tr.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_uk.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_uk.qm
deleted file mode 100644
index 15e42ecd48..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_uk.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_val-ES.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_val-ES.qm
deleted file mode 100644
index 8c3f418bab..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_val-ES.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_vi.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_vi.qm
deleted file mode 100644
index 09955d3f60..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_vi.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-CN.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-CN.qm
deleted file mode 100644
index 540f7b18ae..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-CN.qm and /dev/null differ
diff --git a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-TW.qm b/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-TW.qm
deleted file mode 100644
index 1a55c04e30..0000000000
Binary files a/src/Mod/PartDesign/Gui/Resources/translations/PartDesign_zh-TW.qm and /dev/null differ