summaryrefslogtreecommitdiffstats
path: root/kdcop
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-26 11:36:35 +0200
committerSlávek Banko <[email protected]>2020-06-28 00:41:12 +0200
commit2f706891f32258c2b070471905f983e4585296d2 (patch)
tree6c74e28fd7c74d26b1c36c371a9ed56295cc05ae /kdcop
parent98f2d732f33659ba749b70fb939e8eaa0c97edf8 (diff)
downloadtdebase-2f706891f32258c2b070471905f983e4585296d2.tar.gz
tdebase-2f706891f32258c2b070471905f983e4585296d2.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 'kdcop')
-rw-r--r--kdcop/CMakeL10n.txt6
-rw-r--r--kdcop/CMakeLists.txt2
-rw-r--r--kdcop/kdcop.desktop1
3 files changed, 7 insertions, 2 deletions
diff --git a/kdcop/CMakeL10n.txt b/kdcop/CMakeL10n.txt
index 5ec992d03..0320cfdf2 100644
--- a/kdcop/CMakeL10n.txt
+++ b/kdcop/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "kdcop" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kdcop.desktop/"
+ SOURCES kdcop.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/kdcop/CMakeLists.txt b/kdcop/CMakeLists.txt
index 3ac8a1e54..5e2add8a7 100644
--- a/kdcop/CMakeLists.txt
+++ b/kdcop/CMakeLists.txt
@@ -24,7 +24,7 @@ link_directories(
##### other data ################################
install( FILES kdcopui.rc DESTINATION ${DATA_INSTALL_DIR}/kdcop )
-install( FILES kdcop.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+tde_create_translated_desktop( kdcop.desktop )
##### kdcop (executable) ########################
diff --git a/kdcop/kdcop.desktop b/kdcop/kdcop.desktop
index 02b9b42e8..5dbb1ab7a 100644
--- a/kdcop/kdcop.desktop
+++ b/kdcop/kdcop.desktop
@@ -11,4 +11,3 @@ Categories=Qt;TDE;System;
Name=KDCOP
GenericName=DCOP browser
-GenericName[de]=DCOP-Navigation \ No newline at end of file