diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
commit | 4b7a4e17362206fd2eade35ba947a850263b0ea1 (patch) | |
tree | 3f3e619da9fd3c0f76ef95e44c73898a278e059b /tdeprint/filters/CMakeLists.txt | |
parent | 31fa399a0aa455f3f52251f977233d57e92de28c (diff) | |
download | tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.tar.gz tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.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 <slavek.banko@axis.cz>
Diffstat (limited to 'tdeprint/filters/CMakeLists.txt')
-rw-r--r-- | tdeprint/filters/CMakeLists.txt | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/tdeprint/filters/CMakeLists.txt b/tdeprint/filters/CMakeLists.txt index 2d36e16bb..4ef77f94f 100644 --- a/tdeprint/filters/CMakeLists.txt +++ b/tdeprint/filters/CMakeLists.txt @@ -11,13 +11,30 @@ ##### other data ################################ -install( FILES - enscript.desktop enscript.xml psnup.desktop psnup.xml - imagetops.desktop imagetops.xml pdfwrite.desktop - pdfwrite.xml psbook1.desktop psbook1.xml psbook2.desktop - psbook2.xml psbook.desktop psbook.xml psselect.desktop - psselect.xml ps2pdf.desktop ps2pdf.xml pdf2ps.desktop - pdf2ps.xml poster.desktop poster.xml - DESTINATION ${DATA_INSTALL_DIR}/tdeprint/filters ) +foreach( _desktop + enscript.desktop psnup.desktop + imagetops.desktop pdfwrite.desktop + psbook1.desktop psbook2.desktop + psbook.desktop psselect.desktop + ps2pdf.desktop pdf2ps.desktop + poster.desktop +) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${DATA_INSTALL_DIR}/tdeprint/filters + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + ) +endforeach() + +install( + FILES + enscript.xml psnup.xml + imagetops.xml pdfwrite.xml + psbook1.xml psbook2.xml + psbook.xml psselect.xml + ps2pdf.xml pdf2ps.xml + poster.xml + DESTINATION ${DATA_INSTALL_DIR}/tdeprint/filters +) install( PROGRAMS imagetops DESTINATION ${BIN_INSTALL_DIR} ) |