Do not package en translation, since we don't build it
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 23 Jul 2011 14:15:29 +0000 (16:15 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 24 Jul 2011 07:19:25 +0000 (09:19 +0200)
src/CMakeLists.txt

index 6daf9385cba1644f5bfc903ec8f53617bb48bcd4..c50b74dc517d6570ab388f3462ba86099d895714 100644 (file)
@@ -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()