summary refs log tree commit diff
path: root/cmake
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:44:16 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:44:16 +0200
commit05f1f8f556ad1ffd1260c0e03d627c0ccc389541 (patch)
tree75b0162fe5546bdb638b573da88e33fe476fcff4 /cmake
parentFix communites sidebar color (diff)
downloadnheko-05f1f8f556ad1ffd1260c0e03d627c0ccc389541.tar.xz
Fix translations (and simplify resource files)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Translations.cmake28
1 files changed, 0 insertions, 28 deletions
diff --git a/cmake/Translations.cmake b/cmake/Translations.cmake
deleted file mode 100644
index 9422570d..00000000
--- a/cmake/Translations.cmake
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Generate the translation resource file
-#
-
-file(GLOB LANG_TS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/resources/langs/*.ts")
-
-qt_add_translation(QM_SRC ${LANG_TS_SRC})
-qt_create_translation(${QM_SRC})
-add_custom_target(LANG_QRC ALL DEPENDS ${QM_SRC})
-
-# Generate a qrc file for the translations
-set(_qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc)
-
-if(NOT EXISTS ${_qrc})
-  file(WRITE ${_qrc} "<RCC>\n <qresource prefix=\"/translations\">\n")
-  foreach(_lang ${QM_SRC})
-    get_filename_component(_filename ${_lang} NAME)
-    file(APPEND ${_qrc} "  <file>${_filename}</file>\n")
-  endforeach(_lang)
-  file(APPEND ${_qrc} " </qresource>\n</RCC>\n")
-endif()
-
-qt_add_resources(LANG_QRC ${_qrc})
-if(Qt5QuickCompiler_FOUND AND COMPILE_QML)
-	qtquick_compiler_add_resources(QRC resources/res.qrc)
-else()
-	qt_add_resources(QRC resources/res.qrc)
-endif()