From 2f706891f32258c2b070471905f983e4585296d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Fri, 26 Jun 2020 11:36:35 +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 <slavek.banko@axis.cz>
---
 kcontrol/hwmanager/CMakeLists.txt                 | 22 +++++++++++++++-------
 kcontrol/hwmanager/hwdevicetray-autostart.desktop | 12 ------------
 kcontrol/hwmanager/hwdevicetray.desktop           | 12 ------------
 kcontrol/hwmanager/hwmanager.desktop              | 23 +----------------------
 4 files changed, 16 insertions(+), 53 deletions(-)

(limited to 'kcontrol/hwmanager')

diff --git a/kcontrol/hwmanager/CMakeLists.txt b/kcontrol/hwmanager/CMakeLists.txt
index 954c41fc3..be8d3f2cb 100644
--- a/kcontrol/hwmanager/CMakeLists.txt
+++ b/kcontrol/hwmanager/CMakeLists.txt
@@ -24,13 +24,21 @@ link_directories(
 
 ##### other data ################################
 
-install( FILES hwmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
-install( FILES hwdevicetray.desktop
-         DESTINATION ${XDG_APPS_INSTALL_DIR}
-         RENAME tdehwdevicetray.desktop )
-install( FILES hwdevicetray-autostart.desktop
-         DESTINATION ${AUTOSTART_INSTALL_DIR}
-         RENAME tdehwdevicetray-autostart.desktop )
+tde_create_translated_desktop(
+  SOURCE hwmanager.desktop
+  PO_DIR kcontrol-desktops
+)
+tde_create_translated_desktop(
+  SOURCE hwdevicetray.desktop
+  OUTPUT_NAME tdehwdevicetray.desktop
+  PO_DIR kcontrol-desktops
+)
+tde_create_translated_desktop(
+  SOURCE hwdevicetray-autostart.desktop
+  DESTINATION ${AUTOSTART_INSTALL_DIR}
+  OUTPUT_NAME tdehwdevicetray-autostart.desktop
+  PO_DIR kcontrol-desktops
+)
 
 
 ##### kcm_iccconfig (module) ####################
diff --git a/kcontrol/hwmanager/hwdevicetray-autostart.desktop b/kcontrol/hwmanager/hwdevicetray-autostart.desktop
index 07f62f05b..ce078465d 100644
--- a/kcontrol/hwmanager/hwdevicetray-autostart.desktop
+++ b/kcontrol/hwmanager/hwdevicetray-autostart.desktop
@@ -2,20 +2,8 @@
 Name=tdehwdevicetray
 
 GenericName=Device Monitor
-GenericName[cs]=Sledování zařízení
-GenericName[de]=Geräteüberwachung
-GenericName[es]=Monitor de dispositivos
-GenericName[fr]=Moniteur de périphériques
-GenericName[it]=Monitor dei dispositivi hardware
-GenericName[ru]=Диспетчер устройств
 
 Comment=Monitor hardware devices from the system tray
-Comment[cs]=Sledování hardwarových zařízení ze systémového panelu
-Comment[de]=Überwacht Hardware-Geräte aus dem Systembereich der Kontrollleiste heraus
-Comment[es]=Observe dispositivos desde área de notificación
-Comment[fr]=Surveille les périphériques matériels depuis la barre d’état système
-Comment[it]=Monitora i dispositivi hardware dall’area di notifica di sistema
-Comment[ru]=Отслеживание устройств в области уведомлений
 
 Exec=tdehwdevicetray
 Icon=hwinfo
diff --git a/kcontrol/hwmanager/hwdevicetray.desktop b/kcontrol/hwmanager/hwdevicetray.desktop
index b85069ed3..9a655490c 100644
--- a/kcontrol/hwmanager/hwdevicetray.desktop
+++ b/kcontrol/hwmanager/hwdevicetray.desktop
@@ -2,20 +2,8 @@
 Name=Device Monitor
 
 Name=Device Monitor
-Name[cs]=Sledování zařízení
-Name[de]=Geräteüberwachung
-Name[es]=Monitor de dispositivos
-Name[fr]=Moniteur de périphériques
-Name[it]=Monitor dei dispositivi hardware
-Name[ru]=Диспетчер устройств
 
 Comment=Monitor hardware devices from the system tray
-Comment[cs]=Sledování hardwarových zařízení ze systémového panelu
-Comment[de]=Überwacht Hardware-Geräte aus dem Systembereich der Kontrollleiste heraus
-Comment[es]=Observe dispositivos desde área de notificación
-Comment[fr]=Surveille les périphériques matériels depuis la barre d’état système
-Comment[it]=Monitora i dispositivi hardware dall’area di notifica di sistema
-Comment[ru]=Отслеживание устройств в области уведомлений
 
 Exec=tdehwdevicetray
 Icon=hwinfo
diff --git a/kcontrol/hwmanager/hwmanager.desktop b/kcontrol/hwmanager/hwmanager.desktop
index 4b77f5775..e39ead101 100644
--- a/kcontrol/hwmanager/hwmanager.desktop
+++ b/kcontrol/hwmanager/hwmanager.desktop
@@ -9,31 +9,10 @@ X-TDE-ParentApp=kcontrol
 X-TDE-SubstituteUID=true
 
 Name=Device Manager
-Name[bg]=Управление на устройства
-Name[cs]=Správce zařízení
-Name[de]=Geräteverwaltung
-Name[es]=Administrador de dispositivos
-Name[fr]=Gestionnaire de périphériques
-Name[it]=Gestore dei dispositivi hardware
-Name[ru]=Менеджер устройств
 
 Comment=Configure hardware devices
-Comment[bg]=Конфигурация на устройства
-Comment[cs]=Nastavení hardwarových zařízení
-Comment[de]=Hardware-Geräte einrichten
-Comment[es]=Configuración de dispositivos
-Comment[fr]=Configurer des périphériques matériels
-Comment[it]=Configurazione dei dispositivi hardware
-Comment[ru]=Конфигурация устройств
 
 Keywords=hardware;devices;manager;
-Keywords[bg]=оборудване;устройства;управление;
-Keywords[cs]=hardware;zařízení;správce;
-Keywords[de]=Hardware;Geräte;Verwaltung;
-Keywords[es]=hardware;dispositivos;
-Keywords[fr]=Matériel;équipement;gestion
-Keywords[it]=hardware;dispositivi;gestore;gestione;configurazione
-Keywords[ru]=оборудование;усройства;
 
 Categories=Qt;TDE;X-TDE-settings-hardware;
-NoDisplay=false
\ No newline at end of file
+NoDisplay=false
-- 
cgit v1.2.1