summaryrefslogtreecommitdiffstats
path: root/tdeioslave/iso
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-07 18:25:52 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-07 18:48:13 +0200
commit9756408b0ebb206b53abd2597926d8fead731977 (patch)
tree62caa2c2ebd6ebccc5472fdc7469fe54dad8b24f /tdeioslave/iso
parentc95c7a29338aa309fab071b5a4475400fdce97a8 (diff)
downloadtdelibs-9756408b0ebb206b53abd2597926d8fead731977.tar.gz
tdelibs-9756408b0ebb206b53abd2597926d8fead731977.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> (cherry picked from commit 4b7a4e17362206fd2eade35ba947a850263b0ea1)
Diffstat (limited to 'tdeioslave/iso')
-rw-r--r--tdeioslave/iso/CMakeLists.txt27
-rw-r--r--tdeioslave/iso/isoservice.desktop6
-rw-r--r--tdeioslave/iso/tdeio_iso.desktop4
3 files changed, 25 insertions, 12 deletions
diff --git a/tdeioslave/iso/CMakeLists.txt b/tdeioslave/iso/CMakeLists.txt
index 79c795ceb..b26827a2d 100644
--- a/tdeioslave/iso/CMakeLists.txt
+++ b/tdeioslave/iso/CMakeLists.txt
@@ -30,10 +30,29 @@ link_directories(
##### other data ################################
-install( FILES iso.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES isoservice.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
-install( FILES tdeio_isorc DESTINATION ${CONFIG_INSTALL_DIR} )
-install( FILES tdeio_iso.desktop DESTINATION ${APPS_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE iso.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE isoservice.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE tdeio_isorc
+ DESTINATION ${CONFIG_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE tdeio_iso.desktop
+ DESTINATION ${APPS_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops
+)
##### tdeio_iso ###################################
diff --git a/tdeioslave/iso/isoservice.desktop b/tdeioslave/iso/isoservice.desktop
index 55b4b232e..3a49ae782 100644
--- a/tdeioslave/iso/isoservice.desktop
+++ b/tdeioslave/iso/isoservice.desktop
@@ -4,11 +4,7 @@ Actions=OpenISO
X-TDE-ServiceTypes=inode/blockdevice,application/x-iso
[Desktop Action OpenISO]
+Name=ISO9660 View
Comment=ISO9660 View
-Comment[hu]=ISO9660 Nézet
-Comment[fr]=Lecteur ISO9660
Icon=cd
-Name=ISO9660 View
-Name[hu]=ISO9660 Nézet
-Name[fr]=Lecteur ISO9660
Exec=kfmclient exec iso:%f
diff --git a/tdeioslave/iso/tdeio_iso.desktop b/tdeioslave/iso/tdeio_iso.desktop
index 89b7f2e23..133adfa6c 100644
--- a/tdeioslave/iso/tdeio_iso.desktop
+++ b/tdeioslave/iso/tdeio_iso.desktop
@@ -1,13 +1,11 @@
[Desktop Entry]
Type=Application
+Name=ISO9660 Image Viewer
Exec=konqueror iso:%f
Icon=cd
Terminal=false
MimeType=application/x-iso;
X-TDE-InitialPreference=10
NoDisplay=true
-Name=ISO9660 Image Viewer
-Name[hu]=ISO9660 Nézet
-Name[fr]=Lecteur ISO9660
X-DCOP-ServiceType=None
Categories=Qt;TDE;System;