summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-08 01:20:52 +0200
committerSlávek Banko <[email protected]>2020-07-08 01:21:07 +0200
commit21fd56c7072548ecf1487c244006157c7af67a32 (patch)
treedf7af1f8a853e1862ecdb66cc5698270fdb6071a
parent08a668ab207d7a0da16e730f34825baa5a78fa57 (diff)
downloadtdegraphics-21fd56c7072548ecf1487c244006157c7af67a32.tar.gz
tdegraphics-21fd56c7072548ecf1487c244006157c7af67a32.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 2a2437b3022a990bc9cded4d07c56a0d093b2a0c)
-rw-r--r--kcoloredit/CMakeLists.txt8
-rw-r--r--kdvi/CMakeLists.txt4
-rw-r--r--kfaxview/CMakeLists.txt14
-rw-r--r--kghostview/CMakeLists.txt4
-rw-r--r--kmrml/kmrml/CMakeLists.txt6
-rw-r--r--kmrml/kmrml/kcontrol/CMakeLists.txt2
-rw-r--r--kmrml/kmrml/server/CMakeLists.txt2
-rw-r--r--kpdf/CMakeLists.txt2
-rw-r--r--kpdf/shell/CMakeLists.txt2
-rw-r--r--kruler/CMakeLists.txt2
-rw-r--r--ksvg/core/CMakeLists.txt2
-rw-r--r--ksvg/plugin/CMakeLists.txt12
-rw-r--r--ksvg/plugin/backends/libart/CMakeLists.txt2
-rw-r--r--kview/CMakeLists.txt2
-rw-r--r--kview/config/CMakeLists.txt2
-rw-r--r--kview/config/plugins/CMakeLists.txt2
-rw-r--r--kview/kimageviewer/CMakeLists.txt12
-rw-r--r--kview/kviewcanvas/CMakeLists.txt2
-rw-r--r--kview/kviewcanvas/config/CMakeLists.txt2
-rw-r--r--kview/kviewviewer/CMakeLists.txt2
-rw-r--r--kview/kviewviewer/config/CMakeLists.txt2
-rw-r--r--kview/modules/browser/CMakeLists.txt2
-rw-r--r--kview/modules/effects/CMakeLists.txt2
-rw-r--r--kview/modules/presenter/CMakeLists.txt2
-rw-r--r--kview/modules/presenter/config/CMakeLists.txt2
-rw-r--r--kview/modules/scanner/CMakeLists.txt2
-rw-r--r--kview/photobook/CMakeLists.txt2
-rw-r--r--kviewshell/CMakeLists.txt4
-rw-r--r--kviewshell/plugins/djvu/CMakeLists.txt2
-rw-r--r--tdefile-plugins/bmp/CMakeLists.txt2
-rw-r--r--tdefile-plugins/dds/CMakeLists.txt2
-rw-r--r--tdefile-plugins/dvi/CMakeLists.txt2
-rw-r--r--tdefile-plugins/exr/CMakeLists.txt2
-rw-r--r--tdefile-plugins/gif/CMakeLists.txt2
-rw-r--r--tdefile-plugins/ico/CMakeLists.txt2
-rw-r--r--tdefile-plugins/jpeg/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pcx/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pdf/CMakeLists.txt2
-rw-r--r--tdefile-plugins/png/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pnm/CMakeLists.txt2
-rw-r--r--tdefile-plugins/ps/CMakeLists.txt12
-rw-r--r--tdefile-plugins/raw/CMakeLists.txt2
-rw-r--r--tdefile-plugins/rgb/CMakeLists.txt2
-rw-r--r--tdefile-plugins/tga/CMakeLists.txt2
-rw-r--r--tdefile-plugins/tiff/CMakeLists.txt2
-rw-r--r--tdefile-plugins/xbm/CMakeLists.txt2
-rw-r--r--tdefile-plugins/xpm/CMakeLists.txt2
47 files changed, 71 insertions, 81 deletions
diff --git a/kcoloredit/CMakeLists.txt b/kcoloredit/CMakeLists.txt
index 9fe840cc..ddd209b2 100644
--- a/kcoloredit/CMakeLists.txt
+++ b/kcoloredit/CMakeLists.txt
@@ -25,12 +25,10 @@ link_directories(
tde_install_icons( kcoloredit kcolorchooser )
-foreach( _desktop kcoloredit.desktop kcolorchooser.desktop )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kcoloredit-desktops
+tde_create_translated_desktop(
+ SOURCE kcoloredit.desktop kcolorchooser.desktop
+ PO_DIR kcoloredit-desktops
)
-endforeach()
install( FILES
kcoloreditui.rc
diff --git a/kdvi/CMakeLists.txt b/kdvi/CMakeLists.txt
index 0b38628c..006137a2 100644
--- a/kdvi/CMakeLists.txt
+++ b/kdvi/CMakeLists.txt
@@ -30,13 +30,13 @@ link_directories(
tde_create_translated_desktop(
SOURCE kdvi.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops
+ PO_DIR kdvi-desktops
)
tde_create_translated_desktop(
SOURCE kdvimultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops
+ PO_DIR kdvi-desktops
)
install( FILES
diff --git a/kfaxview/CMakeLists.txt b/kfaxview/CMakeLists.txt
index df43f9d0..a50133bb 100644
--- a/kfaxview/CMakeLists.txt
+++ b/kfaxview/CMakeLists.txt
@@ -33,18 +33,16 @@ tde_install_icons( kfaxview )
tde_create_translated_desktop(
SOURCE kfaxview.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfaxview-desktops
+ PO_DIR kfaxview-desktops
)
install( FILES ${CMAKE_SOURCE_DIR}/kviewshell/kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kfaxview/kviewshell.rc )
-foreach( _desktop kfaxmultipage.desktop kfaxmultipage_tiff.desktop )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfaxview-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE kfaxmultipage.desktop kfaxmultipage_tiff.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR kfaxview-desktops
+)
#### kfaxviewpart (module) ######################
diff --git a/kghostview/CMakeLists.txt b/kghostview/CMakeLists.txt
index cc2debfa..11e30d20 100644
--- a/kghostview/CMakeLists.txt
+++ b/kghostview/CMakeLists.txt
@@ -31,13 +31,13 @@ tde_install_icons( kghostview )
tde_create_translated_desktop(
SOURCE kghostview.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
+ PO_DIR kghostview-desktops
)
tde_create_translated_desktop(
SOURCE kghostview_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
+ PO_DIR kghostview-desktops
)
install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview )
diff --git a/kmrml/kmrml/CMakeLists.txt b/kmrml/kmrml/CMakeLists.txt
index 1dcaf6af..90f7e3ce 100644
--- a/kmrml/kmrml/CMakeLists.txt
+++ b/kmrml/kmrml/CMakeLists.txt
@@ -33,19 +33,19 @@ install( FILES mrml.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
tde_create_translated_desktop(
SOURCE mrml_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
+ PO_DIR kmrml-desktops
)
tde_create_translated_desktop(
SOURCE mrml.desktop
DESTINATION ${MIME_INSTALL_DIR}/text
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
+ PO_DIR kmrml-desktops
)
tde_create_translated_desktop(
SOURCE mrml-servicemenu.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
+ PO_DIR kmrml-desktops
)
diff --git a/kmrml/kmrml/kcontrol/CMakeLists.txt b/kmrml/kmrml/kcontrol/CMakeLists.txt
index bbde853a..7c259547 100644
--- a/kmrml/kmrml/kcontrol/CMakeLists.txt
+++ b/kmrml/kmrml/kcontrol/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kcmkmrml.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
+ PO_DIR kmrml-desktops
)
diff --git a/kmrml/kmrml/server/CMakeLists.txt b/kmrml/kmrml/server/CMakeLists.txt
index 568dad8a..54dbe884 100644
--- a/kmrml/kmrml/server/CMakeLists.txt
+++ b/kmrml/kmrml/server/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE daemonwatcher.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kded
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
+ PO_DIR kmrml-desktops
)
diff --git a/kpdf/CMakeLists.txt b/kpdf/CMakeLists.txt
index e6a46a93..b35af955 100644
--- a/kpdf/CMakeLists.txt
+++ b/kpdf/CMakeLists.txt
@@ -37,7 +37,7 @@ tde_install_icons( kpdf )
tde_create_translated_desktop(
SOURCE kpdf_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops
+ PO_DIR kpdf-desktops
)
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/kpdfpart )
diff --git a/kpdf/shell/CMakeLists.txt b/kpdf/shell/CMakeLists.txt
index 1794250c..30691f02 100644
--- a/kpdf/shell/CMakeLists.txt
+++ b/kpdf/shell/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kpdf.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops
+ PO_DIR kpdf-desktops
)
install( FILES shell.rc DESTINATION ${DATA_INSTALL_DIR}/kpdf )
diff --git a/kruler/CMakeLists.txt b/kruler/CMakeLists.txt
index 1b157a48..36dde62b 100644
--- a/kruler/CMakeLists.txt
+++ b/kruler/CMakeLists.txt
@@ -30,7 +30,7 @@ tde_create_translated_desktop( kruler.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kruler
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kruler-eventsrc
+ PO_DIR kruler-eventsrc
)
install( FILES move.wav DESTINATION ${DATA_INSTALL_DIR}/kruler/sounds )
diff --git a/ksvg/core/CMakeLists.txt b/ksvg/core/CMakeLists.txt
index 98f401db..8506cf76 100644
--- a/ksvg/core/CMakeLists.txt
+++ b/ksvg/core/CMakeLists.txt
@@ -38,7 +38,7 @@ install( FILES
tde_create_translated_desktop(
SOURCE ksvgrenderer.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
+ PO_DIR ksvg-desktops
)
diff --git a/ksvg/plugin/CMakeLists.txt b/ksvg/plugin/CMakeLists.txt
index 56781519..a46cb8df 100644
--- a/ksvg/plugin/CMakeLists.txt
+++ b/ksvg/plugin/CMakeLists.txt
@@ -40,13 +40,11 @@ install( FILES
##### other data ################################
-foreach( _service ksvgplugin.desktop svgthumbnail.desktop )
- tde_create_translated_desktop(
- SOURCE ${_service}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE ksvgplugin.desktop svgthumbnail.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ksvg-desktops
+)
install( FILES
ksvgplugin.rc
diff --git a/ksvg/plugin/backends/libart/CMakeLists.txt b/ksvg/plugin/backends/libart/CMakeLists.txt
index ceb62f23..d9478a8d 100644
--- a/ksvg/plugin/backends/libart/CMakeLists.txt
+++ b/ksvg/plugin/backends/libart/CMakeLists.txt
@@ -37,7 +37,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE ksvglibartcanvas.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
+ PO_DIR ksvg-desktops
)
diff --git a/kview/CMakeLists.txt b/kview/CMakeLists.txt
index c75c7c75..8d6eed7e 100644
--- a/kview/CMakeLists.txt
+++ b/kview/CMakeLists.txt
@@ -34,7 +34,7 @@ tde_install_icons( kview )
tde_create_translated_desktop(
SOURCE kview.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install( FILES kviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kview )
diff --git a/kview/config/CMakeLists.txt b/kview/config/CMakeLists.txt
index 6485b86e..5fc252ea 100644
--- a/kview/config/CMakeLists.txt
+++ b/kview/config/CMakeLists.txt
@@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewgeneralconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install( FILES kview.setdlg DESTINATION ${DATA_INSTALL_DIR}/kview )
diff --git a/kview/config/plugins/CMakeLists.txt b/kview/config/plugins/CMakeLists.txt
index 0e2143ea..9cbbb47a 100644
--- a/kview/config/plugins/CMakeLists.txt
+++ b/kview/config/plugins/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpluginsconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
diff --git a/kview/kimageviewer/CMakeLists.txt b/kview/kimageviewer/CMakeLists.txt
index c3f25961..094da7c8 100644
--- a/kview/kimageviewer/CMakeLists.txt
+++ b/kview/kimageviewer/CMakeLists.txt
@@ -22,13 +22,11 @@ link_directories(
##### other data ################################
-foreach( _service kimageviewercanvas.desktop kimageviewer.desktop )
- tde_create_translated_desktop(
- SOURCE ${_service}
- DESTINATION ${SERVICETYPES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE kimageviewercanvas.desktop kimageviewer.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR}
+ PO_DIR kview-desktops
+)
##### kimageviewer (shared) #####################
diff --git a/kview/kviewcanvas/CMakeLists.txt b/kview/kviewcanvas/CMakeLists.txt
index 0a369641..2c62d6eb 100644
--- a/kview/kviewcanvas/CMakeLists.txt
+++ b/kview/kviewcanvas/CMakeLists.txt
@@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewcanvas.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
diff --git a/kview/kviewcanvas/config/CMakeLists.txt b/kview/kviewcanvas/config/CMakeLists.txt
index fa775d1c..eb730680 100644
--- a/kview/kviewcanvas/config/CMakeLists.txt
+++ b/kview/kviewcanvas/config/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewcanvasconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
diff --git a/kview/kviewviewer/CMakeLists.txt b/kview/kviewviewer/CMakeLists.txt
index c2bfc245..61e738fb 100644
--- a/kview/kviewviewer/CMakeLists.txt
+++ b/kview/kviewviewer/CMakeLists.txt
@@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewviewer.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install( FILES kviewviewer.rc kviewviewer_ro.rc kviewpopup.rc DESTINATION ${DATA_INSTALL_DIR}/kviewviewer )
diff --git a/kview/kviewviewer/config/CMakeLists.txt b/kview/kviewviewer/config/CMakeLists.txt
index e0d422dd..7ab9ee80 100644
--- a/kview/kviewviewer/config/CMakeLists.txt
+++ b/kview/kviewviewer/config/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewviewerpluginsconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
diff --git a/kview/modules/browser/CMakeLists.txt b/kview/modules/browser/CMakeLists.txt
index b1b26f6c..933a2523 100644
--- a/kview/modules/browser/CMakeLists.txt
+++ b/kview/modules/browser/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewbrowser.desktop
DESTINATION ${DATA_INSTALL_DIR}/kviewviewer/kpartplugins
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install(
diff --git a/kview/modules/effects/CMakeLists.txt b/kview/modules/effects/CMakeLists.txt
index cf80fe5b..bf905f66 100644
--- a/kview/modules/effects/CMakeLists.txt
+++ b/kview/modules/effects/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kvieweffects.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install(
diff --git a/kview/modules/presenter/CMakeLists.txt b/kview/modules/presenter/CMakeLists.txt
index afe5de2e..c50266af 100644
--- a/kview/modules/presenter/CMakeLists.txt
+++ b/kview/modules/presenter/CMakeLists.txt
@@ -29,7 +29,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpresenter.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install(
diff --git a/kview/modules/presenter/config/CMakeLists.txt b/kview/modules/presenter/config/CMakeLists.txt
index 97ede844..3432b3ed 100644
--- a/kview/modules/presenter/config/CMakeLists.txt
+++ b/kview/modules/presenter/config/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpresenterconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
diff --git a/kview/modules/scanner/CMakeLists.txt b/kview/modules/scanner/CMakeLists.txt
index bbe5eb73..c7db3a61 100644
--- a/kview/modules/scanner/CMakeLists.txt
+++ b/kview/modules/scanner/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewscanner.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install(
diff --git a/kview/photobook/CMakeLists.txt b/kview/photobook/CMakeLists.txt
index 657d85fd..74a1ea04 100644
--- a/kview/photobook/CMakeLists.txt
+++ b/kview/photobook/CMakeLists.txt
@@ -27,7 +27,7 @@ tde_install_icons( photobook )
tde_create_translated_desktop(
SOURCE photobook.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
+ PO_DIR kview-desktops
)
install( FILES photobookui.rc DESTINATION ${DATA_INSTALL_DIR}/photobook )
diff --git a/kviewshell/CMakeLists.txt b/kviewshell/CMakeLists.txt
index 8f61542d..71d53359 100644
--- a/kviewshell/CMakeLists.txt
+++ b/kviewshell/CMakeLists.txt
@@ -68,13 +68,13 @@ if ( BUILD_KVIEWSHELL )
tde_create_translated_desktop(
SOURCE tdemultipage.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
+ PO_DIR kviewshell-desktops
)
tde_create_translated_desktop(
SOURCE emptymultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
+ PO_DIR kviewshell-desktops
)
install( FILES kviewshell.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
diff --git a/kviewshell/plugins/djvu/CMakeLists.txt b/kviewshell/plugins/djvu/CMakeLists.txt
index d950a5df..237f6bf3 100644
--- a/kviewshell/plugins/djvu/CMakeLists.txt
+++ b/kviewshell/plugins/djvu/CMakeLists.txt
@@ -31,7 +31,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE djvumultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
+ PO_DIR kviewshell-desktops
)
install( FILES djvumultipage.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
diff --git a/tdefile-plugins/bmp/CMakeLists.txt b/tdefile-plugins/bmp/CMakeLists.txt
index 642646fe..4c5ddba5 100644
--- a/tdefile-plugins/bmp/CMakeLists.txt
+++ b/tdefile-plugins/bmp/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_bmp.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/dds/CMakeLists.txt b/tdefile-plugins/dds/CMakeLists.txt
index 987a13d5..d2f56ce6 100644
--- a/tdefile-plugins/dds/CMakeLists.txt
+++ b/tdefile-plugins/dds/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_dds.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/dvi/CMakeLists.txt b/tdefile-plugins/dvi/CMakeLists.txt
index 9de24e7d..55c1ef7d 100644
--- a/tdefile-plugins/dvi/CMakeLists.txt
+++ b/tdefile-plugins/dvi/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_dvi.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/exr/CMakeLists.txt b/tdefile-plugins/exr/CMakeLists.txt
index 2e96d6bc..0f022758 100644
--- a/tdefile-plugins/exr/CMakeLists.txt
+++ b/tdefile-plugins/exr/CMakeLists.txt
@@ -29,7 +29,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_exr.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/gif/CMakeLists.txt b/tdefile-plugins/gif/CMakeLists.txt
index 944a3f73..f7f9d9d0 100644
--- a/tdefile-plugins/gif/CMakeLists.txt
+++ b/tdefile-plugins/gif/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_gif.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/ico/CMakeLists.txt b/tdefile-plugins/ico/CMakeLists.txt
index 31974d18..886df0b4 100644
--- a/tdefile-plugins/ico/CMakeLists.txt
+++ b/tdefile-plugins/ico/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_ico.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/jpeg/CMakeLists.txt b/tdefile-plugins/jpeg/CMakeLists.txt
index 961f386b..f5f2aae5 100644
--- a/tdefile-plugins/jpeg/CMakeLists.txt
+++ b/tdefile-plugins/jpeg/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_jpeg.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pcx/CMakeLists.txt b/tdefile-plugins/pcx/CMakeLists.txt
index c60b7178..438e0ce9 100644
--- a/tdefile-plugins/pcx/CMakeLists.txt
+++ b/tdefile-plugins/pcx/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pcx.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pdf/CMakeLists.txt b/tdefile-plugins/pdf/CMakeLists.txt
index f710e343..8d01a571 100644
--- a/tdefile-plugins/pdf/CMakeLists.txt
+++ b/tdefile-plugins/pdf/CMakeLists.txt
@@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pdf.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/png/CMakeLists.txt b/tdefile-plugins/png/CMakeLists.txt
index bd96a23c..371aa775 100644
--- a/tdefile-plugins/png/CMakeLists.txt
+++ b/tdefile-plugins/png/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_png.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pnm/CMakeLists.txt b/tdefile-plugins/pnm/CMakeLists.txt
index d55dc8ab..4896e21c 100644
--- a/tdefile-plugins/pnm/CMakeLists.txt
+++ b/tdefile-plugins/pnm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pnm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/ps/CMakeLists.txt b/tdefile-plugins/ps/CMakeLists.txt
index 4be74072..8706f44a 100644
--- a/tdefile-plugins/ps/CMakeLists.txt
+++ b/tdefile-plugins/ps/CMakeLists.txt
@@ -25,13 +25,11 @@ link_directories(
#### other data #################################
-foreach( _desktop tdefile_ps.desktop gsthumbnail.desktop )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE tdefile_ps.desktop gsthumbnail.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
#### tdefile_ps (module) ########################
diff --git a/tdefile-plugins/raw/CMakeLists.txt b/tdefile-plugins/raw/CMakeLists.txt
index cc160df1..11a7c172 100644
--- a/tdefile-plugins/raw/CMakeLists.txt
+++ b/tdefile-plugins/raw/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_raw.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/rgb/CMakeLists.txt b/tdefile-plugins/rgb/CMakeLists.txt
index 3f4c58d9..01db22a9 100644
--- a/tdefile-plugins/rgb/CMakeLists.txt
+++ b/tdefile-plugins/rgb/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_rgb.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/tga/CMakeLists.txt b/tdefile-plugins/tga/CMakeLists.txt
index 2fdfcc7d..a40a823f 100644
--- a/tdefile-plugins/tga/CMakeLists.txt
+++ b/tdefile-plugins/tga/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_tga.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/tiff/CMakeLists.txt b/tdefile-plugins/tiff/CMakeLists.txt
index 13935c96..cd875145 100644
--- a/tdefile-plugins/tiff/CMakeLists.txt
+++ b/tdefile-plugins/tiff/CMakeLists.txt
@@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_tiff.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/xbm/CMakeLists.txt b/tdefile-plugins/xbm/CMakeLists.txt
index 59bb1368..76fd74e3 100644
--- a/tdefile-plugins/xbm/CMakeLists.txt
+++ b/tdefile-plugins/xbm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_xbm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/xpm/CMakeLists.txt b/tdefile-plugins/xpm/CMakeLists.txt
index 5d67d847..25df4f68 100644
--- a/tdefile-plugins/xpm/CMakeLists.txt
+++ b/tdefile-plugins/xpm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_xpm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)