summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-30 21:06:57 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-30 21:31:49 +0200
commit891c6cc5a45d1d05e3ac06e62a31ae65db4f125b (patch)
tree11485f3e1a68f5e75f86cb008c64a152c0578079 /src
parent807ddc214a6f312ec23837fc6e0f6f3c96b836a4 (diff)
downloadklamav-891c6cc5a45d1d05e3ac06e62a31ae65db4f125b.tar.gz
klamav-891c6cc5a45d1d05e3ac06e62a31ae65db4f125b.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt9
-rw-r--r--src/CMakeLists.txt14
-rw-r--r--src/klamav-dropdown.desktop1
-rw-r--r--src/klamav.desktop32
4 files changed, 16 insertions, 40 deletions
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;