summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-gitorious@lart.info>2011-04-06 17:05:45 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-06 17:10:57 +0200
commitce90df158e396eadbb26f48b2f981a9a7d4dd8cb (patch)
tree322701d92eb9e054955c159868c8ca8bbf220729
parent6555221077d9805913dde0c41b51d2063ff1db50 (diff)
downloadmana-ce90df158e396eadbb26f48b2f981a9a7d4dd8cb.tar.gz
mana-ce90df158e396eadbb26f48b2f981a9a7d4dd8cb.tar.bz2
mana-ce90df158e396eadbb26f48b2f981a9a7d4dd8cb.tar.xz
mana-ce90df158e396eadbb26f48b2f981a9a7d4dd8cb.zip
Only create gmo files for po files active in LINGUAS.
This avoids adding every translations in the installer. Reviewed-by: Bertram.
-rw-r--r--po/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index 4ee62c87..08abb6bf 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -66,16 +66,16 @@ ENDMACRO()
SET(languages)
+SET(POFILES)
FILE(STRINGS LINGUAS _languages)
FOREACH(_lang ${_languages})
STRING(REGEX REPLACE "#.*" "" _lang "${_lang}")
IF(NOT ${_lang} STREQUAL "")
SET(languages ${languages} ${_lang})
+ SET(POFILES ${POFILES} "${_lang}.po")
ENDIF()
ENDFOREACH()
-FILE(GLOB POFILES *.po)
-
ADD_CUSTOM_TARGET(update-po)
MANA_GETTEXT_CREATE_TRANSLATIONS(mana.pot ALL ${POFILES})