summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-04-06 15:35:29 +0200
committerSlávek Banko <[email protected]>2020-04-06 15:36:17 +0200
commit789f327dd345cd890e2813dcab41eec347182994 (patch)
tree5d2d5db9fbc52edc060d88e42fb60e8f3ba18c5f /src
parentb50a9bd4981088e632ba33e2140f8941678b9ddf (diff)
downloadkcmautostart-789f327dd345cd890e2813dcab41eec347182994.tar.gz
kcmautostart-789f327dd345cd890e2813dcab41eec347182994.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]> (cherry picked from commit a0793ba1b3ee8f50463ec0403112f8fc6bb3b587)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/autostart.desktop7
3 files changed, 6 insertions, 11 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 51f7c6d..21807f9 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/autostart" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/autostart.desktop/"
+ SOURCES autostart.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ef9d1d7..b2b25d0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,7 +23,4 @@ tde_add_kpart( kcm_autostart AUTOMOC
##### other data
-install(
- FILES autostart.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( autostart.desktop )
diff --git a/src/autostart.desktop b/src/autostart.desktop
index 016c8c5..4b6c70f 100644
--- a/src/autostart.desktop
+++ b/src/autostart.desktop
@@ -9,15 +9,8 @@ X-TDE-Library=autostart
X-TDE-HasReadOnlyMode=false
X-TDE-ParentApp=kcontrol
-Encoding=UTF-8
Comment=A tool for managing what programs start up with TDE
-Comment[ca]=Panell de control per a gestionar els programes que s'inicien amb la sessió de TDE
-Comment[es]=Panel de control para gestionar los programas que se inician con la sesión de TDE
-Comment[fr]=Paneau de contrôle pour gérer le démarrage des programmes àl'ouverture de session TDE
Keywords=autostart manager;
Name=Autostart Manager
-Name[ca]=Autoengega
-Name[es]=Arranque automático
-Name[fr]=Démarrage automatique
Categories=Qt;TDE;X-TDE-settings-components;
X-DocPath=autostart/index.html