diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-12 16:15:10 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-12 16:15:10 +0200 |
commit | 0d3043b6308af148da06ac14c53defc4b1e7e138 (patch) | |
tree | 2e9364cb143e70ee062e443275b852b8e2061888 /karm | |
parent | 7c7363c3ca7fb9633d93cefde3cd54b144eee633 (diff) | |
download | tdepim-0d3043b6308af148da06ac14c53defc4b1e7e138.tar.gz tdepim-0d3043b6308af148da06ac14c53defc4b1e7e138.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 'karm')
-rw-r--r-- | karm/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | karm/CMakeLists.txt | 8 | ||||
-rw-r--r-- | karm/karm_part.desktop | 11 | ||||
-rw-r--r-- | karm/support/CMakeLists.txt | 5 | ||||
-rw-r--r-- | karm/support/karm.desktop | 68 |
5 files changed, 20 insertions, 78 deletions
diff --git a/karm/CMakeL10n.txt b/karm/CMakeL10n.txt index c309de362..9d6475583 100644 --- a/karm/CMakeL10n.txt +++ b/karm/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "karm" ) + +tde_l10n_create_template( + CATALOG "desktop_files/karm-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/karm/CMakeLists.txt b/karm/CMakeLists.txt index a8cdc5a1b..48286f441 100644 --- a/karm/CMakeLists.txt +++ b/karm/CMakeLists.txt @@ -38,7 +38,13 @@ link_directories( ##### other data ################################ tde_install_icons( karm ) -install( FILES karm_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + +tde_create_translated_desktop( + SOURCE karm_part.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR karm-desktops +) + install( FILES uninstall.desktop RENAME karm.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities ) install( FILES karmui.rc DESTINATION ${DATA_INSTALL_DIR}/karm ) install( FILES karmui.rc DESTINATION ${DATA_INSTALL_DIR}/karmpart ) diff --git a/karm/karm_part.desktop b/karm/karm_part.desktop index 03a13afd9..1295a0670 100644 --- a/karm/karm_part.desktop +++ b/karm/karm_part.desktop @@ -1,15 +1,6 @@ [Desktop Entry] Name=karmPart -Name[cs]=karm komponenta -Name[de]=KArm-Komponente -Name[et]=KArmi komponent -Name[fr]=Composant KArm -Name[is]=karm hluti -Name[nds]=karm-Komponent -Name[pt]=Componente KArm -Name[pt_BR]=Componente do KArm -Name[sv]=Karm-delprogram -Name[tr]=karmpart + MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart X-TDE-Library=libkarmpart diff --git a/karm/support/CMakeLists.txt b/karm/support/CMakeLists.txt index f0180549c..b5eab2a3c 100644 --- a/karm/support/CMakeLists.txt +++ b/karm/support/CMakeLists.txt @@ -9,4 +9,7 @@ # ################################################# -install( FILES karm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE karm.desktop + PO_DIR karm-desktops +) diff --git a/karm/support/karm.desktop b/karm/support/karm.desktop index c7f664944..20a764ad7 100644 --- a/karm/support/karm.desktop +++ b/karm/support/karm.desktop @@ -1,72 +1,8 @@ [Desktop Entry] Name=KArm -Name[af]=Karm -Name[hi]=के-आर्म -Name[sv]=Karm -Name[ta]=Kஅம் -Name[xh]=KAlrm -Name[zh_TW]=KArm 個人時程紀錄 + GenericName=Personal Time Tracker -GenericName[af]=Persoonlike Tyd Volger -GenericName[az]=Şəxsi Saat İzləyici -GenericName[bg]=Отчитане на времето -GenericName[br]=Roudenner amzer personel -GenericName[bs]=Osobni mjerač vremena -GenericName[ca]=Cronòmetre personal -GenericName[cs]=Osobní měřič času -GenericName[cy]=Dilynnydd Amser Personol -GenericName[da]=Personlig tidsoversigt -GenericName[de]=Persönliche Zeiterfassung -GenericName[el]=Προσωπικός καταγραφέας χρόνου -GenericName[eo]=Tempomezurilo por viaj aktivecoj -GenericName[es]=Cronómetro personal -GenericName[et]=Personaalne ajaarvestus -GenericName[eu]=Kronometro pertsonala -GenericName[fa]=ردیاب شخصی زمان -GenericName[fi]=Henkilökohtainen ajanhallintaohjelma -GenericName[fr]=Chronomètre individuel de tâches -GenericName[fy]=Persoanlike tiidregistraasje -GenericName[gl]=Xestor Persoal de Proxectos -GenericName[he]=מנהל זמן אישי -GenericName[hr]=Osobni mjerač vremena -GenericName[hu]=Időfelhasználás-figyelő -GenericName[id]=Tracker Waktu Pribadi -GenericName[is]=Fylgjast með í hvað tíminn fer -GenericName[it]=Segnatempo personale -GenericName[kk]=Дербес уақыт қадағалағышы -GenericName[km]=កម្មវិធីតាមដានពេលវេលាផ្ទាល់ខ្លួន -GenericName[ko]=일하는 시간을 잴 수 있습니다 -GenericName[lt]=Asmeninis laiko sekėjas -GenericName[lv]=Personālais Laika Atsekotājs -GenericName[mk]=Следење на личното време -GenericName[ms]=Penjejak Waktu Peribadi -GenericName[mt]=Żomm il-ħin personali -GenericName[nb]=Personlig tidsoversikt -GenericName[nds]=Persöönlich Tietlogbook -GenericName[ne]=व्यक्तिगत समय ट्र्याकर -GenericName[nl]=Tijdsregistratie -GenericName[nn]=Personleg tidsmålar -GenericName[nso]=Seswaranako sa Nako ya Botho -GenericName[pl]=Osobisty Czasomierz -GenericName[pt]=Gestor Pessoal de Tempo -GenericName[pt_BR]=Gerenciador pessoal de tempo -GenericName[ro]=Organizator timp personal -GenericName[ru]=Учёт рабочего времени -GenericName[sk]=Osobný merač času -GenericName[sl]=Osebni merilec časa -GenericName[sr]=Лични пратилац времена -GenericName[sr@Latn]=Lični pratilac vremena -GenericName[sv]=Personlig tidmätare -GenericName[ta]=தனிப்பயன் நேரம் பின்பற்றி -GenericName[tg]=Баҳисобгирии вақти корӣ -GenericName[tr]=Kişisel Saat İzleyici -GenericName[uk]=Персональний лічильник часу -GenericName[ven]=Tshisedzulusi tsha tshifhinga tsha vhune -GenericName[vi]=Trình đo thời gian -GenericName[xh]=Umfumani Wexesha Lobuqu -GenericName[zh_CN]=个人时间记录 -GenericName[zh_TW]=個人時程記錄 -GenericName[zu]=Umgcini Wesikhathi Esemfihlo + Exec=karm -caption "%c" %i %m Icon=karm Path= |