From 7d699a2ed265d67a6a48f48cf98fa4ee04fabb1e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 27 Jan 2020 18:33:43 +0100 Subject: Rename zh_Hans -> zh_CN and zh_Hant -> zh_TW fixes #524 --- cmake/UseGettext.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake') diff --git a/cmake/UseGettext.cmake b/cmake/UseGettext.cmake index 3abf418e..17734a26 100644 --- a/cmake/UseGettext.cmake +++ b/cmake/UseGettext.cmake @@ -16,7 +16,7 @@ function(gettext_compile project_name) set(target_file ${CMAKE_BINARY_DIR}/locale/${lang}/LC_MESSAGES/${project_name}.mo) _gettext_mkdir_for_file(${target_file}) list(APPEND target_files ${target_file}) - add_custom_command(OUTPUT ${target_file} COMMAND ${MSGFMT_EXECUTABLE} -o ${target_file} ${source_file} DEPENDS ${source_file}) + add_custom_command(OUTPUT ${target_file} COMMAND ${MSGFMT_EXECUTABLE} --check-format -o ${target_file} ${source_file} DEPENDS ${source_file}) install(FILES ${target_file} DESTINATION ${LOCALE_INSTALL_DIR}/${lang}/LC_MESSAGES) endforeach(lang) if(ARGS_MO_FILES_NAME) @@ -25,4 +25,4 @@ function(gettext_compile project_name) if(ARGS_TARGET_NAME) add_custom_target(${ARGS_TARGET_NAME} DEPENDS ${target_files}) endif(ARGS_TARGET_NAME) -endfunction(gettext_compile) \ No newline at end of file +endfunction(gettext_compile) -- cgit v1.2.3-70-g09d2