# Generates or updates translation files from a pot file using msginit or msgmerge. # # Usage: # cmake -DPOT_FILE= \ # -DLANG_FILE= \ # -DLANG= \ # -DMSGMERGE_EXE= \ # -DMSGINIT_EXE= \ # -P generate_translations.cmake if (EXISTS ${LANG_FILE}) message(STATUS "Updating ${LANG_FILE}") execute_process(COMMAND ${MSGMERGE_EXE} -U ${LANG_FILE} ${POT_FILE}) else() execute_process(COMMAND ${MSGINIT_EXE} --no-translator -l ${LANG}.UTF-8 -o ${LANG_FILE} -i ${POT_FILE}) endif()