summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-01-30 16:21:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-01-30 16:21:43 +0100
commit4a14670c0042e50e0efa30bf81f7a72e74c4a923 (patch)
treea33b561ffeb480a159fc03c2683cdb5a1f8ba979 /src
parent9ab5d687175d70af5145379608c34f9832043932 (diff)
downloadktechlab-4a14670c0042e50e0efa30bf81f7a72e74c4a923.tar.gz
ktechlab-4a14670c0042e50e0efa30bf81f7a72e74c4a923.zip
Copy translations to a new directory layout.
Use common rules for build and install translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt7
-rw-r--r--src/ktechlab.desktop11
-rw-r--r--src/x-circuit.desktop3
-rw-r--r--src/x-flowcode.desktop3
-rw-r--r--src/x-ktechlab.desktop3
-rw-r--r--src/x-microbe.desktop3
6 files changed, 21 insertions, 9 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 4e8b2c5..e17aa6f 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
-tde_l10n_create_template( "ktechlab" )
+tde_l10n_create_template( "messages/ktechlab" )
+
+tde_l10n_create_template(
+ CATALOG desktop_files/ktechlab-desktops
+ SOURCES *.desktop
+)
diff --git a/src/ktechlab.desktop b/src/ktechlab.desktop
index a84a39d..af52485 100644
--- a/src/ktechlab.desktop
+++ b/src/ktechlab.desktop
@@ -1,12 +1,15 @@
[Desktop Entry]
-Encoding=UTF-8
Name=KTechlab
+
GenericName=Microcontroller and Electronics Simulator
+
+Comment=An IDE for microcontrollers and electronics
+
+Encoding=UTF-8
+Type=Application
Exec=ktechlab %i %m -caption "%c"
Icon=ktechlab
-Type=Application
-X-DocPath=ktechlab/index.html
-Comment=An IDE for microcontrollers and electronics
Terminal=0
MimeType=application/x-ktechlab;application/x-flowcode;application/x-circuit;application/x-microbe;
Categories=Qt;TDE;Education;Science;Electronics
+X-DocPath=ktechlab/index.html
diff --git a/src/x-circuit.desktop b/src/x-circuit.desktop
index 33b96b4..0c7503b 100644
--- a/src/x-circuit.desktop
+++ b/src/x-circuit.desktop
@@ -1,7 +1,8 @@
[Desktop Entry]
+Comment=KTechlab Circuit
+
Encoding=UTF-8
Type=MimeType
MimeType=application/x-circuit
Icon=ktechlab_circuit
Patterns=*.circuit
-Comment=KTechlab Circuit
diff --git a/src/x-flowcode.desktop b/src/x-flowcode.desktop
index 7a56456..d0c096f 100644
--- a/src/x-flowcode.desktop
+++ b/src/x-flowcode.desktop
@@ -1,7 +1,8 @@
[Desktop Entry]
+Comment=KTechlab FlowCode
+
Encoding=UTF-8
Type=MimeType
MimeType=application/x-flowcode
Icon=ktechlab_flowcode
Patterns=*.flowcode
-Comment=KTechlab FlowCode
diff --git a/src/x-ktechlab.desktop b/src/x-ktechlab.desktop
index 2eac0b0..a5d8343 100644
--- a/src/x-ktechlab.desktop
+++ b/src/x-ktechlab.desktop
@@ -1,7 +1,8 @@
[Desktop Entry]
+Comment=KTechlab Project
+
Encoding=UTF-8
Type=MimeType
MimeType=application/x-ktechlab
Icon=ktechlab
Patterns=*.ktechlab
-Comment=KTechlab Project
diff --git a/src/x-microbe.desktop b/src/x-microbe.desktop
index be36ee4..1ced56e 100644
--- a/src/x-microbe.desktop
+++ b/src/x-microbe.desktop
@@ -1,7 +1,8 @@
[Desktop Entry]
+Comment=KTechlab Microbe
+
Encoding=UTF-8
Type=MimeType
MimeType=application/x-microbe
Icon=ktechlab_microbe
Patterns=*.microbe;*.basic
-Comment=KTechlab Microbe