diff --git a/src/Mod/Path/Gui/AppPathGui.cpp b/src/Mod/Path/Gui/AppPathGui.cpp index fdf973bffa..49cf2d9448 100644 --- a/src/Mod/Path/Gui/AppPathGui.cpp +++ b/src/Mod/Path/Gui/AppPathGui.cpp @@ -43,6 +43,7 @@ void loadPathResource() { // add resources and reloads the translators Q_INIT_RESOURCE(Path); + Q_INIT_RESOURCE(Path_translation); Gui::Translator::instance()->refresh(); } diff --git a/src/Mod/Path/Gui/CMakeLists.txt b/src/Mod/Path/Gui/CMakeLists.txt index 4c33efbefa..b1ba882729 100644 --- a/src/Mod/Path/Gui/CMakeLists.txt +++ b/src/Mod/Path/Gui/CMakeLists.txt @@ -25,7 +25,11 @@ set(PathGui_LIBS FreeCADGui ) -qt_add_resources(PathResource_SRCS Resources/Path.qrc) +set (Path_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Path_translation.qrc) +qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts" + ${CMAKE_CURRENT_BINARY_DIR}/Resources/translations) +qt_create_resource_file(${Path_TR_QRC} ${QM_SRCS}) +qt_add_resources(PathResource_SRCS Resources/Path.qrc ${Path_TR_QRC}) SOURCE_GROUP("Resources" FILES ${PathResource_SRCS}) diff --git a/src/Mod/Path/Gui/Resources/Path.qrc b/src/Mod/Path/Gui/Resources/Path.qrc index 9a71964d51..2e7d57ee5a 100644 --- a/src/Mod/Path/Gui/Resources/Path.qrc +++ b/src/Mod/Path/Gui/Resources/Path.qrc @@ -135,47 +135,5 @@ preferences/Advanced.ui preferences/PathDressupHoldingTags.ui preferences/PathJob.ui - translations/Path_af.qm - translations/Path_ar.qm - translations/Path_ca.qm - translations/Path_cs.qm - translations/Path_de.qm - translations/Path_el.qm - translations/Path_es-ES.qm - translations/Path_eu.qm - translations/Path_fi.qm - translations/Path_fil.qm - translations/Path_fr.qm - translations/Path_gl.qm - translations/Path_hr.qm - translations/Path_hu.qm - translations/Path_id.qm - translations/Path_it.qm - translations/Path_ja.qm - translations/Path_kab.qm - translations/Path_ko.qm - translations/Path_lt.qm - translations/Path_nl.qm - translations/Path_no.qm - translations/Path_pl.qm - translations/Path_pt-BR.qm - translations/Path_pt-PT.qm - translations/Path_ro.qm - translations/Path_ru.qm - translations/Path_sk.qm - translations/Path_sl.qm - translations/Path_sr.qm - translations/Path_sv-SE.qm - translations/Path_tr.qm - translations/Path_uk.qm - translations/Path_val-ES.qm - translations/Path_vi.qm - translations/Path_zh-CN.qm - translations/Path_zh-TW.qm - translations/Path_es-AR.qm - translations/Path_bg.qm - translations/Path_ka.qm - translations/Path_sr-CS.qm - translations/Path_be.qm diff --git a/src/Mod/Path/Gui/Resources/translations/Path_af.qm b/src/Mod/Path/Gui/Resources/translations/Path_af.qm deleted file mode 100644 index 78be2f3870..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_af.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ar.qm b/src/Mod/Path/Gui/Resources/translations/Path_ar.qm deleted file mode 100644 index 06c986c29a..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ar.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_be.qm b/src/Mod/Path/Gui/Resources/translations/Path_be.qm deleted file mode 100644 index 70d4c6fcd2..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_be.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_bg.qm b/src/Mod/Path/Gui/Resources/translations/Path_bg.qm deleted file mode 100644 index 48d2255d45..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_bg.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ca.qm b/src/Mod/Path/Gui/Resources/translations/Path_ca.qm deleted file mode 100644 index 58da0c4131..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ca.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_cs.qm b/src/Mod/Path/Gui/Resources/translations/Path_cs.qm deleted file mode 100644 index 828abd7481..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_cs.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_de.qm b/src/Mod/Path/Gui/Resources/translations/Path_de.qm deleted file mode 100644 index 9f2dce004d..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_de.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_el.qm b/src/Mod/Path/Gui/Resources/translations/Path_el.qm deleted file mode 100644 index 26ab47bf6c..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_el.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_es-AR.qm b/src/Mod/Path/Gui/Resources/translations/Path_es-AR.qm deleted file mode 100644 index d23968359b..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_es-AR.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_es-ES.qm b/src/Mod/Path/Gui/Resources/translations/Path_es-ES.qm deleted file mode 100644 index 8a1d21028c..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_es-ES.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_eu.qm b/src/Mod/Path/Gui/Resources/translations/Path_eu.qm deleted file mode 100644 index 16dabceff6..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_eu.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_fi.qm b/src/Mod/Path/Gui/Resources/translations/Path_fi.qm deleted file mode 100644 index 4bf9376a59..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_fi.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_fil.qm b/src/Mod/Path/Gui/Resources/translations/Path_fil.qm deleted file mode 100644 index 8956b30b89..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_fil.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_fr.qm b/src/Mod/Path/Gui/Resources/translations/Path_fr.qm deleted file mode 100644 index 5813968152..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_fr.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_gl.qm b/src/Mod/Path/Gui/Resources/translations/Path_gl.qm deleted file mode 100644 index 50da8ac6d8..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_gl.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_hr.qm b/src/Mod/Path/Gui/Resources/translations/Path_hr.qm deleted file mode 100644 index 242ac8049b..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_hr.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_hu.qm b/src/Mod/Path/Gui/Resources/translations/Path_hu.qm deleted file mode 100644 index 0afaa980e6..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_hu.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_id.qm b/src/Mod/Path/Gui/Resources/translations/Path_id.qm deleted file mode 100644 index 4d45cc3677..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_id.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_it.qm b/src/Mod/Path/Gui/Resources/translations/Path_it.qm deleted file mode 100644 index 259ff8e14d..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_it.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ja.qm b/src/Mod/Path/Gui/Resources/translations/Path_ja.qm deleted file mode 100644 index 190214c100..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ja.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ka.qm b/src/Mod/Path/Gui/Resources/translations/Path_ka.qm deleted file mode 100644 index bdae89f7c8..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ka.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_kab.qm b/src/Mod/Path/Gui/Resources/translations/Path_kab.qm deleted file mode 100644 index d18a3effde..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_kab.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ko.qm b/src/Mod/Path/Gui/Resources/translations/Path_ko.qm deleted file mode 100644 index 6c3e912234..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ko.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_lt.qm b/src/Mod/Path/Gui/Resources/translations/Path_lt.qm deleted file mode 100644 index 293d838ab9..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_lt.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_nl.qm b/src/Mod/Path/Gui/Resources/translations/Path_nl.qm deleted file mode 100644 index 924df09aec..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_nl.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_no.qm b/src/Mod/Path/Gui/Resources/translations/Path_no.qm deleted file mode 100644 index a72ac55eb3..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_no.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_pl.qm b/src/Mod/Path/Gui/Resources/translations/Path_pl.qm deleted file mode 100644 index 38b91919bf..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_pl.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_pt-BR.qm b/src/Mod/Path/Gui/Resources/translations/Path_pt-BR.qm deleted file mode 100644 index c6e39f53b8..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_pt-BR.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_pt-PT.qm b/src/Mod/Path/Gui/Resources/translations/Path_pt-PT.qm deleted file mode 100644 index db974ba246..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_pt-PT.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ro.qm b/src/Mod/Path/Gui/Resources/translations/Path_ro.qm deleted file mode 100644 index 52a5da108e..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ro.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_ru.qm b/src/Mod/Path/Gui/Resources/translations/Path_ru.qm deleted file mode 100644 index ee1c9a06f1..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_ru.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_sk.qm b/src/Mod/Path/Gui/Resources/translations/Path_sk.qm deleted file mode 100644 index e63c2de469..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_sk.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_sl.qm b/src/Mod/Path/Gui/Resources/translations/Path_sl.qm deleted file mode 100644 index 771f816a09..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_sl.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_sr-CS.qm b/src/Mod/Path/Gui/Resources/translations/Path_sr-CS.qm deleted file mode 100644 index bc2d72a33a..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_sr-CS.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_sr.qm b/src/Mod/Path/Gui/Resources/translations/Path_sr.qm deleted file mode 100644 index 3fad850db2..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_sr.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_sv-SE.qm b/src/Mod/Path/Gui/Resources/translations/Path_sv-SE.qm deleted file mode 100644 index 6bac4ab37a..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_sv-SE.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_tr.qm b/src/Mod/Path/Gui/Resources/translations/Path_tr.qm deleted file mode 100644 index 3d820c5296..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_tr.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_uk.qm b/src/Mod/Path/Gui/Resources/translations/Path_uk.qm deleted file mode 100644 index 7502e9f206..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_uk.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_val-ES.qm b/src/Mod/Path/Gui/Resources/translations/Path_val-ES.qm deleted file mode 100644 index 1cef2907fb..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_val-ES.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_vi.qm b/src/Mod/Path/Gui/Resources/translations/Path_vi.qm deleted file mode 100644 index e83aeb256e..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_vi.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_zh-CN.qm b/src/Mod/Path/Gui/Resources/translations/Path_zh-CN.qm deleted file mode 100644 index f780d4b406..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_zh-CN.qm and /dev/null differ diff --git a/src/Mod/Path/Gui/Resources/translations/Path_zh-TW.qm b/src/Mod/Path/Gui/Resources/translations/Path_zh-TW.qm deleted file mode 100644 index 99bac41607..0000000000 Binary files a/src/Mod/Path/Gui/Resources/translations/Path_zh-TW.qm and /dev/null differ