summaryrefslogtreecommitdiffstats
path: root/tqt3integration
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-28 00:42:21 +0200
committerSlávek Banko <[email protected]>2020-06-28 00:42:21 +0200
commit92841ae8b62560f0b137dc838bfd12ac78d26599 (patch)
tree77ff1aee27f10b9ba54d6c6e1f4d972c72d69b67 /tqt3integration
parent191cf4812dfa7524f32916423d79f072d88f56d1 (diff)
downloadtdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.tar.gz
tdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.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 2f706891f32258c2b070471905f983e4585296d2)
Diffstat (limited to 'tqt3integration')
-rw-r--r--tqt3integration/CMakeL10n.txt3
-rw-r--r--tqt3integration/module/CMakeL10n.txt7
-rw-r--r--tqt3integration/module/CMakeLists.txt7
-rw-r--r--tqt3integration/module/kdeintegration.desktop1
4 files changed, 17 insertions, 1 deletions
diff --git a/tqt3integration/CMakeL10n.txt b/tqt3integration/CMakeL10n.txt
new file mode 100644
index 000000000..b585ce4af
--- /dev/null
+++ b/tqt3integration/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/tqt3integration/module/CMakeL10n.txt b/tqt3integration/module/CMakeL10n.txt
new file mode 100644
index 000000000..cc69d32c7
--- /dev/null
+++ b/tqt3integration/module/CMakeL10n.txt
@@ -0,0 +1,7 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdeintegration.desktop/"
+ SOURCES tdeintegration.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/tqt3integration/module/CMakeLists.txt b/tqt3integration/module/CMakeLists.txt
index dd7a62ebe..2cc62f246 100644
--- a/tqt3integration/module/CMakeLists.txt
+++ b/tqt3integration/module/CMakeLists.txt
@@ -24,7 +24,12 @@ link_directories(
##### service desktop file(s) ##########################
-install( FILES kdeintegration.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+tde_create_translated_desktop(
+ SOURCE kdeintegration.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded
+ PO_DIR tdeintegration.desktop
+)
+
##### kded_kdeintegration (module) #####################
diff --git a/tqt3integration/module/kdeintegration.desktop b/tqt3integration/module/kdeintegration.desktop
index 406c1fd39..74e3bcf66 100644
--- a/tqt3integration/module/kdeintegration.desktop
+++ b/tqt3integration/module/kdeintegration.desktop
@@ -10,4 +10,5 @@ X-TDE-Kded-autoload=false
X-TDE-Kded-load-on-demand=true
Name=TDE Integration Module
+
Comment=Module for integrating UI of non-TDE applications