From 21e44df6ddce1a666ec4a5530864e76c879cbb58 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Tue, 26 May 2009 19:03:02 +0200 Subject: linguas pass 2. This time show up message what i am going to do. --- po/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 6be2629..cf940ab 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -18,14 +18,24 @@ IF ( DEFINED $ENV{LINGUAS} ) SET ( _po_files ) IF ( $ENV{LINGUAS} ) # only specified languages + SET ( _install ) FOREACH ( _lang $ENV{LINGUAS} ) IF ( EXISTS ${CURRENT_SOURCE_DIR}/${_lang}.po ) LIST ( APPEND _po_files ${CURRENT_SOURCE_DIR}/${_lang}.po ) + LIST ( APPEND _install ${_lang} ) ENDIF ( EXISTS ${CURRENT_SOURCE_DIR}/${_lang}.po ) ENDFOREACH ( _lang ) + IF ( ${_install} ) + MESSAGE ( "Installing translations: ${_install}" ) + ELSE ( ${_install} ) + MESSAGE ( "LINGUAS variable is set but no coresponding availible translations found. Installing none" ) + ENDIF ( ${_install} ) + ELSE ( $ENV{LINGUAS} ) + MESSAGE ( "LINGUAS variable is empty so no languages will be installed" ENDIF ( $ENV{LINGUAS} ) ELSE ( DEFINED $ENV{LINGUAS} ) # all languages + MESSAGE ( "Installing all available languages." FILE ( GLOB _po_files *.po ) ENDIF ( DEFINED $ENV{LINGUAS} ) SET ( _gmoFiles ) -- cgit v1.2.3