diff options
author | Slávek Banko <[email protected]> | 2020-07-16 18:30:12 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-17 02:50:29 +0200 |
commit | 7fa2dd79a4f7711a65b45724448c1529dfb94e9f (patch) | |
tree | 0192394f73f297cd56aa972df31bf8bfc07a71d3 /kuiviewer | |
parent | 29e1ae5e34974950ff7965b1522db70b4ff273dc (diff) | |
download | tdesdk-7fa2dd79a4f7711a65b45724448c1529dfb94e9f.tar.gz tdesdk-7fa2dd79a4f7711a65b45724448c1529dfb94e9f.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 'kuiviewer')
-rw-r--r-- | kuiviewer/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kuiviewer/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kuiviewer/designerthumbnail.desktop | 49 | ||||
-rw-r--r-- | kuiviewer/kuiviewer.desktop | 51 | ||||
-rw-r--r-- | kuiviewer/kuiviewer_part.desktop | 4 |
5 files changed, 21 insertions, 104 deletions
diff --git a/kuiviewer/CMakeL10n.txt b/kuiviewer/CMakeL10n.txt index c28a695d..fcd925ac 100644 --- a/kuiviewer/CMakeL10n.txt +++ b/kuiviewer/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kuiviewer" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kuiviewer-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kuiviewer/CMakeLists.txt b/kuiviewer/CMakeLists.txt index c38517d3..8f2ffef2 100644 --- a/kuiviewer/CMakeLists.txt +++ b/kuiviewer/CMakeLists.txt @@ -29,13 +29,16 @@ install( FILES kuiviewerui.rc DESTINATION ${DATA_INSTALL_DIR}/kuiviewer ) -install( FILES - kuiviewer.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kuiviewer.desktop + PO_DIR kuiviewer-desktops +) -install( FILES - kuiviewer_part.desktop designerthumbnail.desktop - DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kuiviewer_part.desktop designerthumbnail.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kuiviewer-desktops +) install( FILES kuiviewer_part.rc diff --git a/kuiviewer/designerthumbnail.desktop b/kuiviewer/designerthumbnail.desktop index c30e111f..f680ba06 100644 --- a/kuiviewer/designerthumbnail.desktop +++ b/kuiviewer/designerthumbnail.desktop @@ -1,52 +1,7 @@ [Desktop Entry] -Type=Service Name=Qt Designer Files -Name[bg]=Файлове на дизайнера Qt -Name[br]=Restroù Ergrafer Qt -Name[bs]=Qt Designer datoteke -Name[ca]=Fitxers de Qt Designer -Name[cs]=Soubory Qt designeru -Name[cy]=Ffeiliau Qt Designer -Name[da]=Qt Designer-filer -Name[de]=Qt-Designer Dateien -Name[el]=Αρχεία Qt Designer -Name[es]=Archivos de Qt Designer -Name[et]=Qt Designeri failid -Name[eu]=Qt Designer fitxategiak -Name[fa]=پروندههای طراح Qt -Name[fi]=Qt Designer -tiedostot -Name[fr]=Fichiers Qt Designer -Name[ga]=Comhaid Qt Designer -Name[gl]=Ficheiros de Qt Designer -Name[hi]=क्यू-टी डिजाइनर फ़ाइलें -Name[hu]=Qt Designer fájlok -Name[is]=Qt Designer skrár -Name[it]=File di Qt Designer -Name[ja]=Qt デザイナーファイル -Name[ka]=Qt დიზაინერის ფაილები -Name[kk]=Qt Designer файлы -Name[lt]=Qt Designer bylos -Name[nb]=Qt Designer-filer -Name[nds]=Qt-Designer-Dateien -Name[ne]=Qt डिजाइनर फाइल -Name[nl]=Qt Designer-bestanden -Name[nn]=Qt Designer-filer -Name[pa]=Qt Designer ਫਾਇਲ -Name[pl]=Pliki Qt Designer -Name[pt]=Ficheiros do Qt Designer -Name[pt_BR]=Arquivos do Qt Designer -Name[ru]=Файлы Qt Designer -Name[sk]=Súbory Qt Designer -Name[sl]=Datoteke za Qt Designer -Name[sr]=Фајлови Qt Designer-а -Name[sr@Latn]=Fajlovi Qt Designer-a -Name[sv]=Qt-designer-filer -Name[ta]=Qt வடிவமை கோப்புகள் -Name[tg]=Файлҳои Qt Designer -Name[tr]=Qt Designer Dosyaları -Name[uk]=Файли Qt Designer -Name[zh_CN]=Qt 设计师文件 -Name[zh_TW]=Qt Designer 檔案 + +Type=Service X-TDE-ServiceTypes=ThumbCreator MimeTypes=application/x-designer X-TDE-Library=quithumbnail diff --git a/kuiviewer/kuiviewer.desktop b/kuiviewer/kuiviewer.desktop index 26ab84d1..857231a0 100644 --- a/kuiviewer/kuiviewer.desktop +++ b/kuiviewer/kuiviewer.desktop @@ -1,56 +1,11 @@ [Desktop Entry] Name=KUIViewer -Name[cy]=KUIGwelydd -Name[hi]=के-यूआई-व्यूअर -Name[ja]=KUI ビューア -Name[sv]=KUIviewer -Name[ta]=KUIவியூவர் + +GenericName=TQt3 Designer UI File Viewer + Exec=kuiviewer %i %m -caption "%c" Icon=kuiviewer Type=Application -GenericName=TQt3 Designer UI File Viewer -GenericName[br]=Ur gweler restr UI Ergrafer TQt3 -GenericName[bs]=Preglednik TQt3 Designer UI datoteka -GenericName[ca]=Visor de fitxer UI de TQt3 Designer -GenericName[cs]=Prohlížeč UI souborů z TQt3 Designeru -GenericName[cy]=Gwelydd Ffeiliau UI TQt3 Designer -GenericName[da]=TQt3 Designer UI filviser -GenericName[de]=Betrachter für UI-Dateien des TQt3-Designer -GenericName[el]=Προβολέας αρχείων TQt3 Designer UI -GenericName[es]=Visor de archivos UI de TQt3 Designer -GenericName[et]=TQt3 Designeri UI-failide näitaja -GenericName[eu]=TQt3 Designer UI fitxartegi ikusgailua -GenericName[fa]=مشاهدهگر پروندۀ واسط نگارهای طراح TQt3 -GenericName[fi]=TQt3 Designerin UI-tiedostojen katselin -GenericName[fr]=Afficheur de fichiers UI de TQt3 Designer -GenericName[gl]=Visor de ficheiros de TQt3 Designer -GenericName[hu]=TQt3 Designer UI-fájlnézegető -GenericName[is]=TQt3 Designer UI skráaskoðari -GenericName[it]=Visualizzatore per file UI di TQt3 Designer -GenericName[ja]=TQt3 デザイナー UI ファイルビューア -GenericName[ka]=TQt3 დიზაინერის UI ფაილთა მხილველი -GenericName[kk]=TQt3 Designer пайдаланушы интерфейсінің файлдарын қарау құралы -GenericName[lt]=TQt3 Designer naudotojo sąsajos bylų žiūryklė -GenericName[nb]=TQt3 Designer UI-filviser -GenericName[nds]=Kieker för TQt3-Designer sien UI-Dateien -GenericName[ne]=TQt3 डिजाइनर यूआई फाइल दर्शक -GenericName[nl]=Weergave van TQt3 Designer UI-bestanden -GenericName[nn]=TQt3 Designer UI-filvisar -GenericName[pl]=Przeglądarka plików interfejsu użytkownika TQt3 Designera -GenericName[pt]=Visualizador de Ficheiros UI do TQt3 Designer -GenericName[pt_BR]=Visualizador de Arquivos e Interface do TQt3 Designer -GenericName[ru]=Просмотрщик UI-файлов TQt3 Designer -GenericName[sk]=Prehliadač súborov UI pre TQt3 Designer -GenericName[sl]=Pregledovalnik datotek UI za TQt3 Designer -GenericName[sr]=Приказивач UI фајлова TQt3 Designer-а -GenericName[sr@Latn]=Prikazivač UI fajlova TQt3 Designer-a -GenericName[sv]=TQt3-designer UI-filvisning -GenericName[ta]=TQt3 வடிவமைப்பவர் UI கோப்புகள் காட்சியகம் -GenericName[tg]=Намоишгари UI-файлҳо TQt3 Designer -GenericName[tr]=TQt3 Designer UI Dosya Görüntüleyici -GenericName[uk]=Переглядач UI-файлів TQt3 Designer -GenericName[zh_CN]=TQt3 设计师 UI 文件查看器 -GenericName[zh_TW]=TQt3 Designer UI 檔案檢視器 MimeType=application/x-designer; Terminal=false X-DCOP-ServiceType=Multi diff --git a/kuiviewer/kuiviewer_part.desktop b/kuiviewer/kuiviewer_part.desktop index 803ba04b..6cd9cb47 100644 --- a/kuiviewer/kuiviewer_part.desktop +++ b/kuiviewer/kuiviewer_part.desktop @@ -1,8 +1,6 @@ [Desktop Entry] Name=KUIViewerPart -Name[hi]=के-यूआई-व्यूअर-पार्ट -Name[sv]=KUIviewer-del -Name[ta]=KUIவியூவர் உறுப்பு + MimeType=application/x-designer; X-TDE-ServiceTypes=KParts/ReadOnlyPart X-TDE-Library=libkuiviewerpart |