From ce90df158e396eadbb26f48b2f981a9a7d4dd8cb Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Wed, 6 Apr 2011 17:05:45 +0200 Subject: Only create gmo files for po files active in LINGUAS. This avoids adding every translations in the installer. Reviewed-by: Bertram. --- po/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'po') 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}) -- cgit v1.2.3-70-g09d2