diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-06-09 17:49:10 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-06-09 19:55:02 +0200 |
commit | 605ad91b1690a8149c2f351d1838f2d3c6929106 (patch) | |
tree | 8a1b07dd03802c1359a6409f0bab8a6d89ef87d3 /kpdf | |
parent | 766134636125fd2ed1c1a1b97fdd7f63f5bf3ed7 (diff) | |
download | tdegraphics-605ad91b1690a8149c2f351d1838f2d3c6929106.tar.gz tdegraphics-605ad91b1690a8149c2f351d1838f2d3c6929106.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 837dbafbea0c7f7bc73d27fda684ea2dededd547)
Diffstat (limited to 'kpdf')
-rw-r--r-- | kpdf/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kpdf/CMakeLists.txt | 8 | ||||
-rw-r--r-- | kpdf/kpdf_part.desktop | 3 | ||||
-rw-r--r-- | kpdf/shell/CMakeLists.txt | 6 | ||||
-rw-r--r-- | kpdf/shell/kpdf.desktop | 71 |
5 files changed, 18 insertions, 76 deletions
diff --git a/kpdf/CMakeL10n.txt b/kpdf/CMakeL10n.txt index d223ae9d..9373a9c0 100644 --- a/kpdf/CMakeL10n.txt +++ b/kpdf/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kpdf" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kpdf-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kpdf/CMakeLists.txt b/kpdf/CMakeLists.txt index ccef1e04..fedd6665 100644 --- a/kpdf/CMakeLists.txt +++ b/kpdf/CMakeLists.txt @@ -33,7 +33,13 @@ link_directories( ##### other data ################################ tde_install_icons( kpdf ) -install( FILES kpdf_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + +tde_create_translated_desktop( + SOURCE kpdf_part.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops +) + install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/kpdfpart ) diff --git a/kpdf/kpdf_part.desktop b/kpdf/kpdf_part.desktop index a3620ada..138b8a68 100644 --- a/kpdf/kpdf_part.desktop +++ b/kpdf/kpdf_part.desktop @@ -1,9 +1,6 @@ [Desktop Entry] Icon=kpdf Name=KPDF -Name[ar]=برنامج KPDF -Name[hi]=के-पीडीएफ -Name[zh_TW]=KPDF 檢視器 MimeType=application/pdf X-TDE-InitialPreference=7 X-TDE-ServiceTypes=KParts/ReadOnlyPart diff --git a/kpdf/shell/CMakeLists.txt b/kpdf/shell/CMakeLists.txt index 74553840..1794250c 100644 --- a/kpdf/shell/CMakeLists.txt +++ b/kpdf/shell/CMakeLists.txt @@ -23,7 +23,11 @@ link_directories( ##### other data ################################ -install( FILES kpdf.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kpdf.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops +) + install( FILES shell.rc DESTINATION ${DATA_INSTALL_DIR}/kpdf ) diff --git a/kpdf/shell/kpdf.desktop b/kpdf/shell/kpdf.desktop index dc4a96a9..630fcf2e 100644 --- a/kpdf/shell/kpdf.desktop +++ b/kpdf/shell/kpdf.desktop @@ -2,81 +2,10 @@ MimeType=application/pdf; Terminal=false Name=KPDF -Name[ar]=برنامج KPDF -Name[hi]=के-पीडीएफ -Name[zh_TW]=KPDF 檢視器 GenericName=PDF Viewer -GenericName[ar]=عارض ملفات PDF -GenericName[az]=PDF Nümayişçisi -GenericName[bg]=Преглед на документи PDF -GenericName[br]=Gweler PDF -GenericName[bs]=Preglednik PDF dokumenata -GenericName[ca]=Visualitzador de PDF -GenericName[cs]=Prohlížeč PDF souborů -GenericName[cy]=Gwelydd PDF -GenericName[da]=PDF-fremviser -GenericName[de]=PDF-Betrachter -GenericName[el]=Προβολέας PDF -GenericName[eo]=PDF-rigardilo -GenericName[es]=Visor de PDF -GenericName[et]=PDF-failide näitaja -GenericName[eu]=PDF ikustailua -GenericName[fa]=مشاهدهگر PDF -GenericName[fi]=PDF-näytin -GenericName[fr]=Afficheur PDF -GenericName[ga]=Amharcán PDF -GenericName[gl]=Visor PDF -GenericName[he]=מציג PDF -GenericName[hi]=पीडीएफ प्रदर्शक -GenericName[hr]=Preglednik PDF dokumenata -GenericName[hu]=PDF-nézegető -GenericName[id]=Viewer PDF -GenericName[is]=PDF sjá -GenericName[it]=Visore PDF -GenericName[ja]=PDF ビューア -GenericName[kk]=PDF файлдарын қарау -GenericName[km]=កម្មវិធីមើល PDF -GenericName[lt]=PDF Žiūriklis -GenericName[lv]=PDF Skatītājs -GenericName[mk]=Прикажувач на PDF датотеки -GenericName[ms]=Pemapar PDF -GenericName[mt]=Werrej PDF -GenericName[nb]=PDF-fremviser -GenericName[nds]=PDF-Kieker -GenericName[ne]=PDF दर्शक -GenericName[nl]=PDF-weergaveprogramma -GenericName[nn]=PDF-lesar -GenericName[pa]=PDF ਦਰਸ਼ਕ -GenericName[pl]=Przeglądarka plików PDF -GenericName[pt]=Visualizador de PDFs -GenericName[pt_BR]=Visualizador de arquivos PDF -GenericName[ro]=Vizualizor PDF -GenericName[ru]=Просмотр PDF -GenericName[rw]=Mugaragaza PDF -GenericName[se]=PDF-čájeheaddji -GenericName[sk]=Prehliadač PDF -GenericName[sl]=Pregledovalnik datotek PDF -GenericName[sr]=PDF приказивач -GenericName[sr@Latn]=PDF prikazivač -GenericName[sv]=PDF-visare -GenericName[ta]=PS/PDF காட்சி -GenericName[tg]=Хондани санадоти PDF -GenericName[th]=ตัวแสดงผล PDF -GenericName[tr]=PDF Görüntüleyici -GenericName[uk]=Переглядач PDF -GenericName[uz]=PDF koʻruvchi -GenericName[uz@cyrillic]=PDF кўрувчи -GenericName[ven]=Tshivhoni tsha PDF -GenericName[wa]=Håyneu di documints PDF -GenericName[xh]=Umboniseli we PDF -GenericName[zh_CN]=PDF 查看器 -GenericName[zh_HK]=PDF 檢視器 -GenericName[zh_TW]=PDF 檢視器 -GenericName[zu]=Umboniseli we PDF Exec=kpdf %U %i -caption "%c" Icon=kpdf Type=Application X-DocPath=kpdf/index.html X-TDE-InitialPreference=7 Categories=Qt;TDE;Office;Viewer; - |