summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-05 15:45:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-05 15:45:12 +0200
commit976023e1c3762587023803e86a8c184da3e67915 (patch)
tree501906ec89f6bacc6e876da9a18f26909c34ccc8 /src
parent9cc21b83f7b637450c4fc40d033ccad7896b07f1 (diff)
downloadkbibtex-976023e1c3762587023803e86a8c184da3e67915.tar.gz
kbibtex-976023e1c3762587023803e86a8c184da3e67915.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.txt10
-rw-r--r--src/kbibtex.desktop1
-rw-r--r--src/kbibtex_part.desktop8
4 files changed, 11 insertions, 13 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index f3d09d6..e783bab 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kbibtex" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kbibtex-desktops"
+ SOURCES *.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bf18877..d4cc44d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -113,14 +113,16 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES kbibtex_part.desktop
+tde_create_translated_desktop(
+ SOURCE kbibtex_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
-install(
- FILES ${PROJECT_NAME}.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
install(
diff --git a/src/kbibtex.desktop b/src/kbibtex.desktop
index 5039a0f..6e0d27f 100644
--- a/src/kbibtex.desktop
+++ b/src/kbibtex.desktop
@@ -6,7 +6,6 @@ Icon=kbibtex
Type=Application
X-DocPath=kbibtex/index.html
Comment=A BibTeX editor for TDE
-Comment[de]=Ein BibTeX-Editor für TDE
MimeType=text/x-bibtex;
Categories=Qt;TDE;Office;
X-TDE-HasTempFileOption=true
diff --git a/src/kbibtex_part.desktop b/src/kbibtex_part.desktop
index bb84803..0507dcb 100644
--- a/src/kbibtex_part.desktop
+++ b/src/kbibtex_part.desktop
@@ -1,14 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
Name=KBibTeXPart
-Name[et]=KBibTeX komponent
-Name[hi]=KBibTeXपार्ट
-Name[sv]=KBibTeX-del
-Name[ta]=KBibTeXபாகம்
-Name[xx]=xxKBibTeXPartxx
-Name[pl]=Moduł KBibTeX
-Name[pt_BR]=Parte do KBibTeX
-Name[de]=Einbettungsfähige Komponente von KBibTeX
MimeType=text/x-bibtex;application/x-endnote-library;
X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
X-TDE-Library=libkbibtexpart