diff options
| author | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-05-26 19:03:02 +0200 |
|---|---|---|
| committer | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-05-26 19:03:02 +0200 |
| commit | 21e44df6ddce1a666ec4a5530864e76c879cbb58 (patch) | |
| tree | 776f952ffa8402721a3da894aad5dbe57ea46a9b /po | |
| parent | 4cb5d50649ed53acafe997f09c2aab1466021474 (diff) | |
linguas pass 2. This time show up message what i am going to do.
Diffstat (limited to 'po')
| -rw-r--r-- | po/CMakeLists.txt | 10 |
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 ) |