summaryrefslogtreecommitdiffstats
path: root/kghostview
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-09 17:49:10 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-09 17:49:10 +0200
commit837dbafbea0c7f7bc73d27fda684ea2dededd547 (patch)
tree66811931fed182f8fa6f59547c6511a897adb734 /kghostview
parent00b9084c635fe29e7c5942ff508be2ca65893659 (diff)
downloadtdegraphics-837dbafbea0c7f7bc73d27fda684ea2dededd547.tar.gz
tdegraphics-837dbafbea0c7f7bc73d27fda684ea2dededd547.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 'kghostview')
-rw-r--r--kghostview/CMakeL10n.txt6
-rw-r--r--kghostview/CMakeLists.txt14
-rw-r--r--kghostview/kghostview.desktop77
-rw-r--r--kghostview/kghostview_part.desktop11
4 files changed, 19 insertions, 89 deletions
diff --git a/kghostview/CMakeL10n.txt b/kghostview/CMakeL10n.txt
index decf8918..0624536e 100644
--- a/kghostview/CMakeL10n.txt
+++ b/kghostview/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "kghostview" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kghostview-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/kghostview/CMakeLists.txt b/kghostview/CMakeLists.txt
index 316f387e..cc2debfa 100644
--- a/kghostview/CMakeLists.txt
+++ b/kghostview/CMakeLists.txt
@@ -28,8 +28,18 @@ link_directories(
#### other data #################################
tde_install_icons( kghostview )
-install( FILES kghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
-install( FILES kghostview_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+tde_create_translated_desktop(
+ SOURCE kghostview.desktop
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE kghostview_part.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
+)
+
install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview )
install( FILES kghostview.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES kghostview.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
diff --git a/kghostview/kghostview.desktop b/kghostview/kghostview.desktop
index 6fbd167e..c9d2ef90 100644
--- a/kghostview/kghostview.desktop
+++ b/kghostview/kghostview.desktop
@@ -1,87 +1,12 @@
[Desktop Entry]
Name=KGhostView
-Name[af]=Kghostview
-Name[ar]=برنامج KGhostView
-Name[eo]=Postskriptrigardilo
-Name[hi]=के-घोस्ट-व्यू
-Name[hu]=KGhostview
-Name[ne]=केडीई घोस्ट दृश्य
-Name[sv]=Kghostview
-Name[ta]=கேமற்றொரு காட்சி
-Name[tr]=GhostView
-Name[ven]=Mbonalelo ya tshipuku tsha K
-Name[xh]=Imboniselo yeKGhost
+GenericName=PS/PDF Viewer
MimeType=application/pdf;application/postscript;image/x-eps;application/x-gzpostscript;application/illustrator;
X-TDE-InitialPreference=6
Exec=kghostview %u -caption "%c" %i %m
Icon=kghostview
Type=Application
X-DocPath=kghostview/index.html
-GenericName=PS/PDF Viewer
-GenericName[af]=Ps/Pdf Aansig
-GenericName[ar]=عارض PS/PDF
-GenericName[bg]=Преглед на документи PS/PDF
-GenericName[br]=Gweler PS/PDF
-GenericName[bs]=Preglednik PS/PDF dokumenata
-GenericName[ca]=Visualitzador de PS/PDF
-GenericName[cs]=Prohlížeč PS/PDF souborů
-GenericName[cy]=Gwelydd PS/PDF
-GenericName[da]=PS/PDF-fremviser
-GenericName[de]=PS/PDF-Betrachter
-GenericName[el]=Προβολέας PS/PDF
-GenericName[eo]=PS/PDF-rigardilo
-GenericName[es]=Visor de documentos PS/PDF
-GenericName[et]=PS/PDF-failide näitaja
-GenericName[eu]=PS/PDF ikustailua
-GenericName[fa]=مشاهده‌گر PS/PDF
-GenericName[fi]=PS/PDF-näytin
-GenericName[fr]=Afficheur PostScript et PDF
-GenericName[ga]=Amharcán PS/PDF
-GenericName[gl]=Visor PS/PDF
-GenericName[he]=מציג PS/PDF
-GenericName[hi]=PS/PDF प्रदर्शक
-GenericName[hr]=Preglednik PS/PDF dokumenata
-GenericName[hu]=PS/PDF-megjelenítő
-GenericName[is]=PS/PDF sjá
-GenericName[it]=Visore PS/PDF
-GenericName[ja]=PS/PDF ビューア
-GenericName[kk]=PS/PDF файлдарын қарау
-GenericName[km]=កម្មវិធី​មើល PS/PDF
-GenericName[lt]=PS/PDF žiūriklis
-GenericName[lv]=PS/PDF Skatītājs
-GenericName[ms]=Pemapar PS/PDF
-GenericName[nb]=PS-/PDF-fremviser
-GenericName[nds]=PostScript-/PDF-Kieker
-GenericName[ne]=PS/PDF दर्शक
-GenericName[nl]=PostScript/PDF-weergaveprogramma
-GenericName[nn]=PS/PDF-lesar
-GenericName[nso]=Molebeledi wa PS/PDF
-GenericName[pa]=PS/PDF ਦਰਸ਼ਕ
-GenericName[pl]=Przeglądarka plików PS/PDF
-GenericName[pt]=Visualizador de PS/PDF
-GenericName[pt_BR]=Visualizador PDF/PS
-GenericName[ro]=Vizualizor PS/PDF
-GenericName[ru]=Просмотр Postscript и PDF
-GenericName[se]=PS/PDF-čájeheaddji
-GenericName[sk]=Prehliadač PS/PDF
-GenericName[sl]=Pregledovalnik datotek PS/PDF
-GenericName[sr]=PS/PDF приказивач
-GenericName[sr@Latn]=PS/PDF prikazivač
-GenericName[sv]=PS/PDF-visare
-GenericName[ta]=PS/PDF காட்சி
-GenericName[tg]=Хондани PS/PDF
-GenericName[th]=เครื่องมือแสดงแฟ้มโพสต์สคริปต์ PS/PDF
-GenericName[tr]=PS/PDF Görüntüleyici
-GenericName[uk]=Переглядач PDF/PS
-GenericName[uz]=PS/PDF koʻruvchi
-GenericName[uz@cyrillic]=PS/PDF кўрувчи
-GenericName[ven]=Muvhoni wa PS/PDF
-GenericName[wa]=Håyneu di documints PS/PDF
-GenericName[xh]=Umboniseli we PS/PDF
-GenericName[zh_CN]=PS/PDF 查看器
-GenericName[zh_HK]=PS/PDF 檢視器
-GenericName[zh_TW]=PS/PDF 檢視器
-GenericName[zu]=Umboniseli we PS/PDF
Terminal=false
Categories=Qt;TDE;Graphics;
NoDisplay=true
diff --git a/kghostview/kghostview_part.desktop b/kghostview/kghostview_part.desktop
index 23c6616f..6383094f 100644
--- a/kghostview/kghostview_part.desktop
+++ b/kghostview/kghostview_part.desktop
@@ -1,16 +1,5 @@
[Desktop Entry]
Name=KGhostView
-Name[af]=Kghostview
-Name[ar]=برنامج KGhostView
-Name[eo]=Postskriptrigardilo
-Name[hi]=के-घोस्ट-व्यू
-Name[hu]=KGhostview
-Name[ne]=केडीई घोस्ट दृश्य
-Name[sv]=Kghostview
-Name[ta]=கேமற்றொரு காட்சி
-Name[tr]=GhostView
-Name[ven]=Mbonalelo ya tshipuku tsha K
-Name[xh]=Imboniselo yeKGhost
MimeType=application/pdf;application/postscript;image/x-eps;application/x-gzpostscript;application/illustrator
X-TDE-InitialPreference=6
Icon=kghostview