diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
commit | 4b7a4e17362206fd2eade35ba947a850263b0ea1 (patch) | |
tree | 3f3e619da9fd3c0f76ef95e44c73898a278e059b /mimetypes/text/CMakeLists.txt | |
parent | 31fa399a0aa455f3f52251f977233d57e92de28c (diff) | |
download | tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.tar.gz tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.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 'mimetypes/text/CMakeLists.txt')
-rw-r--r-- | mimetypes/text/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mimetypes/text/CMakeLists.txt b/mimetypes/text/CMakeLists.txt index 2c8596470..d76b114eb 100644 --- a/mimetypes/text/CMakeLists.txt +++ b/mimetypes/text/CMakeLists.txt @@ -11,7 +11,7 @@ ##### other data ################################ -install( FILES +foreach( _mimetype x-c++src.desktop x-c++hdr.desktop x-csrc.desktop x-java.desktop x-makefile.desktop x-moc.desktop x-pascal.desktop x-objchdr.desktop x-tcl.desktop x-tex.desktop html.desktop plain.desktop enriched.desktop x-chdr.desktop @@ -20,6 +20,12 @@ install( FILES x-bibtex.desktop rdf.desktop rss.desktop calendar.desktop x-adasrc.desktop x-perl.desktop x-csv.desktop x-latex.desktop x-xslfo.desktop x-xslt.desktop vnd.wap.wml.desktop x-katefilelist.desktop docbook.desktop x-mswinurl.desktop x-hex.desktop vnd.abc.desktop javascript.desktop x-python.desktop - DESTINATION ${MIME_INSTALL_DIR}/text ) +) + tde_create_translated_desktop( + SOURCE ${_mimetype} + DESTINATION ${MIME_INSTALL_DIR}/text + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/mimetypes + ) +endforeach() install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/text RENAME x-lyx.desktop ) |