From 51e8b196131fc62aef42a0c306742e648ce9e937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 5 Apr 2020 16:25:24 +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 153392845d9c0cd409cb30f5e61bf71ed10b2119) --- src/CMakeL10n.txt | 5 +++++ src/CMakeLists.txt | 5 +---- src/bookreader.desktop | 30 ------------------------------ 3 files changed, 6 insertions(+), 34 deletions(-) (limited to 'src') diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 70b17b8..fb59dfa 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/bookreader" ) + +tde_l10n_create_template( + CATALOG "desktop_files/bookreader.desktop/" + SOURCES bookreader.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5224cac..50e6395 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -64,10 +64,7 @@ install( DESTINATION ${DATA_INSTALL_DIR}/bookreader ) -install( - FILES bookreader.desktop - DESTINATION ${APPS_INSTALL_DIR}/Office -) +tde_create_translated_desktop( bookreader.desktop ) install( FILES bookreader.kcfg diff --git a/src/bookreader.desktop b/src/bookreader.desktop index c6240dc..327b944 100644 --- a/src/bookreader.desktop +++ b/src/bookreader.desktop @@ -7,35 +7,5 @@ Icon=bookreader Type=Application X-DocPath=bookreader/index.html Comment=A TDE KPart Application -Comment[br]=Ur meziant Kpart evit TDE -Comment[ca]=Una aplicació KPart per a TDE -Comment[cy]=Cymhwysiad KPart TDE -Comment[da]=Et TDE KPart program -Comment[de]=Eine TDE-Komponenten-Anwendung -Comment[el]=Μια εφαρμογή KPart του TDE -Comment[es]=Una aplicación KPart de TDE -Comment[et]=TDE KPart rakendus -Comment[eu]=TDE KPart aplikazio bat -Comment[fr]=Une application KPart pour TDE. -Comment[ga]=Feidhmchlár KPart TDE -Comment[hi]=एक केडीई के-पार्ट अनुप्रयोग -Comment[hu]=KPart-alapú TDE-alkalmazás -Comment[is]=TDE KPart forrit -Comment[it]=Applicazione KPart di TDE -Comment[ja]=TDE KPart アプリケーション -Comment[lt]=TDE KPart programa -Comment[nb]=Et TDE KPart-program -Comment[nl]=Een TDE KPart-toepassing -Comment[pl]=Osadzalny element KPart TDE -Comment[pt]=Uma aplicação KPart do TDE -Comment[pt_BR]=Um Aplicativo KPart do TDE -Comment[ru]=Приложение KPart для TDE -Comment[sl]=Program KPart za TDE -Comment[sr]=TDE KPart програм -Comment[sr@Latn]=TDE KPart program -Comment[sv]=Ett TDE Kpart-program -Comment[ta]=கெடி கெபார்ட் பயன்பாடு -Comment[tg]=Ба кор андохтани KPart барои TDE -Comment[zh_CN]=一个 TDE KPart 应用程序 Terminal=false Categories=Qt;TDE;Office; -- cgit v1.2.1