aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-01-27 18:33:43 +0100
committerfiaxh <git@lightrise.org>2020-01-29 00:38:12 +0100
commit7d699a2ed265d67a6a48f48cf98fa4ee04fabb1e (patch)
tree70d6e6027bfc2eea8b96f59b589cdc4bb4a09e66 /cmake
parent74dc1c1739aa0ad2afc924075c698b2a85f1f496 (diff)
downloaddino-7d699a2ed265d67a6a48f48cf98fa4ee04fabb1e.tar.gz
dino-7d699a2ed265d67a6a48f48cf98fa4ee04fabb1e.zip
Rename zh_Hans -> zh_CN and zh_Hant -> zh_TW
fixes #524
Diffstat (limited to 'cmake')
-rw-r--r--cmake/UseGettext.cmake4
1 files changed, 2 insertions, 2 deletions
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)