From e221d3add7634ce988beaea19f3d3045e15ab03b Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 24 May 2021 08:28:33 +0200 Subject: [PATCH] Do not change .po files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think it updated the .po files from the .pot file? It rearranged stuff and the Poedit re-rearranged stuff and so on… --- translations/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 7633523..eadb132 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -1,3 +1,4 @@ +include(GNUInstallDirs) set(potfile "${PROJECT_SOURCE_DIR}/translations/${PROJECT_NAME}.pot") if(GENERATE_POT) @@ -27,8 +28,12 @@ endif(GENERATE_POT) file(GLOB po_files "*.po") +# Hack to prevent GETTEXT_CREATE_TRANSLATIONS from updating the .po files. +set(backup_GETTEXT_MSGMERGE_EXECUTABLE ${GETTEXT_MSGMERGE_EXECUTABLE}) +set(GETTEXT_MSGMERGE_EXECUTABLE "echo") # Creates install target automatically. GETTEXT_CREATE_TRANSLATIONS(${potfile} ALL ${po_files}) +set(GETTEXT_MSGMERGE_EXECUTABLE ${backup_GETTEXT_MSGMERGE_EXECUTABLE}) unset(po_files) unset(potfile)