summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/kxsconfig/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tdescreensaver/kxsconfig/CMakeLists.txt')
-rw-r--r--tdescreensaver/kxsconfig/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/tdescreensaver/kxsconfig/CMakeLists.txt b/tdescreensaver/kxsconfig/CMakeLists.txt
index 9bb0249a..bbc9370b 100644
--- a/tdescreensaver/kxsconfig/CMakeLists.txt
+++ b/tdescreensaver/kxsconfig/CMakeLists.txt
@@ -53,14 +53,17 @@ foreach(_currentdesktopfile ${_desktopfiles})
STRING(REGEX REPLACE ".desktop" "" _newitem "${_currentdesktopfile}" )
#MESSAGE(STATUS "newItem <${_newitem}>")
GET_FILENAME_COMPONENT(_screensaverName ${_newitem} NAME_WE)
- #MESSAGE(STATUS "name without extension
+ #MESSAGE(STATUS "name without extension <${_screensaverName}>")
find_file(XSCREENSAVER_FILE_FOUND ${_screensaverName}.xml PATHS ${XSCREENSAVER_CONFIG_DIR} )
if(XSCREENSAVER_FILE_FOUND)
MESSAGE(STATUS "xscreensaver name ${_screensaverName} found")
- install(FILES ${_currentdesktopfile} DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
+ tde_create_translated_desktop(
+ SOURCE ${_currentdesktopfile}
+ DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
+ )
else(XSCREENSAVER_FILE_FOUND)
MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found")
endif(XSCREENSAVER_FILE_FOUND)
unset(XSCREENSAVER_FILE_FOUND CACHE)
endforeach(_currentdesktopfile ${_desktopfiles})
-