summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-04-05 16:25:24 +0200
committerSlávek Banko <[email protected]>2020-04-05 16:25:36 +0200
commit51e8b196131fc62aef42a0c306742e648ce9e937 (patch)
treefc6e4e85ea944c70019e89fd49d49242086f2057 /src
parentffef2201cd7bf2ee1b474907a5e68200290fb6be (diff)
downloadkbookreader-51e8b196131fc62aef42a0c306742e648ce9e937.tar.gz
kbookreader-51e8b196131fc62aef42a0c306742e648ce9e937.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 <[email protected]> (cherry picked from commit 153392845d9c0cd409cb30f5e61bf71ed10b2119)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/bookreader.desktop30
3 files changed, 6 insertions, 34 deletions
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;