summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-06 15:35:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-06 15:35:29 +0200
commita0793ba1b3ee8f50463ec0403112f8fc6bb3b587 (patch)
tree0bc8a517a17d730c92ce56089b1267a170641a67 /src
parent3bcc801b31f7cd5b5f2998d919ab826de87e4b24 (diff)
downloadkcmautostart-a0793ba1b3ee8f50463ec0403112f8fc6bb3b587.tar.gz
kcmautostart-a0793ba1b3ee8f50463ec0403112f8fc6bb3b587.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 <slavek.banko@axis.cz>
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