summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-30 18:04:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-30 18:04:44 +0200
commitd0ec49a345e234154d775792ea4f5432def267bd (patch)
treecb06f3020ab5f28dd921f808ce197ef6a4948e7c /src
parentaaec9f3ebb5e7d7dc8d4d7512bbb2b7235b8a904 (diff)
downloadknowit-d0ec49a345e234154d775792ea4f5432def267bd.tar.gz
knowit-d0ec49a345e234154d775792ea4f5432def267bd.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 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/knowit.desktop3
3 files changed, 6 insertions, 7 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 198fa41..2623e71 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -4,3 +4,8 @@ tde_l10n_create_template(
CATALOG "messages/knowit"
SOURCES "." "tips"
)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/knowit.desktop/"
+ SOURCES knowit.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 816216c..2751a08 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -50,10 +50,7 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
install(
FILES x-${PROJECT_NAME}.desktop
diff --git a/src/knowit.desktop b/src/knowit.desktop
index 43e6544..41b1fc9 100644
--- a/src/knowit.desktop
+++ b/src/knowit.desktop
@@ -5,10 +5,7 @@ Exec=knowit -caption "%c" %i %m
MimeType=application/x-knowit
Icon=desktop
X-DocPath=knowit/index.html
-Comment=
-Comment[de]=
Terminal=0
Name=KnowIt
-Name[de]=KnowIt
Categories=Qt;TDE;Office
GenericName=Note Manager