Do not change .po files.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
10b9f6dc5d
commit
e221d3add7
|
@ -1,3 +1,4 @@
|
||||||
|
include(GNUInstallDirs)
|
||||||
set(potfile "${PROJECT_SOURCE_DIR}/translations/${PROJECT_NAME}.pot")
|
set(potfile "${PROJECT_SOURCE_DIR}/translations/${PROJECT_NAME}.pot")
|
||||||
|
|
||||||
if(GENERATE_POT)
|
if(GENERATE_POT)
|
||||||
|
@ -27,8 +28,12 @@ endif(GENERATE_POT)
|
||||||
|
|
||||||
file(GLOB po_files "*.po")
|
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.
|
# Creates install target automatically.
|
||||||
GETTEXT_CREATE_TRANSLATIONS(${potfile} ALL ${po_files})
|
GETTEXT_CREATE_TRANSLATIONS(${potfile} ALL ${po_files})
|
||||||
|
set(GETTEXT_MSGMERGE_EXECUTABLE ${backup_GETTEXT_MSGMERGE_EXECUTABLE})
|
||||||
|
|
||||||
unset(po_files)
|
unset(po_files)
|
||||||
unset(potfile)
|
unset(potfile)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user