summaryrefslogtreecommitdiffstats
path: root/konqueror/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-28 00:42:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-28 00:42:21 +0200
commit92841ae8b62560f0b137dc838bfd12ac78d26599 (patch)
tree77ff1aee27f10b9ba54d6c6e1f4d972c72d69b67 /konqueror/CMakeLists.txt
parent191cf4812dfa7524f32916423d79f072d88f56d1 (diff)
downloadtdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.tar.gz
tdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.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> (cherry picked from commit 2f706891f32258c2b070471905f983e4585296d2)
Diffstat (limited to 'konqueror/CMakeLists.txt')
-rw-r--r--konqueror/CMakeLists.txt69
1 files changed, 59 insertions, 10 deletions
diff --git a/konqueror/CMakeLists.txt b/konqueror/CMakeLists.txt
index 0c99b911c..bd6f9d974 100644
--- a/konqueror/CMakeLists.txt
+++ b/konqueror/CMakeLists.txt
@@ -55,23 +55,72 @@ install( FILES
##### other data ################################
install( FILES konqueror.rc konq-simplebrowser.rc DESTINATION ${DATA_INSTALL_DIR}/konqueror )
-install( FILES konqueror.desktop DESTINATION ${APPS_INSTALL_DIR} )
-install( FILES konqfilemgr.desktop DESTINATION ${APPS_INSTALL_DIR}/.hidden )
+
+tde_create_translated_desktop(
+ SOURCE konqueror.desktop
+ DESTINATION ${APPS_INSTALL_DIR}
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE konqfilemgr.desktop
+ DESTINATION ${APPS_INSTALL_DIR}/.hidden
+ PO_DIR konqueror-desktops
+)
+
install( FILES konqueror.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
-install( FILES
+tde_create_translated_desktop(
+ SOURCE
kfmclient.desktop kfmclient_dir.desktop kfmclient_html.desktop
kfmclient_war.desktop konqbrowser.desktop konquerorsu.desktop
Home.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR} )
+ PO_DIR konqueror-desktops
+)
set( PROFILEDIR ${DATA_INSTALL_DIR}/konqueror/profiles )
-install( FILES profile_webbrowsing.desktop DESTINATION ${PROFILEDIR} RENAME webbrowsing )
-install( FILES profile_filemanagement.desktop DESTINATION ${PROFILEDIR} RENAME filemanagement )
-install( FILES profile_midnightcommander.desktop DESTINATION ${PROFILEDIR} RENAME midnightcommander )
-install( FILES profile_tabbedbrowsing.desktop DESTINATION ${PROFILEDIR} RENAME tabbedbrowsing )
-install( FILES profile_kde_devel.desktop DESTINATION ${PROFILEDIR} RENAME kde_devel )
-install( FILES profile_simplebrowser.desktop DESTINATION ${PROFILEDIR} RENAME simplebrowser )
+
+tde_create_translated_desktop(
+ SOURCE profile_webbrowsing.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME webbrowsing
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE profile_filemanagement.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME filemanagement
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE profile_midnightcommander.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME midnightcommander
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE profile_tabbedbrowsing.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME tabbedbrowsing
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE profile_kde_devel.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME kde_devel
+ PO_DIR konqueror-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE profile_simplebrowser.desktop
+ DESTINATION ${PROFILEDIR}
+ OUTPUT_NAME simplebrowser
+ PO_DIR konqueror-desktops
+)
##### konqueror_intern (static lib) #############