diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 18:12:45 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 18:12:45 +0000 |
commit | b23b8edce7cbd48165084dbd852875afeb800735 (patch) | |
tree | 6fce139d187944d762e804b4e868e8a40284a121 /po/CMakeLists.txt | |
parent | 70f7d26b3b2a811ad0000cc3a26e21142d34e39f (diff) | |
download | tde-style-qtcurve-b23b8edce7cbd48165084dbd852875afeb800735.tar.gz tde-style-qtcurve-b23b8edce7cbd48165084dbd852875afeb800735.zip |
Update qtcurve to latest upstream version
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-qtcurve@1182805 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100644 index 0000000..e76a565 --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1,25 @@ +find_program(GETTEXT_MSGFMT_EXECUTABLE msgfmt) + +if(NOT GETTEXT_MSGFMT_EXECUTABLE) + message("------\n" + "NOTE: msgfmt not found. Translations will *not* be installed\n" + "------\n") +else(NOT GETTEXT_MSGFMT_EXECUTABLE) + set(catalogname qtcurve) + add_custom_target(translations ALL) + file(GLOB PO_FILES *.po) + foreach(_poFile ${PO_FILES}) + get_filename_component(_poFileName ${_poFile} NAME) + string(REGEX REPLACE "^${catalogname}_?" "" _langCode ${_poFileName} ) + string(REGEX REPLACE "\\.po$" "" _langCode ${_langCode} ) + if(_langCode) + get_filename_component(_lang ${_poFile} NAME_WE) + set(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo) + add_custom_command(TARGET translations + COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile} + DEPENDS ${_poFile}) + install(FILES ${_gmoFile} DESTINATION ${KDE3_LOCALE_PREFIX}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo) + endif( _langCode ) + endforeach(_poFile ${PO_FILES}) +endif(NOT GETTEXT_MSGFMT_EXECUTABLE) + |