From ca2dbcf15ee4c06ceddf4476e47101dc12156250 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Mon, 29 Aug 2022 12:27:36 +0200 Subject: Copy translations to a new directory layout. Use common rules for build and install translations. Added translation of .desktop files. 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 1d17efbaf6a68bec6ae87dac04566c16de81c9a6) --- src/CMakeL10n.txt | 7 ++++++- src/CMakeLists.txt | 4 ++-- src/tastymenu.desktop | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 8368157..535ca38 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## -tde_l10n_create_template( "tastymenu" ) +tde_l10n_create_template( "messages/tastymenu" ) + +tde_l10n_create_template( + CATALOG "desktop_files/tastymenu-desktops" + SOURCES *.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1b8feb0..6de7d61 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -61,8 +61,8 @@ tde_add_kpart( tastymenu_panelapplet AUTOMOC ##### other data -install( - FILES tastymenu.desktop +tde_create_translated_desktop( + SOURCE tastymenu.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets ) diff --git a/src/tastymenu.desktop b/src/tastymenu.desktop index 25fe241..2db95dc 100644 --- a/src/tastymenu.desktop +++ b/src/tastymenu.desktop @@ -1,10 +1,10 @@ [Desktop Entry] -Type=Plugin -Encoding=UTF-8 -Comment=A TMenu replacement - Name=Tasty Menu +Comment=A TMenu replacement + +Type=Plugin Icon=kmenu +Encoding=UTF-8 X-TDE-Library=tastymenu_panelapplet X-TDE-UniqueApplet = false -- cgit v1.2.3