summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2022-08-29 12:27:36 +0200
committerSlávek Banko <[email protected]>2022-08-29 12:45:35 +0200
commitca2dbcf15ee4c06ceddf4476e47101dc12156250 (patch)
tree15ce5e8eb01551755f5b2823ad8a82c39a6e45d1 /src
parent171bba15a85339862f84d5e1f336373a6fd0d1f5 (diff)
downloadtastymenu-ca2dbcf15ee4c06ceddf4476e47101dc12156250.tar.gz
tastymenu-ca2dbcf15ee4c06ceddf4476e47101dc12156250.zip
Copy translations to a new directory layout.
Use common rules for build and install translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1d17efbaf6a68bec6ae87dac04566c16de81c9a6)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt7
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/tastymenu.desktop8
3 files changed, 12 insertions, 7 deletions
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