diff --git a/src/Mod/Test/Gui/AppTestGui.cpp b/src/Mod/Test/Gui/AppTestGui.cpp index e43a07b4b3..261ee5b67b 100644 --- a/src/Mod/Test/Gui/AppTestGui.cpp +++ b/src/Mod/Test/Gui/AppTestGui.cpp @@ -198,6 +198,7 @@ void loadTestResource() { // add resources and reloads the translators Q_INIT_RESOURCE(Test); + Q_INIT_RESOURCE(Test_translation); Gui::Translator::instance()->refresh(); } diff --git a/src/Mod/Test/Gui/CMakeLists.txt b/src/Mod/Test/Gui/CMakeLists.txt index 48d972d1f1..c10b10ae64 100644 --- a/src/Mod/Test/Gui/CMakeLists.txt +++ b/src/Mod/Test/Gui/CMakeLists.txt @@ -24,7 +24,11 @@ SET(Dialogs_SRCS ) SOURCE_GROUP("Dialogs" FILES ${Dialogs_SRCS}) -qt_add_resources(Resource_SRCS Resources/Test.qrc) +set (Test_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Test_translation.qrc) +qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts" + ${CMAKE_CURRENT_BINARY_DIR}/Resources/translations) +qt_create_resource_file(${Test_TR_QRC} ${QM_SRCS}) +qt_add_resources(Resource_SRCS Resources/Test.qrc ${Test_TR_QRC}) SET(Resource_SRCS ${Resource_SRCS} diff --git a/src/Mod/Test/Gui/Resources/Test.qrc b/src/Mod/Test/Gui/Resources/Test.qrc index 58708ad2fc..ce95324e04 100644 --- a/src/Mod/Test/Gui/Resources/Test.qrc +++ b/src/Mod/Test/Gui/Resources/Test.qrc @@ -1,47 +1,5 @@ icons/TestWorkbench.svg - translations/Test_af.qm - translations/Test_de.qm - translations/Test_fi.qm - translations/Test_fr.qm - translations/Test_hr.qm - translations/Test_hu.qm - translations/Test_it.qm - translations/Test_ja.qm - translations/Test_nl.qm - translations/Test_no.qm - translations/Test_pl.qm - translations/Test_ru.qm - translations/Test_uk.qm - translations/Test_tr.qm - translations/Test_sv-SE.qm - translations/Test_zh-TW.qm - translations/Test_pt-BR.qm - translations/Test_cs.qm - translations/Test_sk.qm - translations/Test_es-ES.qm - translations/Test_zh-CN.qm - translations/Test_ro.qm - translations/Test_pt-PT.qm - translations/Test_sr.qm - translations/Test_el.qm - translations/Test_sl.qm - translations/Test_eu.qm - translations/Test_ca.qm - translations/Test_gl.qm - translations/Test_kab.qm - translations/Test_ko.qm - translations/Test_fil.qm - translations/Test_id.qm - translations/Test_lt.qm - translations/Test_val-ES.qm - translations/Test_ar.qm - translations/Test_vi.qm - translations/Test_es-AR.qm - translations/Test_bg.qm - translations/Test_ka.qm - translations/Test_sr-CS.qm - translations/Test_be.qm diff --git a/src/Mod/Test/Gui/Resources/translations/Test_af.qm b/src/Mod/Test/Gui/Resources/translations/Test_af.qm deleted file mode 100644 index 5ef199f718..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_af.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ar.qm b/src/Mod/Test/Gui/Resources/translations/Test_ar.qm deleted file mode 100644 index 04a7b370a6..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ar.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_be.qm b/src/Mod/Test/Gui/Resources/translations/Test_be.qm deleted file mode 100644 index 9058507227..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_be.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_bg.qm b/src/Mod/Test/Gui/Resources/translations/Test_bg.qm deleted file mode 100644 index daade4a472..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_bg.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ca.qm b/src/Mod/Test/Gui/Resources/translations/Test_ca.qm deleted file mode 100644 index 6ade1d67b1..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ca.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_cs.qm b/src/Mod/Test/Gui/Resources/translations/Test_cs.qm deleted file mode 100644 index bc70b32bbc..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_cs.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_de.qm b/src/Mod/Test/Gui/Resources/translations/Test_de.qm deleted file mode 100644 index 35a451d822..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_de.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_el.qm b/src/Mod/Test/Gui/Resources/translations/Test_el.qm deleted file mode 100644 index 351354dfea..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_el.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_es-AR.qm b/src/Mod/Test/Gui/Resources/translations/Test_es-AR.qm deleted file mode 100644 index 905f9814d8..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_es-AR.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_es-ES.qm b/src/Mod/Test/Gui/Resources/translations/Test_es-ES.qm deleted file mode 100644 index 120f52fd0f..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_es-ES.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_eu.qm b/src/Mod/Test/Gui/Resources/translations/Test_eu.qm deleted file mode 100644 index 24183519b3..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_eu.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_fi.qm b/src/Mod/Test/Gui/Resources/translations/Test_fi.qm deleted file mode 100644 index 666e3ab83e..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_fi.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_fil.qm b/src/Mod/Test/Gui/Resources/translations/Test_fil.qm deleted file mode 100644 index b5c5921764..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_fil.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_fr.qm b/src/Mod/Test/Gui/Resources/translations/Test_fr.qm deleted file mode 100644 index 957559f755..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_fr.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_gl.qm b/src/Mod/Test/Gui/Resources/translations/Test_gl.qm deleted file mode 100644 index 5f7696e243..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_gl.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_hr.qm b/src/Mod/Test/Gui/Resources/translations/Test_hr.qm deleted file mode 100644 index 86cbbf8bca..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_hr.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_hu.qm b/src/Mod/Test/Gui/Resources/translations/Test_hu.qm deleted file mode 100644 index 6a4f33521d..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_hu.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_id.qm b/src/Mod/Test/Gui/Resources/translations/Test_id.qm deleted file mode 100644 index b78c270443..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_id.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_it.qm b/src/Mod/Test/Gui/Resources/translations/Test_it.qm deleted file mode 100644 index a1132dfe04..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_it.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ja.qm b/src/Mod/Test/Gui/Resources/translations/Test_ja.qm deleted file mode 100644 index 7e7d9b2e86..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ja.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ka.qm b/src/Mod/Test/Gui/Resources/translations/Test_ka.qm deleted file mode 100644 index 3fe3f8a87e..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ka.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_kab.qm b/src/Mod/Test/Gui/Resources/translations/Test_kab.qm deleted file mode 100644 index 91a1f98f5d..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_kab.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ko.qm b/src/Mod/Test/Gui/Resources/translations/Test_ko.qm deleted file mode 100644 index d9d814d963..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ko.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_lt.qm b/src/Mod/Test/Gui/Resources/translations/Test_lt.qm deleted file mode 100644 index 8d57647364..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_lt.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_nl.qm b/src/Mod/Test/Gui/Resources/translations/Test_nl.qm deleted file mode 100644 index 8cce4b0872..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_nl.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_no.qm b/src/Mod/Test/Gui/Resources/translations/Test_no.qm deleted file mode 100644 index 4880b82964..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_no.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_pl.qm b/src/Mod/Test/Gui/Resources/translations/Test_pl.qm deleted file mode 100644 index c5726caf58..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_pl.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_pt-BR.qm b/src/Mod/Test/Gui/Resources/translations/Test_pt-BR.qm deleted file mode 100644 index 2b2f40f34d..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_pt-BR.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_pt-PT.qm b/src/Mod/Test/Gui/Resources/translations/Test_pt-PT.qm deleted file mode 100644 index da9f0d6884..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_pt-PT.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ro.qm b/src/Mod/Test/Gui/Resources/translations/Test_ro.qm deleted file mode 100644 index 6494f11fd2..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ro.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_ru.qm b/src/Mod/Test/Gui/Resources/translations/Test_ru.qm deleted file mode 100644 index 39e4e91619..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_ru.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_sk.qm b/src/Mod/Test/Gui/Resources/translations/Test_sk.qm deleted file mode 100644 index 216ff7a9dd..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_sk.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_sl.qm b/src/Mod/Test/Gui/Resources/translations/Test_sl.qm deleted file mode 100644 index be7e5e911d..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_sl.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_sr-CS.qm b/src/Mod/Test/Gui/Resources/translations/Test_sr-CS.qm deleted file mode 100644 index f886d0f5e7..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_sr-CS.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_sr.qm b/src/Mod/Test/Gui/Resources/translations/Test_sr.qm deleted file mode 100644 index 45dd53cc50..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_sr.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_sv-SE.qm b/src/Mod/Test/Gui/Resources/translations/Test_sv-SE.qm deleted file mode 100644 index dabcae446f..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_sv-SE.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_tr.qm b/src/Mod/Test/Gui/Resources/translations/Test_tr.qm deleted file mode 100644 index bffbc458cf..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_tr.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_uk.qm b/src/Mod/Test/Gui/Resources/translations/Test_uk.qm deleted file mode 100644 index 2d4d120f37..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_uk.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_val-ES.qm b/src/Mod/Test/Gui/Resources/translations/Test_val-ES.qm deleted file mode 100644 index ea08749289..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_val-ES.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_vi.qm b/src/Mod/Test/Gui/Resources/translations/Test_vi.qm deleted file mode 100644 index 766399c5c3..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_vi.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_zh-CN.qm b/src/Mod/Test/Gui/Resources/translations/Test_zh-CN.qm deleted file mode 100644 index 8c784e70b8..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_zh-CN.qm and /dev/null differ diff --git a/src/Mod/Test/Gui/Resources/translations/Test_zh-TW.qm b/src/Mod/Test/Gui/Resources/translations/Test_zh-TW.qm deleted file mode 100644 index 9ab6d71268..0000000000 Binary files a/src/Mod/Test/Gui/Resources/translations/Test_zh-TW.qm and /dev/null differ