diff options
author | Slávek Banko <[email protected]> | 2020-06-11 14:54:26 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-12 15:24:51 +0200 |
commit | c6babe2180543ce656d7c517d6db047285295597 (patch) | |
tree | 90bf7fd65cc790d7ea5fb306fc9a6f5a56cc12c9 /tdescreensaver/kxsconfig/CMakeLists.txt | |
parent | 95331e2c05fce1a8abe31b62f77a4f1d72ca1fd3 (diff) | |
download | tdeartwork-c6babe2180543ce656d7c517d6db047285295597.tar.gz tdeartwork-c6babe2180543ce656d7c517d6db047285295597.zip |
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules.
+ Added creation of translated desktop files during build.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 7c7c238be19c9d17b1182d0b0fad31479aa7f59a)
Diffstat (limited to 'tdescreensaver/kxsconfig/CMakeLists.txt')
-rw-r--r-- | tdescreensaver/kxsconfig/CMakeLists.txt | 9 |
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}) - |