diff options
author | mlaurent <mlaurent@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-05-04 06:44:57 +0000 |
---|---|---|
committer | mlaurent <mlaurent@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-05-04 06:44:57 +0000 |
commit | 966e6f9e0999cae9bf6ffe6a936ed62ab9e47a17 (patch) | |
tree | fdaa9ec23c8d1291950409b581203db86301c000 | |
parent | Extract messages (diff) | |
download | rekonq-966e6f9e0999cae9bf6ffe6a936ed62ab9e47a17.tar.xz |
Don't go in po directory (we use Messages.sh)
keep po file in this directory for the moment but I think that
it can move in l10n-kde4
git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/playground/network/rekonq@963194 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/CMakeLists.txt | 34 |
2 files changed, 0 insertions, 35 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cbc3de2..2d041b2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,6 @@ IF(REKONQ_CAN_BE_COMPILED) ADD_SUBDIRECTORY( src ) ADD_SUBDIRECTORY( icons ) ADD_SUBDIRECTORY( data ) - ADD_SUBDIRECTORY( po ) # ADD_SUBDIRECTORY( doc ) ENDIF(REKONQ_CAN_BE_COMPILED) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt deleted file mode 100644 index 261e9e4c..00000000 --- a/po/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt) - -IF(NOT GETTEXT_MSGFMT_EXECUTABLE) - MESSAGE( -"------ - NOTE: msgfmt not found. Translations will *not* be installed -------") -ELSE(NOT GETTEXT_MSGFMT_EXECUTABLE) - - SET(catalogname rekonq) - - ADD_CUSTOM_TARGET(translations ALL) - - FILE(GLOB PO_FILES ${catalogname}*.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 ${LOCALE_INSTALL_DIR}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo) - ENDIF( _langCode ) - - ENDFOREACH(_poFile ${PO_FILES}) - -ENDIF(NOT GETTEXT_MSGFMT_EXECUTABLE) - |