summaryrefslogtreecommitdiffstats
path: root/kitchensync/src
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 /kitchensync/src
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 'kitchensync/src')
-rw-r--r--kitchensync/src/CMakeL10n.txt6
-rw-r--r--kitchensync/src/CMakeLists.txt2
-rw-r--r--kitchensync/src/kitchensync.desktop48
3 files changed, 9 insertions, 47 deletions
diff --git a/kitchensync/src/CMakeL10n.txt b/kitchensync/src/CMakeL10n.txt
index 9fe677357..9520b5e6a 100644
--- a/kitchensync/src/CMakeL10n.txt
+++ b/kitchensync/src/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "kitchensync" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kitchensync.desktop/"
+ SOURCES kitchensync.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/kitchensync/src/CMakeLists.txt b/kitchensync/src/CMakeLists.txt
index 6820e250b..18e76a0a7 100644
--- a/kitchensync/src/CMakeLists.txt
+++ b/kitchensync/src/CMakeLists.txt
@@ -34,7 +34,7 @@ link_directories(
##### other data ################################
-install( FILES kitchensync.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+tde_create_translated_desktop( kitchensync.desktop )
install( FILES kitchensyncui.rc kitchensync_part.rc DESTINATION ${DATA_INSTALL_DIR}/kitchensync )
diff --git a/kitchensync/src/kitchensync.desktop b/kitchensync/src/kitchensync.desktop
index 4a325334d..6b5bdff7c 100644
--- a/kitchensync/src/kitchensync.desktop
+++ b/kitchensync/src/kitchensync.desktop
@@ -1,52 +1,8 @@
[Desktop Entry]
Name=KitchenSync
-Name[pt]=KitchenSyncFilter
-Name[sv]=Kitchensync
+
GenericName=Synchronization
-GenericName[af]=Sinkronisasie
-GenericName[bg]=Синхронизация
-GenericName[ca]=Sincronització
-GenericName[cs]=Synchronizace
-GenericName[cy]=Cydamseriad
-GenericName[da]=Synkronisering
-GenericName[de]=Abgleich
-GenericName[el]=Συγχρονισμός
-GenericName[eo]=Sinkronigo
-GenericName[es]=Sincronización
-GenericName[et]=Sünkroniseerimine
-GenericName[eu]=Sinkronizazioa
-GenericName[fa]=همگامی
-GenericName[fi]=Synkronointi
-GenericName[fr]=Synchronisation
-GenericName[fy]=Syngronisaasje
-GenericName[ga]=Sioncrónú
-GenericName[gl]=Sincronización
-GenericName[he]=סינכרון
-GenericName[hu]=Szinkronizáció
-GenericName[is]=Samstilling
-GenericName[it]=Sincronizzazione
-GenericName[ja]=同期
-GenericName[kk]=Қадамдастыру
-GenericName[km]=ការ​​ធ្វើ​សមកាលកម្ម
-GenericName[lt]=Sinchronizacija
-GenericName[ms]=Segerakan
-GenericName[nb]=Synkronisering
-GenericName[nds]=Synkroniseren
-GenericName[nl]=Synchronisatie
-GenericName[nn]=Synkronisering
-GenericName[pl]=Synchronizacja
-GenericName[pt]=Sincronização
-GenericName[pt_BR]=Gerenciador de Sincronização
-GenericName[ru]=Синхронизация
-GenericName[sk]=Synchronizácia
-GenericName[sl]=Usklajevanje
-GenericName[sr]=Синхронизација
-GenericName[sr@Latn]=Sinhronizacija
-GenericName[sv]=Synkronisering
-GenericName[ta]=கூட்டிணைப்பு
-GenericName[tr]=Senkronizasyon
-GenericName[uk]=Синхронізація
-GenericName[zh_CN]=同步
+
Exec=kitchensync
Icon=kitchensync
Type=Application