diff options
author | Slávek Banko <[email protected]> | 2020-06-09 17:49:10 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-09 19:55:02 +0200 |
commit | 605ad91b1690a8149c2f351d1838f2d3c6929106 (patch) | |
tree | 8a1b07dd03802c1359a6409f0bab8a6d89ef87d3 /kviewshell | |
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 <[email protected]>
(cherry picked from commit 837dbafbea0c7f7bc73d27fda684ea2dededd547)
Diffstat (limited to 'kviewshell')
-rw-r--r-- | kviewshell/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kviewshell/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kviewshell/emptymultipage.desktop | 22 | ||||
-rw-r--r-- | kviewshell/plugins/djvu/CMakeLists.txt | 7 | ||||
-rw-r--r-- | kviewshell/plugins/djvu/djvumultipage.desktop | 48 | ||||
-rw-r--r-- | kviewshell/tdemultipage.desktop | 28 |
6 files changed, 25 insertions, 101 deletions
diff --git a/kviewshell/CMakeL10n.txt b/kviewshell/CMakeL10n.txt index f7aa7dab..ab95fd8a 100644 --- a/kviewshell/CMakeL10n.txt +++ b/kviewshell/CMakeL10n.txt @@ -6,3 +6,9 @@ tde_l10n_create_template( ) tde_l10n_auto_add_subdirectories( ) + +tde_l10n_create_template( + CATALOG "desktop_files/kviewshell-desktops/" + SOURCES *.desktop + DESTNATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kviewshell/CMakeLists.txt b/kviewshell/CMakeLists.txt index e41b832f..8f61542d 100644 --- a/kviewshell/CMakeLists.txt +++ b/kviewshell/CMakeLists.txt @@ -64,8 +64,19 @@ if ( BUILD_KVIEWSHELL ) install( FILES kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kviewshell ) install( FILES kviewerpart.rc DESTINATION ${DATA_INSTALL_DIR}/kviewerpart ) - install( FILES tdemultipage.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) - install( FILES emptymultipage.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + tde_create_translated_desktop( + SOURCE tdemultipage.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops + ) + + tde_create_translated_desktop( + SOURCE emptymultipage.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops + ) + install( FILES kviewshell.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) diff --git a/kviewshell/emptymultipage.desktop b/kviewshell/emptymultipage.desktop index 3b8a90bc..87696453 100644 --- a/kviewshell/emptymultipage.desktop +++ b/kviewshell/emptymultipage.desktop @@ -1,28 +1,6 @@ [Desktop Entry] Type=Service -Comment= Name=EmptyMultiPage -Name[de]=Leere Mehrfachseite -Name[el]=ΚενήΠολλαπλήΣελίδα -Name[es]=Vaciado multipágina -Name[fi]=TyhjäMoniSivu -Name[fr]=Multi-page vide -Name[gl]=MultiPáxinaBaleira -Name[hu]=ÜresTöbbOldalas -Name[it]=MultiPaginaVuota -Name[nb]=Tom Flerside -Name[nds]=Leddig Mehrfachsiet -Name[ne]=रिक्त बहुपृष्ठ -Name[nl]=LegeMultiPagina -Name[nn]=Tom fleirside -Name[pl]=Puste wielostronicowe -Name[pt_BR]=MultiPáginas Vazias -Name[ro]=Pagini multiple goale -Name[sk]=EmprtyMultiPage -Name[sv]=Tom flera sidor -Name[ta]=காலியான பலபக்கம் -Name[tr]=BoşÇokluSayfa -Name[zh_HK]=空的多頁 X-TDE-ServiceTypes=KViewShell/MultiPage X-TDE-Library=emptymultipagepart X-TDE-EmptyMultiPage=1 diff --git a/kviewshell/plugins/djvu/CMakeLists.txt b/kviewshell/plugins/djvu/CMakeLists.txt index fe9d4ef9..d950a5df 100644 --- a/kviewshell/plugins/djvu/CMakeLists.txt +++ b/kviewshell/plugins/djvu/CMakeLists.txt @@ -28,7 +28,12 @@ link_directories( ##### other data ################################ -install( FILES djvumultipage.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE djvumultipage.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops +) + install( FILES djvumultipage.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) install( FILES djvumultipage.rc DESTINATION ${DATA_INSTALL_DIR} ) diff --git a/kviewshell/plugins/djvu/djvumultipage.desktop b/kviewshell/plugins/djvu/djvumultipage.desktop index 6da86c47..6aecc337 100644 --- a/kviewshell/plugins/djvu/djvumultipage.desktop +++ b/kviewshell/plugins/djvu/djvumultipage.desktop @@ -1,56 +1,8 @@ [Desktop Entry] Name=kdjview -Name[hu]=KDjView -Name[ja]=Kdjview -Name[ne]=केडीजे दृश्य -Name[sk]=kdjView -Name[sv]=Kdjview -Name[zh_CN]=KDjView Icon=kdjview Type=Service Comment=KViewShell plugin for DjVu files -Comment[bg]=Приставка за файлове DjVu -Comment[br]=Lugent KViewShell evit ar restroù DjVu -Comment[bs]=KViewShell dodatak za DjVu datoteke -Comment[ca]=Connector pel KViewShell per fitxers DjVu -Comment[cs]=KViewShell modul pro DjVu soubory -Comment[da]=Kviewshell-plugin for DjVu-filer -Comment[de]=Ein KViewShell-Modul für DjVu-Dateien -Comment[el]=Πρόσθετο του KViewShell για αρχεία DjVu -Comment[es]=Extensión KViewShell para archivos DjVu -Comment[et]=KView DjVu-failide plugin -Comment[eu]=DjVu fitxategien KViewShell-en plugina -Comment[fa]=وصلۀ KViewShell برای پروندههای DjVu -Comment[fi]=KViewShell sovelma DjVu-tiedostoille -Comment[fr]=Module KViewShell pour les fichiers DjVu -Comment[gl]=Extensión de KViewShell para ficheiros DjVu -Comment[hu]=KViewShell-modul DjVu-fájlokhoz -Comment[is]=KViewShell íforrit fyrir DjVu skrár -Comment[it]=Plugin KViewShell per file DjVu -Comment[ja]=DjVu ファイル用の KViewShell プラグイン -Comment[kk]=DjVu файлдарына арналған KViewShell плагин модулі -Comment[km]=កម្មវិធីជំនួយ KViewShell សម្រាប់ឯកសារ DjVu -Comment[lt]=KViewShell priedas, skirtas DjVu byloms -Comment[ms]=Plugin KViewShell untuk fail DjVu -Comment[nb]=KViewShell programtillegg for DjVu-filer -Comment[nds]=En "KViewShell"-Moduul för DjVu-Dateien -Comment[ne]=डिजे भीयू फाइलका लागि केडीई दृश्य शेल प्लगइन -Comment[nl]=KViewShell-plugin voor DjVu-bestanden -Comment[nn]=KViewShell-programtillegg for DjVu-filer -Comment[pl]=Wtyczka KViewShell do plików DjVu -Comment[pt]='Plugin' do KViewShell para ficheiros do DjVu -Comment[pt_BR]=Plugin KViewShell para arquivos DjVu -Comment[ru]=Компонент просмотра файлов DjVu -Comment[sk]=KViewShell modul pre DjVu súbory -Comment[sl]=Vstavek za KViewShell za datoteke DjVu -Comment[sr]=KViewShell-ов прикључак за DjVu фајлове -Comment[sr@Latn]=KViewShell-ov priključak za DjVu fajlove -Comment[sv]=Kviewshell-insticksprogram för DjVu-filer -Comment[tr]=DjVu dosyaları için KViewShell eklentisi -Comment[uk]=Втулок перегляду файлів DjVu для KViewShell -Comment[zh_CN]=DjVu 文件的 KViewShell 插件 -Comment[zh_HK]=用於 DjVu 檔案的 KViewShell 插件 -Comment[zh_TW]=DjVu 檔的 KViewShell 外掛程式 X-TDE-ServiceTypes=KViewShell/MultiPage X-TDE-MimeTypes=image/x-djvu X-TDE-Library=djvuviewpart diff --git a/kviewshell/tdemultipage.desktop b/kviewshell/tdemultipage.desktop index 0ef915a9..5d1aee9e 100644 --- a/kviewshell/tdemultipage.desktop +++ b/kviewshell/tdemultipage.desktop @@ -2,34 +2,6 @@ Type=Service X-TDE-ServiceType=KViewShell/MultiPage Name=KViewShell MultiPage -Name[da]=KViewShell Multiside -Name[de]=KViewShell Mehrfachseiten -Name[el]=Πολλαπλή σελίδα KViewShell -Name[es]=Multipágina KViewShell -Name[fi]=KViewShell MoniSivu -Name[fr]=Multi-page KViewShell -Name[gl]=KViewShell Multipáxina -Name[hu]=KViewShell többoldalas -Name[it]=MultiPagina KViewShell -Name[kk]=Көпбетті KViewShell -Name[ms]=PelbagaiMuka KViewShell -Name[nb]=KViewShell Flerside -Name[nds]=KViewShell för Mehrfachsieden -Name[ne]=के दृश्य शेल बहुपृष्ठ -Name[nl]=KViewShell MultiPagina -Name[nn]=KViewShell-fleirside -Name[pl]=Wielostronicowe dla KViewShell -Name[pt]=KViewShell MultiPágina -Name[pt_BR]=KViewShell - Múltiplas Páginas -Name[ro]=KViewShell Pagini Multiple -Name[ru]=Компонент MultiPage -Name[sr]=KViewShell вишестрани -Name[sr@Latn]=KViewShell višestrani -Name[sv]=Kviewshell flera sidor -Name[ta]=கேகாட்சிஓடு பலபக்கம் -Name[tr]=KViewShell ÇokluSayfa -Name[zh_CN]=KViewShell 多页 -Name[zh_HK]=KViewShell 多頁 [PropertyDef::X-TDE-MimeTypes] Type=TQString |