summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-05 01:30:34 +0200
committerSlávek Banko <[email protected]>2020-05-05 01:30:34 +0200
commit480a2160b3106524eb75fd882079ac8cd5374069 (patch)
treec7dcb03511b578e13c33d4d816194203a4fe051c /src
parent78cf7ca197639fd8cb5053728b5ac8cf2c7e8cab (diff)
downloadtdeio-sword-480a2160b3106524eb75fd882079ac8cd5374069.tar.gz
tdeio-sword-480a2160b3106524eb75fd882079ac8cd5374069.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 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 0a1005a..d6cf088 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/tdeio-sword" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/sword.protocol/"
+ SOURCES sword.protocol
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8e170cb..377bc05 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -43,7 +43,7 @@ tde_add_kpart( tdeio_sword AUTOMOC
##### other data
-install(
- FILES sword.protocol
+tde_create_translated_desktop(
+ SOURCE sword.protocol
DESTINATION ${SERVICES_INSTALL_DIR}
)