summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-29 18:56:32 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-03-29 18:56:51 +0200
commit2158c5b9e81fab0dd73bd943844e55f709ab8de7 (patch)
tree0d4ba49e458125c540b58d79444845346b4ac66e
parentcb0cfc7fe8e7118418ace40d3b68fffb0ff834c0 (diff)
downloadkcpuload-2158c5b9e81fab0dd73bd943844e55f709ab8de7.tar.gz
kcpuload-2158c5b9e81fab0dd73bd943844e55f709ab8de7.zip
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> (cherry picked from commit 782fedd71db076f5f27e4d61ecf8ec49890883ed)
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--translations/desktop_files/kcpuload.desktop/kcpuload.desktop.pot32
3 files changed, 38 insertions, 3 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 94931f2..023e43f 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kcpuload" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kcpuload.desktop/"
+ SOURCES kcpuload.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2166732..23e9fa5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -40,6 +40,4 @@ tde_install_icons( kcpuload )
##### other data
-install( FILES kcpuload.desktop
- DESTINATION ${APPS_INSTALL_DIR}/System
-)
+tde_create_translated_desktop( kcpuload.desktop )
diff --git a/translations/desktop_files/kcpuload.desktop/kcpuload.desktop.pot b/translations/desktop_files/kcpuload.desktop/kcpuload.desktop.pot
new file mode 100644
index 0000000..f612e9b
--- /dev/null
+++ b/translations/desktop_files/kcpuload.desktop/kcpuload.desktop.pot
@@ -0,0 +1,32 @@
+# 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-29 18:53+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
+#: kcpuload.desktop:8
+msgid "KCPULoad"
+msgstr ""
+
+#. GenericName
+#: kcpuload.desktop:9
+msgid "CPU Monitor"
+msgstr ""
+
+#. Comment
+#: kcpuload.desktop:10
+msgid "A small CPU usage meter for Kicker"
+msgstr ""