summaryrefslogtreecommitdiffstats
path: root/libkcal
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-12 16:15:10 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-12 16:15:10 +0200
commit0d3043b6308af148da06ac14c53defc4b1e7e138 (patch)
tree2e9364cb143e70ee062e443275b852b8e2061888 /libkcal
parent7c7363c3ca7fb9633d93cefde3cd54b144eee633 (diff)
downloadtdepim-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 'libkcal')
-rw-r--r--libkcal/CMakeL10n.txt6
-rw-r--r--libkcal/CMakeLists.txt13
-rw-r--r--libkcal/kcal_manager.desktop59
-rw-r--r--libkcal/local.desktop53
-rw-r--r--libkcal/localdir.desktop53
5 files changed, 20 insertions, 164 deletions
diff --git a/libkcal/CMakeL10n.txt b/libkcal/CMakeL10n.txt
index 0534db65e..bc378c829 100644
--- a/libkcal/CMakeL10n.txt
+++ b/libkcal/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "libkcal" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/libkcal-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/libkcal/CMakeLists.txt b/libkcal/CMakeLists.txt
index dbded2cb4..a232a8b76 100644
--- a/libkcal/CMakeLists.txt
+++ b/libkcal/CMakeLists.txt
@@ -55,8 +55,17 @@ install( FILES
##### other data ################################
-install( FILES local.desktop localdir.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/kcal )
-install( FILES kcal_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources )
+tde_create_translated_desktop(
+ SOURCE local.desktop localdir.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/kcal
+ PO_DIR libkcal-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE kcal_manager.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tderesources
+ PO_DIR libkcal-desktops
+)
##### kcal_local (module) #######################
diff --git a/libkcal/kcal_manager.desktop b/libkcal/kcal_manager.desktop
index 40429a46f..356b2b6cd 100644
--- a/libkcal/kcal_manager.desktop
+++ b/libkcal/kcal_manager.desktop
@@ -1,63 +1,6 @@
[Desktop Entry]
Name=Calendar
-Name[af]=Kalender
-Name[ar]=التقويم
-Name[be]=Каляндар
-Name[bg]=Календар
-Name[br]=Deiziadur
-Name[bs]=Kalendar
-Name[ca]=Calendari
-Name[cs]=Kalendář
-Name[cy]=Calendr
-Name[da]=Kalender
-Name[de]=Kalender
-Name[el]=Ημερολόγιο
-Name[eo]=Kalendaro
-Name[es]=Calendario
-Name[et]=Kalender
-Name[eu]=Egutegia
-Name[fa]=تقویم
-Name[fi]=Kalenteri
-Name[fr]=Calendrier
-Name[fy]=Aginda
-Name[ga]=Féilire
-Name[gl]=Calendario
-Name[he]=לוח שנה
-Name[hi]=कैलेन्डर
-Name[hu]=Naptár
-Name[is]=Dagatal
-Name[it]=Calendario
-Name[ja]=カレンダー
-Name[kk]=Күнтізбе
-Name[km]=ប្រតិទិន
-Name[lt]=Kalendorius
-Name[mk]=Календар
-Name[ms]=Kalendar
-Name[nb]=Kalender
-Name[nds]=Kalenner
-Name[ne]=क्यालेन्डर
-Name[nl]=Agenda
-Name[nn]=Kalender
-Name[pa]=ਕੈਲੰਡਰ
-Name[pl]=Kalendarz
-Name[pt]=Calendário
-Name[pt_BR]=Calendário
-Name[ru]=Календарь
-Name[se]=Kaleandar
-Name[sk]=Kalendár
-Name[sl]=Koledar
-Name[sr]=Календар
-Name[sr@Latn]=Kalendar
-Name[sv]=Kalender
-Name[ta]=நாள்காட்டி
-Name[tg]=Тақвим
-Name[th]=บันทึกประจำวัน
-Name[tr]=Takvim
-Name[uk]=Календар
-Name[uz]=Календар
-Name[zh_CN]=日历
-Name[zh_TW]=行事曆
+
Type=Service
X-TDE-ServiceTypes=TDEResources/Manager
-
X-TDE-ResourceFamily=calendar
diff --git a/libkcal/local.desktop b/libkcal/local.desktop
index d52ecd5d1..870e4ccc3 100644
--- a/libkcal/local.desktop
+++ b/libkcal/local.desktop
@@ -1,57 +1,6 @@
[Desktop Entry]
Name=Calendar in Local File
-Name[af]=Kalender in plaaslike lêer
-Name[be]=Каляндар у лякальным файле
-Name[bg]=Календар в локален файл
-Name[br]=Deiziadur e restr lec'hel
-Name[bs]=Kalendar u lokalnoj datoteci
-Name[ca]=Calendari a un fitxer local
-Name[cs]=Kalendář v lokálním souboru
-Name[cy]=Calendr mewn Ffeil Lleol
-Name[da]=Kalender i lokal fil
-Name[de]=Kalender in lokaler Datei
-Name[el]=Ημερολόγιο σε τοπικό αρχείο
-Name[eo]=Kalendaro en loka dosiero
-Name[es]=Calendario en archivo local
-Name[et]=Kalender kohalikus failis
-Name[eu]=Egutegia fitxategi lokalean
-Name[fa]=تقویم در پروندۀ محلی
-Name[fi]=Kalenteri paikallisessa tiedostossa
-Name[fr]=Calendrier dans un fichier local
-Name[fy]=Aginda yn lokaal triem
-Name[ga]=Féilire i gComhad Logánta
-Name[gl]=Calendario nun Ficheiro Local
-Name[hi]=स्थानीय फ़ाइल में कैलेन्डर
-Name[hu]=Helyi fájlban tárolt naptár
-Name[is]=Dagatal í staðbundinni skrá
-Name[it]=Calendario in file locale
-Name[ja]=ローカルファイルのカレンダー
-Name[kk]=Жергілікті файлдағы күнтізбе
-Name[km]=ប្រតិទិន​នៅ​ក្នុង​ឯកសារ​មូលដ្ឋាន
-Name[lt]=Kalendorius vietinėje byloje
-Name[mk]=Календар во локална датотека
-Name[ms]=Kalendar dalam Fail Setempat
-Name[nb]=Kalender i lokal fil
-Name[nds]=Kalenner as lokaal Datei
-Name[ne]=स्थानीय फाइलको क्यालेन्डर
-Name[nl]=Agenda in lokaal bestand
-Name[nn]=Kalender i lokal fil
-Name[pl]=Kalendarz w pliku lokalnym
-Name[pt]=Calendário num Ficheiro Local
-Name[pt_BR]=Calendário em Arquivo Local
-Name[ro]=Calendar în fişier local
-Name[ru]=Календарь в локальном файле
-Name[sk]=Kalendár v lokálnom súbore
-Name[sl]=Koledar v krajevni datoteki
-Name[sr]=Календар у локалном фајлу
-Name[sr@Latn]=Kalendar u lokalnom fajlu
-Name[sv]=Kalender i lokal fil
-Name[ta]=பொது அடைவில் உள்ள நாள்காட்டி
-Name[tg]=Тақвимот дар файли локалӣ
-Name[tr]=Yerel Dosyadaki Takvim
-Name[uk]=Календар у локальному файлі
-Name[zh_CN]=本地文件中的日历
-Name[zh_TW]=本地檔案中的行事曆
+
X-TDE-Library=kcal_local
Type=Service
X-TDE-ServiceTypes=TDEResources/Plugin
diff --git a/libkcal/localdir.desktop b/libkcal/localdir.desktop
index 37e890533..df2a76322 100644
--- a/libkcal/localdir.desktop
+++ b/libkcal/localdir.desktop
@@ -1,57 +1,6 @@
[Desktop Entry]
Name=Calendar in Local Directory
-Name[af]=Kalender in plaaslike gids
-Name[be]=Каляндар у лякальным каталёгу
-Name[bg]=Календар в локална директория
-Name[br]=Deiziadur en ur restr lec'hel
-Name[bs]=Kalendar u lokalnom direktoriju
-Name[ca]=Calendari a un directori local
-Name[cs]=Kalendář v lokální složce
-Name[cy]=Calendr mewn Cyfeiriadur Lleol
-Name[da]=Kalender i lokal mappe
-Name[de]=Kalender in lokalem Ordner
-Name[el]=Ημερολόγιο σε τοπικό κατάλογο
-Name[eo]=Kalendaro en loka dosierujo
-Name[es]=Calendario en el directorio local
-Name[et]=Kalender kohalikus kataloogis
-Name[eu]=Egutegia direktorio lokalean
-Name[fa]=تقویم در فهرست راهنمای محلی
-Name[fi]=Kalenteri paikallisessa kansiossa
-Name[fr]=Calendrier dans un dossier local
-Name[fy]=Aginda yn lokale triemtafel
-Name[ga]=Féilire i gComhadlann Logánta
-Name[gl]=Calendario nun Cartafol Local
-Name[hi]=स्थानीय डिरेक्ट्री में कैलेन्डर
-Name[hu]=Helyi könyvtárban tárolt naptár
-Name[is]=Dagatal í staðbundinni möppu
-Name[it]=Calendario nella directory locale
-Name[ja]=ローカルディレクトリのカレンダー
-Name[kk]=Жергілікті каталогтағы күнтізбе
-Name[km]=ប្រតិទិន​នៅ​ក្នុង​ថត​មូលដ្ឋាន
-Name[lt]=Kalendorius vietiniame aplanke
-Name[mk]=Календар во локална папка
-Name[ms]=Kalendar dalam Direktori Setempat
-Name[nb]=Kalender i lokal katalog
-Name[nds]=Kalenner in lokaal Orner
-Name[ne]=स्थानीय डाइरेक्टरीको क्यालेन्डर
-Name[nl]=Agenda in lokale map
-Name[nn]=Kalender i lokal mappe
-Name[pl]=Kalendarz w katalogu lokalnym
-Name[pt]=Calendário numa Directoria Local
-Name[pt_BR]=Calendário em Diretório Local
-Name[ro]=Calendar în director local
-Name[ru]=Календарь в локальной папке
-Name[sk]=Kalendár v lokálnom priečinku
-Name[sl]=Koledar v krajevnem imeniku
-Name[sr]=Календар у локалном директоријуму
-Name[sr@Latn]=Kalendar u lokalnom direktorijumu
-Name[sv]=Kalender i lokal katalog
-Name[ta]=பொது அடைவில் உள்ள நாள்காட்டி
-Name[tg]=Тақвимот дар каталоги локалӣ
-Name[tr]=Yerel Dizindeki Takvim
-Name[uk]=Календар у локальному каталозі
-Name[zh_CN]=本地目录中的日历
-Name[zh_TW]=本地目錄中的行事曆
+
X-TDE-Library=kcal_localdir
Type=Service
X-TDE-ServiceTypes=TDEResources/Plugin