summaryrefslogtreecommitdiffstats
path: root/knotes
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-12 16:15:10 +0200
committerSlávek Banko <[email protected]>2020-07-12 16:15:10 +0200
commit0d3043b6308af148da06ac14c53defc4b1e7e138 (patch)
tree2e9364cb143e70ee062e443275b852b8e2061888 /knotes
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 <[email protected]>
Diffstat (limited to 'knotes')
-rw-r--r--knotes/CMakeL10n.txt6
-rw-r--r--knotes/CMakeLists.txt20
-rw-r--r--knotes/knotes.desktop84
-rw-r--r--knotes/knotes_manager.desktop56
-rw-r--r--knotes/local.desktop54
5 files changed, 30 insertions, 190 deletions
diff --git a/knotes/CMakeL10n.txt b/knotes/CMakeL10n.txt
index 4cb63049a..984b1fee8 100644
--- a/knotes/CMakeL10n.txt
+++ b/knotes/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "knotes" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/knotes-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/knotes/CMakeLists.txt b/knotes/CMakeLists.txt
index 198d124e8..92708c36a 100644
--- a/knotes/CMakeLists.txt
+++ b/knotes/CMakeLists.txt
@@ -39,11 +39,25 @@ install( FILES KNotesIface.h KNotesAppIface.h DESTINATION ${INCLUDE_INSTALL_DIR}
##### other data ################################
-install( FILES knotes.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+tde_create_translated_desktop(
+ SOURCE knotes.desktop
+ PO_DIR knotes-desktops
+)
+
install( FILES knoteconfig.kcfg knotesglobalconfig.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES knotesappui.rc knotesui.rc DESTINATION ${DATA_INSTALL_DIR}/knotes )
-install( FILES local.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/knotes )
-install( FILES knotes_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources )
+
+tde_create_translated_desktop(
+ SOURCE local.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/knotes
+ PO_DIR knotes-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE knotes_manager.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tderesources
+ PO_DIR knotes-desktops
+)
##### knotes (executable) #######################
diff --git a/knotes/knotes.desktop b/knotes/knotes.desktop
index 22787783a..b94a11714 100644
--- a/knotes/knotes.desktop
+++ b/knotes/knotes.desktop
@@ -5,86 +5,10 @@ Icon=knotes
Terminal=false
Type=Application
-GenericName=Popup Notes
-GenericName[af]=Opspring Notas
-GenericName[ar]=الملاحظات المنبثقة
-GenericName[bg]=Лепящи се бележки
-GenericName[bs]=Popup bilješke
-GenericName[ca]=Notes emergents
-GenericName[cs]=Vyskakovací poznámky
-GenericName[cy]=Naid-nodiadau
-GenericName[da]=Popop-noter
-GenericName[de]=Haftnotizen
-GenericName[el]=Αναδυόμενες σημειώσεις
-GenericName[eo]=Glunotoj
-GenericName[es]=Notas emergentes
-GenericName[et]=Hüpikmärkmed
-GenericName[eu]=Laster-lehio oharrak
-GenericName[fa]=یادداشتهای بالاپر
-GenericName[fi]=Muistilaput
-GenericName[fr]=Éditeur de petites notes
-GenericName[fy]=Notysjes
-GenericName[gl]=Notas Emerxentes
-GenericName[he]=פתקים מוקפצים
-GenericName[hi]=पॉप-अप टीप
-GenericName[hr]=Skočne bilješke
-GenericName[hu]=Jegyzettömb
-GenericName[is]=Litlir gulir miðar
-GenericName[it]=Note a comparsa
-GenericName[ja]=ポップアップメモ
-GenericName[kk]=Қалқымалы жазбалар
-GenericName[km]=ចំណាំ​លេចឡើង
-GenericName[lt]=Pastabos lapeliuose
-GenericName[lv]=Izlecošās Piezīmes
-GenericName[mk]=Скок-белешки
-GenericName[ms]=Nota Popup
-GenericName[mt]=Noti żgħar
-GenericName[nb]=Sprettopp-notater
-GenericName[nds]=Opduk-Notizen
-GenericName[ne]=पपअप टिपोट
-GenericName[nl]=Notities
-GenericName[nn]=Sprettoppnotat
-GenericName[nso]=Ditshwao tsa Thlarogo
-GenericName[pl]=Żółte karteczki
-GenericName[pt]=Notas
-GenericName[pt_BR]=Notas instantâneas
-GenericName[ro]=Notiţe personale
-GenericName[ru]=Всплывающие заметки
-GenericName[sk]=Vyskakujúce poznámky
-GenericName[sl]=Prilepljajoče se notice
-GenericName[sr]=Искачуће напомене
-GenericName[sr@Latn]=Iskačuće napomene
-GenericName[sv]=Anteckningslappar
-GenericName[ta]=தோன்றும் குறிப்புகள்
-GenericName[tg]=Хабарҳои ошкоршаванда
-GenericName[th]=บันทึกช่วยจำแบบป๊อพอัพ
-GenericName[tr]=Seyyar Notlar
-GenericName[uk]=Вигулькні нотатки
-GenericName[vi]=Ghi chép Popup
-GenericName[xh]=Ivelisa iincwadana
-GenericName[zh_CN]=弹出式记事本
-GenericName[zh_TW]=彈出式筆記本
-GenericName[zu]=Amapheshana Abhaliwe Aziphumelayo
-
-Name=KNotes
-Name[af]=Knotas
-Name[be]=K Нататкі
-Name[cy]=KNodiadau
-Name[eo]=Notoj
-Name[hi]=के-नोट्स
-Name[hr]=Bilješka
-Name[lv]=KPiezīmes
-Name[mk]=КБелешки
-Name[ne]=केडीई टिपोट
-Name[nso]=KDitshwao
-Name[pl]=Notatki
-Name[ro]=Notiţe
-Name[sl]=KNotice
-Name[sv]=Knotes
-Name[ta]=கேகுறிப்புகள்
-Name[th]=บันทึกช่วยจำ
-Name[zh_TW]=KNotes 便利貼
-
X-TDE-StartupNotify=true
X-DCOP-ServiceType=Unique
Categories=Qt;TDE;Utility;X-TDE-Utilities-Desktop;
+
+Name=KNotes
+
+GenericName=Popup Notes
diff --git a/knotes/knotes_manager.desktop b/knotes/knotes_manager.desktop
index bf962a937..c6e80eb42 100644
--- a/knotes/knotes_manager.desktop
+++ b/knotes/knotes_manager.desktop
@@ -1,60 +1,6 @@
[Desktop Entry]
Name=Notes
-Name[af]=Notas
-Name[ar]=الملاحظات
-Name[be]=Нататкі
-Name[bg]=Бележки
-Name[br]=Notennoù
-Name[bs]=Bilješke
-Name[cs]=Poznámky
-Name[cy]=Nodiadau
-Name[da]=Noter
-Name[de]=Notizen
-Name[el]=Σημειώσεις
-Name[eo]=Notoj
-Name[es]=Notas
-Name[et]=Märkmed
-Name[eu]=Oharrak
-Name[fa]=یادداشتها
-Name[fi]=Muistio
-Name[fy]=Notysjes
-Name[ga]=Nótaí
-Name[gl]=Notas
-Name[he]=פתקים
-Name[hi]=टीप
-Name[hu]=Feljegyzések
-Name[is]=Minnismiðar
-Name[it]=Note
-Name[ja]=メモ
-Name[kk]=Жазбалар
-Name[km]=ចំណាំ
-Name[lt]=Užrašai
-Name[mk]=Белешки
-Name[ms]=Nota
-Name[nds]=Notizen
-Name[ne]=टिपोट
-Name[nl]=Notities
-Name[nn]=Notat
-Name[pl]=Notatki
-Name[pt]=Notas
-Name[pt_BR]=Notas
-Name[ro]=Notiţe
-Name[ru]=Заметки
-Name[se]=Nohtat
-Name[sk]=Poznámky
-Name[sl]=Notice
-Name[sr]=Белешке
-Name[sr@Latn]=Beleške
-Name[sv]=Anteckningar
-Name[ta]=குறிப்புகள்
-Name[tg]=Ахборот
-Name[th]=บันทึกช่วยจำ
-Name[tr]=Notlar
-Name[uk]=Примітки
-Name[uz]=Ёзма хотира
-Name[zh_CN]=便笺
-Name[zh_TW]=備忘錄
+
Type=Service
X-TDE-ServiceTypes=TDEResources/Manager
-
X-TDE-ResourceFamily=notes
diff --git a/knotes/local.desktop b/knotes/local.desktop
index d0512ca06..f3b2743ae 100644
--- a/knotes/local.desktop
+++ b/knotes/local.desktop
@@ -1,58 +1,8 @@
[Desktop Entry]
Name=Notes in Local File
-Name[af]=Notas in plaaslike lêer
-Name[ar]=الملاحظات في الملف المحلّي
-Name[be]=Нататкі ў лякальным файле
-Name[bg]=Бележки в локален файл
-Name[br]=Notennoù e rstr lec'hel
-Name[bs]=Bilješke u lokalnoj datoteci
-Name[ca]=Notes en fitxer local
-Name[cs]=Poznámky v lokálním souboru
-Name[da]=Noter i lokal fil
-Name[de]=Notizen in lokaler Datei
-Name[el]=Σημειώσεις σε τοπικό αρχείο
-Name[eo]=Notoj en loka dosiero
-Name[es]=Avisos sobre el archivo local
-Name[et]=Märkmed kohalikus failis
-Name[eu]=Oharrak fitxategi lokalean
-Name[fa]=یادداشتها در پروندۀ محلی
-Name[fi]=Muistiot paikallisessa tiedostossa
-Name[fr]=Notes dans un fichier local
-Name[fy]=Notysjes yn lokale triem
-Name[ga]=Nótaí i gComhad Logánta
-Name[gl]=Notas en Ficheiro Local
-Name[he]=פתקים בקובץ מקומי
-Name[hu]=Helyi fájlban tárolt feljegyzések
-Name[is]=Minnismiðar í staðbundinni skrá
-Name[it]=Note in file locale
-Name[ja]=ローカルファイルのメモ
-Name[kk]=Жергілікті файлдағы жазбалар
-Name[km]=ចំណាំ​ក្នុង​ឯកសារ​មូលដ្ឋាន
-Name[lt]=Užrašai vietinėje byloje
-Name[mk]=Белешки во локална датотека
-Name[ms]=Nota dalam fail setempat
-Name[nb]=Notater i lokal fil
-Name[nds]=Notizen in lokaal Datei
-Name[ne]=स्थानीय फाइलका टिपोट
-Name[nl]=Notities in lokaal bestand
-Name[nn]=Notat i lokal fil
-Name[pl]=Notatki w pliku lokalnym
-Name[pt]=Notas num Ficheiro Local
-Name[pt_BR]=Notas em Arquivo Local
-Name[ru]=Заметки в локальном файле
-Name[sk]=Poznámky v lokálnom súbore
-Name[sl]=Notice v krajevni datoteki
-Name[sr]=Забелешке у локалном фајлу
-Name[sr@Latn]=Zabeleške u lokalnom fajlu
-Name[sv]=Anteckningar i lokal fil
-Name[ta]=உள் கோப்பில் உள்ள குறிப்புகள்
-Name[tg]=Хабарҳо дар файли локалӣ
-Name[tr]=Yerel Dosyadaki Notlar
-Name[uk]=Нотатки у локальному файлі
-Name[zh_CN]=本地文件中的便笺
-Name[zh_TW]=本地檔備忘錄
-X-TDE-Library=knotes_local
+
Type=Service
+X-TDE-Library=knotes_local
X-TDE-ServiceTypes=TDEResources/Plugin
X-TDE-ResourceFamily=notes
X-TDE-ResourceType=file