summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-29 22:43:34 +0200
committerSlávek Banko <[email protected]>2020-07-30 16:00:07 +0200
commitfe44776673b28ca94338f23d8e7ac71593fa88ba (patch)
treeb900146c853acbd44900bfb77a35a1af3c77aa5d /CMakeLists.txt
parentc0b663c4c873df495743600b8f703744420eddfa (diff)
downloadtdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.tar.gz
tdevelop-fe44776673b28ca94338f23d8e7ac71593fa88ba.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]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt22
1 files changed, 14 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72be575f..82c4a5a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -161,19 +161,25 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### install data ##############################
-install( FILES
+tde_create_translated_desktop(
+ SOURCE
tdevelop.desktop kdevassistant.desktop tdevelop_ruby.desktop
tdevelop_c_cpp.desktop tdevelop_kde_cpp.desktop
tdevelop_scripting.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR} )
+ PO_DIR tdevelop-desktops
+)
-install( FILES
- tde-development-tdevelop.directory
- DESTINATION ${XDG_DIRECTORY_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE tde-development-tdevelop.directory
+ DESTINATION ${XDG_DIRECTORY_INSTALL_DIR}
+ PO_DIR tdevelop-desktops
+)
-install( FILES
- x-tdevelop.desktop
- DESTINATION ${MIME_INSTALL_DIR}/application )
+tde_create_translated_desktop(
+ SOURCE x-tdevelop.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR tdevelop-desktops
+)
install( PROGRAMS
kdevprj2kdevelop