summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
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 )