From 342c359f0d7ba5ee8d3ad3f9157060247c0602bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 1 May 2020 19:22:24 +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 (cherry picked from commit 094a30578fcf24aa9c60fab93b924651d90ef299) --- src/CMakeL10n.txt | 5 +++++ src/CMakeLists.txt | 5 +---- src/knutclient.desktop | 5 ----- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 9002759..36edd9b 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/knutclient" ) + +tde_l10n_create_template( + CATALOG "desktop_files/knutclient.desktop/" + SOURCES knutclient.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c2d88ab..17ff33e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,7 +55,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${APPS_INSTALL_DIR}/Utilities -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/knutclient.desktop b/src/knutclient.desktop index f1d259d..c2c32af 100644 --- a/src/knutclient.desktop +++ b/src/knutclient.desktop @@ -7,13 +7,8 @@ Icon=knutclient MiniIcon=knutclient X-DocPath=knutclient/index.html Name=KNutClient -Name[de]=KNutClient -Name[cs]=KNutClient GenericName=Network UPS Client Comment=Client for NUT -Comment[de]= -Comment[cs]=Klient pro UPS syst� NUT -Comment[es]=Cliente TDE para NUT Terminal=0 X-TDE-StartupNotify=true Categories=Qt;TDE;System;Monitor; -- cgit v1.2.1