diff --git a/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp b/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp
index fd712ba1af..1d01e8b085 100644
--- a/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp
+++ b/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp
@@ -48,6 +48,7 @@ void loadSpreadsheetResource()
{
// add resources and reloads the translators
Q_INIT_RESOURCE(Spreadsheet);
+ Q_INIT_RESOURCE(Spreadsheet_translation);
Gui::Translator::instance()->refresh();
}
diff --git a/src/Mod/Spreadsheet/Gui/CMakeLists.txt b/src/Mod/Spreadsheet/Gui/CMakeLists.txt
index b7b2d0b03d..85e6b34a4d 100644
--- a/src/Mod/Spreadsheet/Gui/CMakeLists.txt
+++ b/src/Mod/Spreadsheet/Gui/CMakeLists.txt
@@ -37,7 +37,11 @@ SET(SpreadsheetGui_RES_SRCS
Resources/Spreadsheet.qrc
)
-qt_add_resources(SpreadsheetGui_QRC_SRCS ${SpreadsheetGui_RES_SRCS})
+set (Spreadsheet_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Spreadsheet_translation.qrc)
+qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts"
+ ${CMAKE_CURRENT_BINARY_DIR}/Resources/translations)
+qt_create_resource_file(${Spreadsheet_TR_QRC} ${QM_SRCS})
+qt_add_resources(SpreadsheetGui_QRC_SRCS ${SpreadsheetGui_RES_SRCS} ${Spreadsheet_TR_QRC})
set(SpreadsheetGui_UIC_SRCS
Sheet.ui
diff --git a/src/Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc b/src/Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc
index 6685dd4e4c..46e29ee805 100644
--- a/src/Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc
+++ b/src/Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc
@@ -17,48 +17,6 @@
icons/SpreadsheetStyleItalic.svg
icons/SpreadsheetStyleBold.svg
icons/SpreadsheetWorkbench.svg
- translations/Spreadsheet_de.qm
- translations/Spreadsheet_af.qm
- translations/Spreadsheet_zh-CN.qm
- translations/Spreadsheet_zh-TW.qm
- translations/Spreadsheet_hr.qm
- translations/Spreadsheet_cs.qm
- translations/Spreadsheet_nl.qm
- translations/Spreadsheet_fi.qm
- translations/Spreadsheet_fr.qm
- translations/Spreadsheet_hu.qm
- translations/Spreadsheet_ja.qm
- translations/Spreadsheet_no.qm
- translations/Spreadsheet_pl.qm
- translations/Spreadsheet_pt-PT.qm
- translations/Spreadsheet_ro.qm
- translations/Spreadsheet_ru.qm
- translations/Spreadsheet_sr.qm
- translations/Spreadsheet_es-ES.qm
- translations/Spreadsheet_sv-SE.qm
- translations/Spreadsheet_uk.qm
- translations/Spreadsheet_it.qm
- translations/Spreadsheet_pt-BR.qm
- translations/Spreadsheet_el.qm
- translations/Spreadsheet_sk.qm
- translations/Spreadsheet_tr.qm
- translations/Spreadsheet_sl.qm
- translations/Spreadsheet_eu.qm
- translations/Spreadsheet_ca.qm
- translations/Spreadsheet_gl.qm
- translations/Spreadsheet_kab.qm
- translations/Spreadsheet_ko.qm
- translations/Spreadsheet_fil.qm
- translations/Spreadsheet_id.qm
- translations/Spreadsheet_lt.qm
- translations/Spreadsheet_val-ES.qm
- translations/Spreadsheet_ar.qm
- translations/Spreadsheet_vi.qm
- translations/Spreadsheet_es-AR.qm
- translations/Spreadsheet_bg.qm
- translations/Spreadsheet_ka.qm
- translations/Spreadsheet_sr-CS.qm
- translations/Spreadsheet_be.qm
icons/SpreadsheetAlias.svg
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_af.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_af.qm
deleted file mode 100644
index d84238265e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_af.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ar.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ar.qm
deleted file mode 100644
index 8586653172..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ar.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_be.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_be.qm
deleted file mode 100644
index 2a312b8eaa..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_be.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_bg.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_bg.qm
deleted file mode 100644
index 0fbc1eeefb..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_bg.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ca.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ca.qm
deleted file mode 100644
index 30dce976e7..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ca.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_cs.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_cs.qm
deleted file mode 100644
index a0a21b2ce9..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_cs.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_de.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_de.qm
deleted file mode 100644
index 8a03efcd1e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_de.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_el.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_el.qm
deleted file mode 100644
index d01da01ff8..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_el.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-AR.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-AR.qm
deleted file mode 100644
index 565e648b9e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-AR.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-ES.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-ES.qm
deleted file mode 100644
index dc00b31d51..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_es-ES.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_eu.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_eu.qm
deleted file mode 100644
index 4c38e87d05..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_eu.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fi.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fi.qm
deleted file mode 100644
index 7f94131633..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fi.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fil.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fil.qm
deleted file mode 100644
index cd2f12f012..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fil.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fr.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fr.qm
deleted file mode 100644
index ef62478124..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_fr.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_gl.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_gl.qm
deleted file mode 100644
index b709c1828c..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_gl.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hr.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hr.qm
deleted file mode 100644
index a2e4106907..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hr.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hu.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hu.qm
deleted file mode 100644
index cacfbebd6c..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_hu.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_id.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_id.qm
deleted file mode 100644
index 9e22a1ee84..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_id.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_it.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_it.qm
deleted file mode 100644
index a4392fea41..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_it.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ja.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ja.qm
deleted file mode 100644
index 07e4161397..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ja.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ka.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ka.qm
deleted file mode 100644
index 3d42b05473..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ka.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_kab.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_kab.qm
deleted file mode 100644
index e142f4eb6e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_kab.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ko.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ko.qm
deleted file mode 100644
index c84a4fe506..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ko.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_lt.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_lt.qm
deleted file mode 100644
index 0da6873b7f..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_lt.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_nl.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_nl.qm
deleted file mode 100644
index 8c90627016..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_nl.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_no.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_no.qm
deleted file mode 100644
index 4277ed430d..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_no.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pl.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pl.qm
deleted file mode 100644
index e349d07940..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pl.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-BR.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-BR.qm
deleted file mode 100644
index 8570f81408..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-BR.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-PT.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-PT.qm
deleted file mode 100644
index fcbe0c7fde..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_pt-PT.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ro.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ro.qm
deleted file mode 100644
index 54de780e92..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ro.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ru.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ru.qm
deleted file mode 100644
index 0ceb2d0453..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_ru.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sk.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sk.qm
deleted file mode 100644
index a80e4f911b..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sk.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sl.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sl.qm
deleted file mode 100644
index f2ada20eaf..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sl.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr-CS.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr-CS.qm
deleted file mode 100644
index a7fd664f44..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr-CS.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr.qm
deleted file mode 100644
index 9e1102d96e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sr.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sv-SE.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sv-SE.qm
deleted file mode 100644
index 16c100987a..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_sv-SE.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_tr.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_tr.qm
deleted file mode 100644
index 3814cfd25c..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_tr.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_uk.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_uk.qm
deleted file mode 100644
index 964584adfb..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_uk.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_val-ES.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_val-ES.qm
deleted file mode 100644
index fe1f3363a0..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_val-ES.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_vi.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_vi.qm
deleted file mode 100644
index 8948350715..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_vi.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-CN.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-CN.qm
deleted file mode 100644
index dcaed6710f..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-CN.qm and /dev/null differ
diff --git a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-TW.qm b/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-TW.qm
deleted file mode 100644
index c65692e79e..0000000000
Binary files a/src/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet_zh-TW.qm and /dev/null differ