diff options
author | Slávek Banko <[email protected]> | 2020-06-09 17:49:10 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-09 17:49:10 +0200 |
commit | 837dbafbea0c7f7bc73d27fda684ea2dededd547 (patch) | |
tree | 66811931fed182f8fa6f59547c6511a897adb734 /kdvi | |
parent | 00b9084c635fe29e7c5942ff508be2ca65893659 (diff) | |
download | tdegraphics-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 <[email protected]>
Diffstat (limited to 'kdvi')
-rw-r--r-- | kdvi/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kdvi/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kdvi/kdvi.desktop | 74 | ||||
-rw-r--r-- | kdvi/kdvimultipage.desktop | 10 |
4 files changed, 15 insertions, 90 deletions
diff --git a/kdvi/CMakeL10n.txt b/kdvi/CMakeL10n.txt index ad14af79..7d30e76d 100644 --- a/kdvi/CMakeL10n.txt +++ b/kdvi/CMakeL10n.txt @@ -4,3 +4,9 @@ tde_l10n_create_template( CATALOG "kdvi" SOURCES "." "tips" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kdvi-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kdvi/CMakeLists.txt b/kdvi/CMakeLists.txt index 9c1ef8da..0b38628c 100644 --- a/kdvi/CMakeLists.txt +++ b/kdvi/CMakeLists.txt @@ -28,13 +28,16 @@ link_directories( #### other data ################################# -install( FILES - kdvi.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdvi.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops +) -install( FILES - kdvimultipage.desktop - DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdvimultipage.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops +) install( FILES kdvi.kcfg diff --git a/kdvi/kdvi.desktop b/kdvi/kdvi.desktop index 3eb980c3..111f6a0c 100644 --- a/kdvi/kdvi.desktop +++ b/kdvi/kdvi.desktop @@ -1,80 +1,6 @@ [Desktop Entry] GenericName=DVI Viewer -GenericName[af]=Dvi Aansig -GenericName[ar]=عارض ملفات DVI -GenericName[az]=DVI Nümayişçisi -GenericName[bg]=Преглед на документи DVI -GenericName[br]=Gweler DVI -GenericName[bs]=Preglednik DVI dokumenata -GenericName[ca]=Visualitzador de DVI -GenericName[cs]=Prohlížeč DVI souborů -GenericName[cy]=Gwelydd DVI -GenericName[da]=DVI-fremviser -GenericName[de]=DVI-Betrachter -GenericName[el]=Προβολέας DVI -GenericName[eo]=DVI-rigardilo -GenericName[es]=Visor de documentos DVI -GenericName[et]=DVI failide vaataja -GenericName[eu]=DVI ikustailea -GenericName[fa]=مشاهدهگر DVI -GenericName[fi]=DVI-näytin -GenericName[fr]=Afficheur DVI -GenericName[ga]=Amharcán DVI -GenericName[gl]=Visor de DVI -GenericName[he]=מציג DVI -GenericName[hi]=डीवीआई प्रदर्शक -GenericName[hr]=Preglednik DVI dokumenata -GenericName[hu]=DVI-nézegető -GenericName[id]=Viewer DVI -GenericName[is]=DVI sjá -GenericName[it]=Visore DVI -GenericName[ja]=DVI ビューア -GenericName[kk]=DVI файлдарын қарау -GenericName[km]=កម្មវិធីមើល DVI -GenericName[ko]=DVI 보기 -GenericName[lt]=DVI Žiūriklis -GenericName[lv]=DVI Skatītājs -GenericName[mk]=Прикажувач на DVI -GenericName[ms]=Pemapar DVI -GenericName[mt]=Werrej DVI -GenericName[nb]=DVI-fremviser -GenericName[nds]=DVI-Kieker -GenericName[ne]=DVI दर्शक -GenericName[nl]=DVI-weergaveprogramma -GenericName[nn]=DVI-lesar -GenericName[pa]=DVI ਦਰਸ਼ਕ -GenericName[pl]=Przeglądarka plików DVI -GenericName[pt]=Visualizador de DVIs -GenericName[pt_BR]=Visualizador de DVI -GenericName[ro]=Vizualizor DVI -GenericName[ru]=Просмотр файлов DVI -GenericName[rw]=Ikigaragaza DVI -GenericName[se]=DVI čájeheaddji -GenericName[sk]=Prehliadač DVI súborov -GenericName[sl]=Pregledovalnik datotek DVI -GenericName[sr]=DVI приказивач -GenericName[sr@Latn]=DVI prikazivač -GenericName[sv]=DVI-visare -GenericName[ta]=DVI காட்சி -GenericName[tg]=Намоиши файли DVI -GenericName[th]=ตัวแสดงผล DVI -GenericName[tr]=DVI Görüntüleyici -GenericName[uk]=Переглядач DVI -GenericName[uz]=DVI koʻruvchi -GenericName[uz@cyrillic]=DVI кўрувчи -GenericName[ven]=Muvhoni wa DVI -GenericName[wa]=Håyneu di fitchîs DVI -GenericName[xh]=Umboniseli we DVI -GenericName[zh_CN]=DVI 查看器 -GenericName[zh_HK]=DVI 檢視器 -GenericName[zh_TW]=DVI 檢視器 -GenericName[zu]=Umboniseli we DVI Name=KDVI -Name[af]=Kdvi -Name[ar]=برنامج KDVI -Name[eo]=DVI-rigardilo -Name[hi]=के-डीवीआई -Name[zh_TW]=KDVI 檢視器 MimeType=application/x-dvi;application/x-gzdvi;application/x-bz2dvi; X-TDE-InitialPreference=6 Exec=kdvi %f -caption "%c" %i %m diff --git a/kdvi/kdvimultipage.desktop b/kdvi/kdvimultipage.desktop index 9d3f6915..3ffa2cc0 100644 --- a/kdvi/kdvimultipage.desktop +++ b/kdvi/kdvimultipage.desktop @@ -2,16 +2,6 @@ Type=Service Comment=DVI Name=KDVIMultiPage -Name[es]=KDVIMultiPágina -Name[fr]=Multi-page KDVI -Name[hu]=KDVITöbbOldalas -Name[nb]=KDVI Flerside -Name[ne]=केडीभीआई बहुपृष्ठ -Name[nl]=KDVIMultiPagina -Name[nn]=KDVI-fleirside -Name[pt]=KDVIMultiPágina -Name[ro]=KDVI Pagini Multiple -Name[sv]=KDVI flera sidor X-TDE-ServiceTypes=KViewShell/MultiPage X-TDE-Library=kdvipart X-TDE-MimeTypes=application/x-dvi |