summaryrefslogtreecommitdiffstats
path: root/part
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-02-06 18:30:48 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-02-06 18:30:48 +0100
commit1b87ee119571516b414c70e4afab9fd68750b1cb (patch)
tree0a05fc146a523fe8fbc5f047c207d8a209466398 /part
parentcb952883c9662328e7b1ac026589a116e687aa69 (diff)
downloadkxmleditor-1b87ee119571516b414c70e4afab9fd68750b1cb.tar.gz
kxmleditor-1b87ee119571516b414c70e4afab9fd68750b1cb.zip
Copy translations to a new directory layout.
Use common rules for build and install translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'part')
-rw-r--r--part/CMakeLists.txt4
-rw-r--r--part/kxmleditorpart.desktop8
2 files changed, 6 insertions, 6 deletions
diff --git a/part/CMakeLists.txt b/part/CMakeLists.txt
index 58e5261..f515ba8 100644
--- a/part/CMakeLists.txt
+++ b/part/CMakeLists.txt
@@ -68,7 +68,7 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES kxmleditorpart.desktop
+tde_create_translated_desktop(
+ SOURCE kxmleditorpart.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
diff --git a/part/kxmleditorpart.desktop b/part/kxmleditorpart.desktop
index f97f368..136f9e9 100644
--- a/part/kxmleditorpart.desktop
+++ b/part/kxmleditorpart.desktop
@@ -1,9 +1,9 @@
[Desktop Entry]
Name=KXMLEditorPart
-Name[de]=KXMLEditor-Objekt
-MimeType=text/xml;
-X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
-X-TDE-Library=libkxmleditorpart
+
Type=Service
Icon=kxmleditor
MiniIcon=kxmleditor
+MimeType=text/xml;
+X-TDE-Library=libkxmleditorpart
+X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart