Reworked desktop files translation.

The translations themselves are now stored separately from the .desktop
files and the eventsrc.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 4 years ago
parent 807ddc214a
commit 891c6cc5a4
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -3,11 +3,12 @@
tde_l10n_create_template( "messages/klamav" )
tde_l10n_create_template(
CATALOG "desktop_files/klamav.desktop/"
SOURCES klamav.desktop
CATALOG "desktop_files/"
SOURCES *.desktop
)
tde_l10n_create_template(
CATALOG "desktop_files/klamav-dropdown.desktop/"
SOURCES klamav-dropdown.desktop
CATALOG "desktop_files/klamav-eventsrc/"
SOURCES eventsrc
DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)

@ -55,19 +55,25 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
DESTINATION ${BIN_INSTALL_DIR}
)
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
##### create translated desktop files
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
SOURCE klamav.desktop
PO_DIR desktop_files/
)
##### install servicemenu
tde_create_translated_desktop(
SOURCE klamav-dropdown.desktop
PO_DIR desktop_files/
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
)
tde_create_translated_desktop(
SOURCE eventsrc
PO_DIR klamav-eventsrc/
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
##### install XML-GUI resource file
install(
FILES klamavui.rc

@ -11,5 +11,4 @@ Type=Application
[Desktop Action Scan]
Exec=ScanWithKlamAV %F
Name=Scan with KlamAV...
Name[pt_BR]=Analisar com anti-vírus
Icon=klamav

@ -5,37 +5,7 @@ Exec=klamav %i %m -caption "%c"
Icon=klamav
Type=Application
X-DocPath=klamav/klamav.html
Comment=An Anti-Virus Manager
Comment[cs]=An Anti-Virus Manager
Comment[da]=An Anti-Virus Manager
Comment[de]=An Anti-Virus Manager
Comment[el]=An Anti-Virus Manager
Comment[eo]=An Anti-Virus Manager
Comment[es]=An Anti-Virus Manager
Comment[et]=An Anti-Virus Manager
Comment[fi]=An Anti-Virus Manager
Comment[fr]=An Anti-Virus Manager
Comment[he]=An Anti-Virus Manager
Comment[hu]=An Anti-Virus Manager
Comment[is]=An Anti-Virus Manager
Comment[it]=An Anti-Virus Manager
Comment[ja]=An Anti-Virus Manager
Comment[ko]=An Anti-Virus Manager
Comment[lv]=An Anti-Virus Manager
Comment[nl]=An Anti-Virus Manager
Comment[no_NY]=An Anti-Virus Manager
Comment[pt]=An Anti-Virus Manager
Comment[pt_BR]=An Anti-Virus Manager
Comment[ro]=An Anti-Virus Manager
Comment[ru]=An Anti-Virus Manager
Comment[sk]=An Anti-Virus Manager
Comment[sl]=An Anti-Virus Manager
Comment[sr]=An Anti-Virus Manager
Comment[sv]=An Anti-Virus Manager
Comment[tr]=An Anti-Virus Manager
Comment[uk]=An Anti-Virus Manager
Comment[zh_CN.GB2312]=An Anti-Virus Manager
Comment=Anti-Virus Manager
Terminal=0
GenericName=Anti-Virus Manager
GenericName[fr]=Anti-Virus Manager
Categories=Qt;TDE;Application;System;

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-29 16:02+0200\n"
"POT-Creation-Date: 2021-01-30 20:24+0200\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"
@ -30,3 +30,14 @@ msgstr ""
#: klamav-dropdown.desktop:13
msgid "Scan with KlamAV..."
msgstr ""
#. Name
#: klamav.desktop:3
msgid "KlamAV"
msgstr ""
#. Comment
#. GenericName
#: klamav.desktop:8 klamav.desktop:10
msgid "Anti-Virus Manager"
msgstr ""

@ -0,0 +1,82 @@
# 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: 2021-01-30 20:48+0200\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"
#. Comment
#: eventsrc:3
msgid "KlamAV"
msgstr ""
#. Name
#: eventsrc:6
msgid "UpdatedDatabase"
msgstr ""
#. Comment
#: eventsrc:7
msgid "The Virus Database was updated"
msgstr ""
#. Name
#: eventsrc:13
msgid "DatabaseUpToDate"
msgstr ""
#. Comment
#: eventsrc:14
msgid "The Virus Database is up to date."
msgstr ""
#. Name
#: eventsrc:20
msgid "ScanCompleteNoVirus"
msgstr ""
#. Comment
#: eventsrc:21
msgid "Scan Complete - No Viruses Found!"
msgstr ""
#. Name
#: eventsrc:27
msgid "ScanCompleteNoVirusButErrors"
msgstr ""
#. Comment
#: eventsrc:28
msgid "Scan Complete - No Viruses Found But Some Errors Encountered!"
msgstr ""
#. Name
#: eventsrc:34
msgid "ScanAccessDenied"
msgstr ""
#. Comment
#: eventsrc:35
msgid "Scan - Access Denied!"
msgstr ""
#. Name
#: eventsrc:41
msgid "ClamAVOutDated"
msgstr ""
#. Comment
#: eventsrc:42
msgid "Your copy of ClamAV is out of date! Please Upgrade!"
msgstr ""

@ -1,32 +0,0 @@
# 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: 2021-01-29 16:02+0200\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"
#. Name
#: klamav.desktop:3
msgid "KlamAV"
msgstr ""
#. Comment
#: klamav.desktop:8
msgid "An Anti-Virus Manager"
msgstr ""
#. GenericName
#: klamav.desktop:39
msgid "Anti-Virus Manager"
msgstr ""
Loading…
Cancel
Save