From 976023e1c3762587023803e86a8c184da3e67915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 5 Apr 2020 15:45:12 +0200 Subject: Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/CMakeL10n.txt | 5 +++++ src/CMakeLists.txt | 10 ++++++---- src/kbibtex.desktop | 1 - src/kbibtex_part.desktop | 8 -------- 4 files changed, 11 insertions(+), 13 deletions(-) (limited to 'src') 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 -- cgit v1.2.3