diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-30 00:57:03 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-30 01:05:29 +0200 |
commit | d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d (patch) | |
tree | 060933b7cc6b5aa928a37c4868330f58fb5b6294 /kappfinder-data/CMakeLists.txt | |
parent | 77d1049eb65f4d8bd24351c5c1a8d6344bf3ec62 (diff) | |
download | tdemultimedia-d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d.tar.gz tdemultimedia-d11ce98ed0b2a0508fcfbe8bb0f956e3f671ad0d.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>
(cherry picked from commit ff3f2006ce72b2edabc534188a4ad006e89b4f84)
Diffstat (limited to 'kappfinder-data/CMakeLists.txt')
-rw-r--r-- | kappfinder-data/CMakeLists.txt | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/kappfinder-data/CMakeLists.txt b/kappfinder-data/CMakeLists.txt index cd85238e..c1974fdb 100644 --- a/kappfinder-data/CMakeLists.txt +++ b/kappfinder-data/CMakeLists.txt @@ -9,32 +9,20 @@ # ################################################# -install( - FILES - ams.desktop - amsynth.desktop - ardour.desktop - djplay.desktop - ecamegapedal.desktop - freebirth.desktop - freqtweak.desktop - galan.desktop - hydrogen.desktop - jack-rack.desktop - jamin.desktop - meterbridge.desktop - mixxx.desktop - muse.desktop - qjackctl.desktop - qsynth.desktop - vkeybd.desktop - zynaddsubfx.desktop - DESTINATION ${DATA_INSTALL_DIR}/kappfinder/apps/Multimedia -) +file( GLOB _multimedia_desktops RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop ) +list( SORT _multimedia_desktops ) +foreach( _desktop IN LISTS _multimedia_desktops ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${DATA_INSTALL_DIR}/kappfinder/apps/Multimedia + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kappfinder-data + ) +endforeach() -install( - FILES tde-multimedia-music.directory +tde_create_translated_desktop( + SOURCE tde-multimedia-music.directory DESTINATION ${XDG_DIRECTORY_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kappfinder-data ) install( |