summaryrefslogtreecommitdiffstats
path: root/IconThemes/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-11 14:54:26 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-12 14:21:08 +0200
commit7c7c238be19c9d17b1182d0b0fad31479aa7f59a (patch)
treedc86c967040e3d25bdabd4af40e606f2484930dc /IconThemes/CMakeLists.txt
parent0dc9e3c5476898c5fd5308cbdd84755b7b6c1c23 (diff)
downloadtdeartwork-7c7c238be19c9d17b1182d0b0fad31479aa7f59a.tar.gz
tdeartwork-7c7c238be19c9d17b1182d0b0fad31479aa7f59a.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 <slavek.banko@axis.cz>
Diffstat (limited to 'IconThemes/CMakeLists.txt')
-rw-r--r--IconThemes/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/IconThemes/CMakeLists.txt b/IconThemes/CMakeLists.txt
index 71da83f1..b692ff00 100644
--- a/IconThemes/CMakeLists.txt
+++ b/IconThemes/CMakeLists.txt
@@ -17,7 +17,11 @@ set(ICON_SIZES 16x16 22x22 32x32 48x48 64x64 128x128 scalable)
set(ICON_SUFFIXES png mng svg svgz)
foreach (theme ${ICON_THEMES})
- install(FILES ${theme}/index.theme DESTINATION ${ICON_INSTALL_DIR}/${theme} )
+ tde_create_translated_desktop(
+ SOURCE ${theme}/index.theme
+ DESTINATION ${ICON_INSTALL_DIR}/${theme}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/icon-themes
+ )
foreach(size ${ICON_SIZES})
foreach(type ${ICON_TYPES})
foreach(suffix ${ICON_SUFFIXES})
@@ -27,4 +31,3 @@ foreach (theme ${ICON_THEMES})
endforeach(type ${ICON_TYPES})
endforeach(size ${ICON_SIZES})
endforeach (theme ${ICON_THEMES})
-