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>
pull/3/head
Slávek Banko 5 years ago
parent 131e5aaa5e
commit c5a99d8b5e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,3 +1,8 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "messages/tdeio-apt" ) tde_l10n_create_template( "messages/tdeio-apt" )
tde_l10n_create_template(
CATALOG "desktop_files/tdeio-apt-desktops"
SOURCES *.protocol *.desktop
)

@ -37,17 +37,23 @@ tde_add_kpart( tdeio_apt MODULE AUTOMOC
##### other data ##### other data
install( foreach( _protocol apt.protocol apt+http.protocol )
FILES apt.protocol apt+http.protocol tde_create_translated_desktop(
SOURCE ${_protocol}
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
) PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
endforeach( )
foreach( _desktop apt-file.desktop apt-files.desktop apt-search.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
endforeach( )
install( install(
FILES tdeio_apt.css tdedeb_logo.png FILES tdeio_apt.css tdedeb_logo.png
DESTINATION ${DATA_INSTALL_DIR}/tdeio_apt/ DESTINATION ${DATA_INSTALL_DIR}/tdeio_apt/
) )
install(
FILES apt-search.desktop apt-file.desktop apt-files.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders
)

@ -0,0 +1,37 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-24 16:31+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Description
#: apt+http.protocol:9 apt.protocol:9
msgid "A tdeioslave for using apt-cache functionalities inside konqueror"
msgstr ""
#. Name
#: apt-file.desktop:5
msgid "APT - Find File"
msgstr ""
#. Name
#: apt-files.desktop:5
msgid "APT - Filelist"
msgstr ""
#. Name
#: apt-search.desktop:5
msgid "APT - Search Package"
msgstr ""
Loading…
Cancel
Save