From 2f706891f32258c2b070471905f983e4585296d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jun 2020 11:36:35 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kdcop/CMakeL10n.txt | 6 ++++++ kdcop/CMakeLists.txt | 2 +- kdcop/kdcop.desktop | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'kdcop') 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 -- cgit v1.2.1