From 891c6cc5a45d1d05e3ac06e62a31ae65db4f125b Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 30 Jan 2021 21:06:57 +0200 Subject: [PATCH] Reworked desktop files translation. The translations themselves are now stored separately from the .desktop files and the eventsrc. Signed-off-by: Mavridis Philippe --- src/CMakeL10n.txt | 9 +- src/CMakeLists.txt | 14 +++- src/klamav-dropdown.desktop | 1 - src/klamav.desktop | 32 +------- ...dropdown.desktop.pot => desktop_files.pot} | 13 ++- .../klamav-eventsrc/klamav-eventsrc.pot | 82 +++++++++++++++++++ .../klamav.desktop/klamav.desktop.pot | 32 -------- 7 files changed, 110 insertions(+), 73 deletions(-) rename translations/desktop_files/{klamav-dropdown.desktop/klamav-dropdown.desktop.pot => desktop_files.pot} (77%) create mode 100644 translations/desktop_files/klamav-eventsrc/klamav-eventsrc.pot delete mode 100644 translations/desktop_files/klamav.desktop/klamav.desktop.pot diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 113076e..ac6c199 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -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" ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1e9206d..c6c8a91 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 diff --git a/src/klamav-dropdown.desktop b/src/klamav-dropdown.desktop index 870944a..314729a 100644 --- a/src/klamav-dropdown.desktop +++ b/src/klamav-dropdown.desktop @@ -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 diff --git a/src/klamav.desktop b/src/klamav.desktop index 5c32197..2844527 100644 --- a/src/klamav.desktop +++ b/src/klamav.desktop @@ -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; diff --git a/translations/desktop_files/klamav-dropdown.desktop/klamav-dropdown.desktop.pot b/translations/desktop_files/desktop_files.pot similarity index 77% rename from translations/desktop_files/klamav-dropdown.desktop/klamav-dropdown.desktop.pot rename to translations/desktop_files/desktop_files.pot index 34a5b72..66da359 100644 --- a/translations/desktop_files/klamav-dropdown.desktop/klamav-dropdown.desktop.pot +++ b/translations/desktop_files/desktop_files.pot @@ -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 \n" "Language-Team: LANGUAGE \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 "" diff --git a/translations/desktop_files/klamav-eventsrc/klamav-eventsrc.pot b/translations/desktop_files/klamav-eventsrc/klamav-eventsrc.pot new file mode 100644 index 0000000..0be85b5 --- /dev/null +++ b/translations/desktop_files/klamav-eventsrc/klamav-eventsrc.pot @@ -0,0 +1,82 @@ +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR , 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 \n" +"Language-Team: LANGUAGE \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 "" diff --git a/translations/desktop_files/klamav.desktop/klamav.desktop.pot b/translations/desktop_files/klamav.desktop/klamav.desktop.pot deleted file mode 100644 index 4d8c979..0000000 --- a/translations/desktop_files/klamav.desktop/klamav.desktop.pot +++ /dev/null @@ -1,32 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , 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 \n" -"Language-Team: LANGUAGE \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 ""