diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-04-05 15:45:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-05 15:45:23 +0200 |
commit | 2b1c4c4703281b42b0bca3f41da917166c4b2911 (patch) | |
tree | d805ffce1da62340991a39327d7e47104883b3eb /src | |
parent | 020ca4fcf9c0b6064befc9b67a4e19ace4a2838e (diff) | |
download | kbibtex-2b1c4c4703281b42b0bca3f41da917166c4b2911.tar.gz kbibtex-2b1c4c4703281b42b0bca3f41da917166c4b2911.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 976023e1c3762587023803e86a8c184da3e67915)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 10 | ||||
-rw-r--r-- | src/kbibtex.desktop | 1 | ||||
-rw-r--r-- | src/kbibtex_part.desktop | 8 |
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 |