summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-08 22:39:20 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-08 22:39:20 +0200
commitd36d9267539f12fdaa5a0dd18f6285e4a636e1ac (patch)
tree65966d4e78c0529e0e56f8586a7d9c2ae530d336 /tdefile-plugins
parent54888da0ae983555ec963c52007c50d49b3c66af (diff)
downloadtdenetwork-d36d9267539f12fdaa5a0dd18f6285e4a636e1ac.tar.gz
tdenetwork-d36d9267539f12fdaa5a0dd18f6285e4a636e1ac.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 'tdefile-plugins')
-rw-r--r--tdefile-plugins/CMakeL10n.txt6
-rw-r--r--tdefile-plugins/torrent/CMakeLists.txt8
-rw-r--r--tdefile-plugins/torrent/tdefile_torrent.desktop50
3 files changed, 13 insertions, 51 deletions
diff --git a/tdefile-plugins/CMakeL10n.txt b/tdefile-plugins/CMakeL10n.txt
index b585ce4a..af16c09a 100644
--- a/tdefile-plugins/CMakeL10n.txt
+++ b/tdefile-plugins/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdefile-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/tdefile-plugins/torrent/CMakeLists.txt b/tdefile-plugins/torrent/CMakeLists.txt
index a14c3e23..561c4e5b 100644
--- a/tdefile-plugins/torrent/CMakeLists.txt
+++ b/tdefile-plugins/torrent/CMakeLists.txt
@@ -22,9 +22,11 @@ link_directories(
##### other data ################################
-install( FILES
- tdefile_torrent.desktop
- DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE tdefile_torrent.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
##### tdefile_torrent (module) ####################
diff --git a/tdefile-plugins/torrent/tdefile_torrent.desktop b/tdefile-plugins/torrent/tdefile_torrent.desktop
index ca591528..a2ca8b96 100644
--- a/tdefile-plugins/torrent/tdefile_torrent.desktop
+++ b/tdefile-plugins/torrent/tdefile_torrent.desktop
@@ -1,53 +1,7 @@
[Desktop Entry]
-Type=Service
Name=Bit Torrent Info
-Name[be]=Звесткі Bit Torrent
-Name[bn]=বিট টোরেন্ট তথ্য
-Name[br]=Titouriñ diwar-benn Bit Torrent
-Name[bs]=Bit Torrent informacije
-Name[ca]=Informació de Bit Torrent
-Name[cs]=Bit Torrent informace
-Name[da]=Info om bittorrent
-Name[de]=Bit Torrent Informationen
-Name[el]=Πληροφορίες Bit Torrent
-Name[es]=Información Bit Torrent
-Name[et]=Bit Torrenti info
-Name[eu]=Bit-torrent informazioa
-Name[fa]=اطلاعات جریان بیتی
-Name[fi]=Bit Torrent
-Name[fr]=Infos Bit Torrent
-Name[gl]=Información de Bit Torrent
-Name[he]=מידע ביטטורנט
-Name[hu]=Bit Torrent-jellemzők
-Name[is]=Bit Torrent upplýsingar
-Name[it]=Informazioni Bittorrent
-Name[ja]=Bit Torrent 情報
-Name[ka]=Bit Torrent ინფორმაცია
-Name[kk]=Bit Torrent мәліметі
-Name[km]=ព័ត៌មាន Bit Torrent
-Name[lt]=Bit Torrent Informacija
-Name[mk]=Информации за Bit Torrent
-Name[nds]=BitTorrent-Info
-Name[ne]=बिट टोरेन्ट सूचना
-Name[nl]=Bittorent-informatie
-Name[nn]=Bit Torrent-info
-Name[pa]=Bit Torrent ਜਾਣਕਾਰੀ
-Name[pl]=Informacja o Bit Torrent
-Name[pt]=Informações Bit Torrent
-Name[pt_BR]=Informações do Bit Torrent
-Name[ro]=Informaţii Bit Torrent
-Name[ru]=Сведения о BitTorrent
-Name[sk]=Bit Torrent informácie
-Name[sl]=Podatki o BitTorrentu
-Name[sr]=Bit Torrent информације
-Name[sr@Latn]=Bit Torrent informacije
-Name[sv]=Information om Bit Torrent
-Name[ta]=பிட் டோர்ரெண்ட் தகவல்
-Name[tr]=Bit Torrent Bilgisi
-Name[uk]=Інформація про Bit Torrent
-Name[zh_CN]=BitTorrent 信息
-Name[zh_HK]=Bit Torrent 資訊
-Name[zh_TW]=Bit Torrent 資訊
+
+Type=Service
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_torrent
# change MimeType here! (example: inode/directory)