summaryrefslogtreecommitdiffstats
path: root/tqt3integration
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-26 11:36:35 +0200
committerSlávek Banko <[email protected]>2020-06-28 00:41:12 +0200
commit2f706891f32258c2b070471905f983e4585296d2 (patch)
tree6c74e28fd7c74d26b1c36c371a9ed56295cc05ae /tqt3integration
parent98f2d732f33659ba749b70fb939e8eaa0c97edf8 (diff)
downloadtdebase-2f706891f32258c2b070471905f983e4585296d2.tar.gz
tdebase-2f706891f32258c2b070471905f983e4585296d2.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]>
Diffstat (limited to 'tqt3integration')
-rw-r--r--tqt3integration/CMakeL10n.txt3
-rw-r--r--tqt3integration/module/CMakeL10n.txt7
-rw-r--r--tqt3integration/module/CMakeLists.txt5
-rw-r--r--tqt3integration/module/tdeintegration.desktop1
4 files changed, 15 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 1457020af..017da7224 100644
--- a/tqt3integration/module/CMakeLists.txt
+++ b/tqt3integration/module/CMakeLists.txt
@@ -25,7 +25,10 @@ link_directories(
##### service desktop file(s) ##########################
-install( FILES tdeintegration.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+tde_create_translated_desktop(
+ SOURCE tdeintegration.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded
+)
##### kded_tdeintegration (module) #####################
diff --git a/tqt3integration/module/tdeintegration.desktop b/tqt3integration/module/tdeintegration.desktop
index 9a9b940d1..13c278905 100644
--- a/tqt3integration/module/tdeintegration.desktop
+++ b/tqt3integration/module/tdeintegration.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