summaryrefslogtreecommitdiffstats
path: root/kweather/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kweather/CMakeLists.txt')
-rw-r--r--kweather/CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/kweather/CMakeLists.txt b/kweather/CMakeLists.txt
index bddf208..c4c7f44 100644
--- a/kweather/CMakeLists.txt
+++ b/kweather/CMakeLists.txt
@@ -117,23 +117,31 @@ tde_install_icons( kweather )
##### other data ################################
-install( FILES weather_stations.desktop
+tde_create_translated_desktop(
+ SOURCE weather_stations.desktop
+ KEYWORDS name
DESTINATION ${DATA_INSTALL_DIR}/kweatherservice
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-stations
)
install( FILES stations.dat
DESTINATION ${DATA_INSTALL_DIR}/kweatherservice
)
-install( FILES kweather.desktop
+tde_create_translated_desktop(
+ SOURCE kweather.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-desktops
)
-install(
- FILES
+foreach( _service
kweatherservice.desktop
kcmweather.desktop
kcmweatherservice.desktop
- DESTINATION ${SERVICES_INSTALL_DIR}
)
-
+ tde_create_translated_desktop(
+ SOURCE ${_service}
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-desktops
+ )
+endforeach()