X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=i18n%2FCMakeLists.txt;h=f3d3ac2c45b394659b42aab0f00321372e9b10a9;hp=2841799d5c54a96d645b38923a1c925ef44e0f3c;hb=ad79428b72613730f61b0b3fdb18afa21eee3cc7;hpb=13107a33c065fe6c6fb402ae24e2adbfcf743287 diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt index 2841799d..f3d3ac2c 100644 --- a/i18n/CMakeLists.txt +++ b/i18n/CMakeLists.txt @@ -1,15 +1,15 @@ # Generate and add translations # The LINGUAS variable can be used to limit that set -if(QT_LRELEASE_EXECUTABLE) - # We always include quassel.ts +if(QT_LCONVERT_EXECUTABLE) + # We always include quassel.po generate_qm(QM quassel) set(qm_files ${QM}) # Find more languages - file(GLOB avail_tsfiles quassel_*.ts qt_*.ts) - foreach(TS_FILE ${avail_tsfiles}) - get_filename_component(basename ${TS_FILE} NAME_WE) + file(GLOB avail_pofiles quassel_*.po qt_*.po) + foreach(PO_FILE ${avail_pofiles}) + get_filename_component(basename ${PO_FILE} NAME_WE) string(REGEX REPLACE "q[^_]+_([a-zA-Z]+)(_.+)?$" "\\1" lang ${basename}) # test if we want this set(flg 1) @@ -21,14 +21,14 @@ if(QT_LRELEASE_EXECUTABLE) list(APPEND qm_files ${QM}) list(APPEND gen_linguas ${lang}) endif(flg) - endforeach(TS_FILE ${avail_tsfiles}) + endforeach(PO_FILE ${avail_pofiles}) if(gen_linguas) list(REMOVE_DUPLICATES gen_linguas) endif(gen_linguas) 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) +else(QT_LCONVERT_EXECUTABLE) + message(STATUS "WARNING: lconvert not found, you won't have translations!") +endif(QT_LCONVERT_EXECUTABLE) # For a static build, we need to include Qt translations if available if(STATIC AND QT_TRANSLATIONS_DIR) @@ -54,7 +54,7 @@ endforeach(file ${qm_files}) file(APPEND ${resfile} "\n\n") #add_custom_command(OUTPUT ${resfile} DEPENDS ${qm_files}) -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${qm_files} i18n.qrc") +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${qm_files};i18n.qrc") if(EMBED_DATA) set(COMMON_RCS ${COMMON_RCS} ${resfile} PARENT_SCOPE)