Do not change .po files.
continuous-integration/drone/push Build is passing Details

I think it updated the .po files from the .pot file? It rearranged stuff and the
Poedit re-rearranged stuff and so on…
This commit is contained in:
tastytea 2021-05-24 08:28:33 +02:00
parent 10b9f6dc5d
commit e221d3add7
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -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)