From 44c417e63e7c10081a41d0b26093e13f60c85925 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 6 Jul 2008 23:59:44 +0200 Subject: [PATCH] Add informational message and clean up a bit --- CMakeLists.txt | 2 +- cmake/modules/QuasselGenerateTranslations.cmake | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 884097f8..a8e46664 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,11 +112,11 @@ endif(WANT_QTCLIENT OR WANT_MONO) # Make sure version.gen exists before building mod_common add_dependencies(mod_common genversion_run) +# Generate binary translation files include(QuasselGenerateTranslations) quassel_generate_i18n_resource(RC_I18N ${LINGUAS}) # Add resources -#qt4_add_resources(RC_I18N i18n/i18n.qrc) qt4_add_resources(RC_ICONS src/icons/icons.qrc) qt4_add_resources(RC_QUASSEL_ICONS src/icons/quassel-icons.qrc) qt4_add_resources(RC_SQL src/core/sql.qrc) diff --git a/cmake/modules/QuasselGenerateTranslations.cmake b/cmake/modules/QuasselGenerateTranslations.cmake index 6330ac58..99c87a3b 100644 --- a/cmake/modules/QuasselGenerateTranslations.cmake +++ b/cmake/modules/QuasselGenerateTranslations.cmake @@ -39,6 +39,7 @@ macro(quassel_generate_i18n_resource outvar) if(flg) quassel_generate_qm(QM ${basename}) set(outfiles ${outfiles} ${QM}) + set(gen_linguas "${gen_linguas} ${lang}") endif(flg) endforeach(TS_FILE ${avail_tsfiles}) @@ -59,8 +60,9 @@ macro(quassel_generate_i18n_resource outvar) qt4_add_resources(RC_OUT ${resfile}) set(${outvar} ${RC_OUT}) + message(STATUS "Including languages:${gen_linguas}") else(QT_LRELEASE_EXECUTABLE) message(STATUS "WARNING: lrelease not found, you won't have translations!") endif(QT_LRELEASE_EXECUTABLE) -endmacro(quassel_generate_i18n_resource outvar linguas) +endmacro(quassel_generate_i18n_resource outvar) -- 2.20.1