diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-31 19:18:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-31 19:18:47 +0200 |
commit | cfe279f15a6ca1dad65d63f289a6a6a8a91bb024 (patch) | |
tree | a94e1b610ad1a7989454fea921479fcd34e6da7d /tdefile-plugins | |
parent | 1520d3a0913a80a9071c15c1a039e2b1c7dbb993 (diff) | |
download | tdeadmin-cfe279f15a6ca1dad65d63f289a6a6a8a91bb024.tar.gz tdeadmin-cfe279f15a6ca1dad65d63f289a6a6a8a91bb024.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.txt | 6 | ||||
-rw-r--r-- | tdefile-plugins/deb/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tdefile-plugins/deb/tdefile_deb.desktop | 62 | ||||
-rw-r--r-- | tdefile-plugins/rpm/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tdefile-plugins/rpm/tdefile_rpm.desktop | 62 |
5 files changed, 12 insertions, 126 deletions
diff --git a/tdefile-plugins/CMakeL10n.txt b/tdefile-plugins/CMakeL10n.txt index b585ce4..af16c09 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/deb/CMakeLists.txt b/tdefile-plugins/deb/CMakeLists.txt index 70ec689..a6503e0 100644 --- a/tdefile-plugins/deb/CMakeLists.txt +++ b/tdefile-plugins/deb/CMakeLists.txt @@ -25,6 +25,8 @@ tde_add_kpart( tdefile_deb AUTOMOC ##### other data ################################ -install( FILES tdefile_deb.desktop +tde_create_translated_desktop( + SOURCE tdefile_deb.desktop DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops ) diff --git a/tdefile-plugins/deb/tdefile_deb.desktop b/tdefile-plugins/deb/tdefile_deb.desktop index 7551d17..1bce462 100644 --- a/tdefile-plugins/deb/tdefile_deb.desktop +++ b/tdefile-plugins/deb/tdefile_deb.desktop @@ -1,68 +1,6 @@ [Desktop Entry] Type=Service Name=DEB Stats -Name[af]=Deb Statistiek -Name[ar]=إحصائيَات DEB -Name[az]=DEB Statistikaları -Name[be]=Cтатыстыка DEB -Name[bn]=ডেব পরিসংখ্যান -Name[br]=Stadegoù gant DEB -Name[bs]=DEB statistika -Name[ca]=L'estat dels DEB -Name[cs]=DEB statistiky -Name[cy]=Ystadegau DEB -Name[da]=DEB-stats -Name[el]=Στατιστικά DEB -Name[eo]=DEB statistikoj -Name[es]=Estadísticas DEB -Name[et]=DEB statistika -Name[eu]=DEB estadistikak -Name[fa]=آمار DEB -Name[fi]=DEB-tilastot -Name[fo]=DEB-hagtøl -Name[fr]=État DEB -Name[ga]=Staitistic DEB -Name[gl]=Estatísticas DEB -Name[he]=סטטיסטיקת DEB -Name[hi]=डीईबी स्टेट्स -Name[hr]=DEB statistike -Name[hu]=DEB-statisztika -Name[it]=Statistiche DEB -Name[ka]=DEB სტატისტიკა -Name[kk]=DEB статистикасы -Name[km]=សភាព DEB -Name[ko]=DEB 상태 -Name[lt]=DEB statistika -Name[lv]=DEB Statusi -Name[mn]=ДЕВ Төлөв -Name[mt]=Statistika DEB -Name[nb]=DEB statistikk -Name[ne]=डीईबी तथ्याङ्क -Name[nl]=DEB-statistieken -Name[nn]=DEB-statistikk -Name[pa]=DEB ਸਥਿਤੀ -Name[pl]=Dane pakietów DEB -Name[pt]=Informações de DEBs -Name[pt_BR]=Estados DEB -Name[ro]=Statistici DEB -Name[ru]=Статистика DEB -Name[se]=DEB-statistihkka -Name[sk]=Štatistiky DEB -Name[sl]=Statistike DEB -Name[sr]=DEB Статистике -Name[sr@Latn]=DEB Statistike -Name[sv]=DEB-statistik -Name[ta]=DEB புள்ளி விவரம் -Name[tg]=Статистикаи DEB -Name[th]=สถิติของ DEB -Name[tr]=DEB İstatistikleri -Name[uk]=Дані DEB -Name[ven]=Mbalo dza DEB -Name[vi]=Thống kê DEB -Name[wa]=Sitatistikes DEB -Name[zh_CN]=DEB 统计 -Name[zh_HK]=DEB 統計 -Name[zh_TW]=DEB 統計 X-TDE-ServiceTypes=KFilePlugin X-TDE-Library=tdefile_deb MimeType=application/x-deb diff --git a/tdefile-plugins/rpm/CMakeLists.txt b/tdefile-plugins/rpm/CMakeLists.txt index 8e161e3..a3e44ef 100644 --- a/tdefile-plugins/rpm/CMakeLists.txt +++ b/tdefile-plugins/rpm/CMakeLists.txt @@ -25,6 +25,8 @@ tde_add_kpart( tdefile_rpm AUTOMOC ##### other data ################################ -install( FILES tdefile_rpm.desktop +tde_create_translated_desktop( + SOURCE tdefile_rpm.desktop DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops ) diff --git a/tdefile-plugins/rpm/tdefile_rpm.desktop b/tdefile-plugins/rpm/tdefile_rpm.desktop index b889b6e..b63ca54 100644 --- a/tdefile-plugins/rpm/tdefile_rpm.desktop +++ b/tdefile-plugins/rpm/tdefile_rpm.desktop @@ -1,68 +1,6 @@ [Desktop Entry] Type=Service Name=RPM Stats -Name[af]=Rpm Statistiek -Name[ar]=إحصائيَات RPM -Name[az]=RPM Statistikaları -Name[be]=Статыстыка RPM -Name[bn]=আরপিএম পরিসংখ্যান -Name[br]=Stadegoù gant RPM -Name[bs]=RPM statistika -Name[ca]=L'estat dels RPM -Name[cs]=RPM statistiky -Name[cy]=Ystadegau RPM -Name[da]=RPM-stats -Name[el]=Στατιστικά RPM -Name[eo]=RPM statistikoj -Name[es]=Estadísticas RPM -Name[et]=RPM statistika -Name[eu]=RPM estadistikak -Name[fa]=آمار RPM -Name[fi]=RPM-tilastot -Name[fo]=RPM-hagtøl -Name[fr]=État RPM -Name[ga]=Staitistic RPM -Name[gl]=Estatísticas RPM -Name[he]=סטטיסטיקת RPM -Name[hi]=आरपीएम स्टेट्स -Name[hr]=RPM statistike -Name[hu]=RPM-információ -Name[it]=Statistiche RPM -Name[ka]=RPM სტატისტიკა -Name[kk]=RPM статистикасы -Name[km]=សភាព RPM -Name[ko]=RPM 상태 -Name[lt]=RPM statistika -Name[lv]=RPM Statusi -Name[mn]=РПМ Төлөв -Name[mt]=Statistika RPM -Name[nb]=RPM statistikk -Name[ne]=आरपीएम तथ्याङ्क -Name[nl]=RPM-statistieken -Name[nn]=RPM-statistikk -Name[pa]=RPM ਸਥਿਤੀ -Name[pl]=Dane plików RPM -Name[pt]=Informações de RPMs -Name[pt_BR]=Estados do RPM -Name[ro]=Statistici RPM -Name[ru]=Статистика RPM -Name[se]=RPM-statistihkka -Name[sk]=Štatistiky RPM -Name[sl]=Statistike RPM -Name[sr]=RPM Статистике -Name[sr@Latn]=RPM Statistike -Name[sv]=RPM-statistik -Name[ta]=RPM புள்ளி விவரம் -Name[tg]=Статистикаи RPM -Name[th]=สถิติของ RPM -Name[tr]=RPM İstatistikleri -Name[uk]=Дані RPM -Name[ven]=Mbalo dza RPM -Name[vi]=Thống kê RPM -Name[wa]=Sitatistikes RPM -Name[zh_CN]=RPM 统计 -Name[zh_HK]=RPM 統計 -Name[zh_TW]=RPM 統計 X-TDE-ServiceTypes=KFilePlugin X-TDE-Library=tdefile_rpm MimeType=application/x-rpm |