File corectrl-translations-install.patch of Package corectrl

diff '--color=auto' -rub a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2023-11-06 01:02:06.844931221 +0600
+++ b/CMakeLists.txt	2023-11-06 01:06:16.432953463 +0600
@@ -122,3 +122,15 @@
   DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/metainfo
   RENAME ${PROJECT_FQDN}.appdata.xml
 )
+
+# Languages
+string(TOLOWER "${PROJECT_NAME}" QM_NAME)
+install(FILES src/translations/lang_bg_BG.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_bg_BG.qm)
+install(FILES src/translations/lang_ca_ES.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_ca_ES.qm)
+install(FILES src/translations/lang_cs_CZ.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_cs_CZ.qm)
+install(FILES src/translations/lang_de_DE.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_de_DE.qm)
+install(FILES src/translations/lang_en_EN.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_en_EN.qm)
+install(FILES src/translations/lang_es_ES.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_es_ES.qm)
+install(FILES src/translations/lang_fr_FR.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_fr_FR.qm)
+install(FILES src/translations/lang_nl_NL.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_nl_NL.qm)
+install(FILES src/translations/lang_ru_RU.qm DESTINATION share/qt5/translations RENAME ${QM_NAME}_ru_RU.qm)
openSUSE Build Service is sponsored by