summaryrefslogtreecommitdiffstats
path: root/konsolekalendar
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-14 19:26:10 +0200
commit3e868d844c44aab62fd1324e52872afd1f706cd3 (patch)
treeb3c06badd9b8f004ae92024d53c8bf15b8849cf0 /konsolekalendar
parent9d2dbcebff2529124b4a522d3714b308548ee9ec (diff)
downloadtdepim-3e868d844c44aab62fd1324e52872afd1f706cd3.tar.gz
tdepim-3e868d844c44aab62fd1324e52872afd1f706cd3.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> (cherry picked from commit 0d3043b6308af148da06ac14c53defc4b1e7e138)
Diffstat (limited to 'konsolekalendar')
-rw-r--r--konsolekalendar/CMakeL10n.txt6
-rw-r--r--konsolekalendar/CMakeLists.txt2
-rw-r--r--konsolekalendar/konsolekalendar.desktop21
3 files changed, 8 insertions, 21 deletions
diff --git a/konsolekalendar/CMakeL10n.txt b/konsolekalendar/CMakeL10n.txt
index 0edda3726..da5b28282 100644
--- a/konsolekalendar/CMakeL10n.txt
+++ b/konsolekalendar/CMakeL10n.txt
@@ -1,3 +1,9 @@
##### create translation templates ##############
tde_l10n_create_template( "konsolekalendar" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/konsolekalendar.desktop/"
+ SOURCES konsolekalendar.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/konsolekalendar/CMakeLists.txt b/konsolekalendar/CMakeLists.txt
index 8738d401a..d2952ba11 100644
--- a/konsolekalendar/CMakeLists.txt
+++ b/konsolekalendar/CMakeLists.txt
@@ -32,7 +32,7 @@ link_directories(
##### other data ################################
-install( FILES konsolekalendar.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+tde_create_translated_desktop( konsolekalendar.desktop )
##### helper ####################################
diff --git a/konsolekalendar/konsolekalendar.desktop b/konsolekalendar/konsolekalendar.desktop
index 179fd81bb..a13e1ace1 100644
--- a/konsolekalendar/konsolekalendar.desktop
+++ b/konsolekalendar/konsolekalendar.desktop
@@ -1,25 +1,6 @@
[Desktop Entry]
Name=KonsoleKalendar
-Name[af]=Konsole Kalender
-Name[cs]=Konzolový kalendář
-Name[de]=Konsolen-Kalender
-Name[eo]=KonzolKalendaro
-Name[fy]=Konsole-aginda
-Name[hi]=कंसोल-कैलेंडर
-Name[hu]=Konsole-naptár
-Name[ja]=コンソールカレンダー
-Name[mk]=КонзоленКалендар
-Name[ms]=Kalendar Konsole
-Name[nb]=KonsoleKalender
-Name[nds]=Konsole-Kalenner
-Name[ne]=कन्सोल क्यालेन्डर
-Name[nl]=Konsole-agenda
-Name[nn]=KonsoleKalender
-Name[ro]=Calendar de consolă
-Name[sr]=Конзолни календар
-Name[sr@Latn]=Konzolni kalendar
-Name[ta]=கான்சோல் நாள்காட்டி
-Name[uk]=Календар для консолі
+
Exec=kdialog --sorry "konsolekalendar is a command-line only program. Please read the handbook at help:/konsolekalendar for more info."
Icon=konsolekalendar
Type=Application