From 3e868d844c44aab62fd1324e52872afd1f706cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 12 Jul 2020 16:15:10 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 0d3043b6308af148da06ac14c53defc4b1e7e138) --- tdeabc/CMakeL10n.txt | 6 ++++++ tdeabc/tdeabcdistlistupdater/CMakeLists.txt | 5 +++-- tdeabc/tdeabcdistlistupdater/tdeabcdistlistupdater.desktop | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'tdeabc') diff --git a/tdeabc/CMakeL10n.txt b/tdeabc/CMakeL10n.txt index b585ce4af..d2fd58813 100644 --- a/tdeabc/CMakeL10n.txt +++ b/tdeabc/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_auto_add_subdirectories( ) + +tde_l10n_create_template( + CATALOG "desktop_files/tdeabc-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/tdeabc/tdeabcdistlistupdater/CMakeLists.txt b/tdeabc/tdeabcdistlistupdater/CMakeLists.txt index ddbdd7c9d..a71b55eac 100644 --- a/tdeabc/tdeabcdistlistupdater/CMakeLists.txt +++ b/tdeabc/tdeabcdistlistupdater/CMakeLists.txt @@ -27,9 +27,10 @@ link_directories( ##### other data ################################ -install( - FILES tdeabcdistlistupdater.desktop +tde_create_translated_desktop( + SOURCE tdeabcdistlistupdater.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} + PO_DIR tdeabc-desktops ) diff --git a/tdeabc/tdeabcdistlistupdater/tdeabcdistlistupdater.desktop b/tdeabc/tdeabcdistlistupdater/tdeabcdistlistupdater.desktop index 5b6a8f597..ab5ef3483 100644 --- a/tdeabc/tdeabcdistlistupdater/tdeabcdistlistupdater.desktop +++ b/tdeabc/tdeabcdistlistupdater/tdeabcdistlistupdater.desktop @@ -1,10 +1,12 @@ [Desktop Entry] Name=tdeabcdistlistupdater + +Comment=Tool to update the old distribution lists to the new ones. + Exec=tdeabcdistlistupdater --disable-autostart Icon=application-vnd.tde.misc Type=Application -Comment=Tool to update the old distribution lists to the new ones. Terminal=false NoDisplay=true -X-TDE-autostart-condition=tdeabcdistlistupdaterrc:Startup:EnableAutostart:true OnlyShowIn=TDE; +X-TDE-autostart-condition=tdeabcdistlistupdaterrc:Startup:EnableAutostart:true -- cgit v1.2.1