From: Giuseppe Bilotta Date: Sat, 23 Jul 2011 14:15:29 +0000 (+0200) Subject: Do not package en translation, since we don't build it X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5aa2679be7696862066edf617dc5a8261b7325ab;p=zefram%2Fminetest%2Fminetest_engine.git Do not package en translation, since we don't build it --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6daf9385..c50b74dc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -267,9 +267,11 @@ if(BUILD_CLIENT) if(GETTEXT_FOUND AND USE_GETTEXT) foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES}) - set_mo_paths(MO_BUILD_PATH MO_DEST_PATH ${LOCALE}) - set(MO_BUILD_PATH "${MO_BUILD_PATH}/${PROJECT_NAME}.mo") - install(FILES ${MO_BUILD_PATH} DESTINATION ${MO_DEST_PATH}) + if (NOT LOCALE STREQUAL "en") + set_mo_paths(MO_BUILD_PATH MO_DEST_PATH ${LOCALE}) + set(MO_BUILD_PATH "${MO_BUILD_PATH}/${PROJECT_NAME}.mo") + install(FILES ${MO_BUILD_PATH} DESTINATION ${MO_DEST_PATH}) + endif(NOT LOCALE STREQUAL "en") endforeach(LOCALE ${GETTEXT_AVAILABLE_LOCALES}) endif()