aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-23 16:15:29 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-07-24 09:19:25 +0200
commit5aa2679be7696862066edf617dc5a8261b7325ab (patch)
tree2b10436d9a6d4c33eefa82a07d5dde816d56fbb1 /src
parentd4e7faca219ca2d9d84b02e46d591799afed32d8 (diff)
downloadminetest-5aa2679be7696862066edf617dc5a8261b7325ab.tar.gz
minetest-5aa2679be7696862066edf617dc5a8261b7325ab.tar.bz2
minetest-5aa2679be7696862066edf617dc5a8261b7325ab.zip
Do not package en translation, since we don't build it
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6daf9385c..c50b74dc5 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()