summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-06 16:56:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-06 16:56:21 +0200
commit5e467df25214348e455b9c3e51147999abce87b6 (patch)
tree776e63f26f3ded8eba6ebad334bb9c465fdd91f3
parentdb80932da21299a3efe0725832b185a1f270b770 (diff)
downloadkkbswitch-5e467df25214348e455b9c3e51147999abce87b6.tar.gz
kkbswitch-5e467df25214348e455b9c3e51147999abce87b6.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 67c45107885d8a9f4294ebc170f9241441fa30e5)
-rw-r--r--kkbswitch/CMakeL10n.txt5
-rw-r--r--kkbswitch/CMakeLists.txt4
-rw-r--r--kkbswitch/kkbswitch.desktop2
-rw-r--r--translations/desktop_files/kkbswitch.desktop/kkbswitch.desktop.pot28
-rw-r--r--translations/desktop_files/kkbswitch.desktop/ru.po28
-rw-r--r--translations/desktop_files/kkbswitch.desktop/uk.po28
6 files changed, 91 insertions, 4 deletions
diff --git a/kkbswitch/CMakeL10n.txt b/kkbswitch/CMakeL10n.txt
index e5f2348..6b75aed 100644
--- a/kkbswitch/CMakeL10n.txt
+++ b/kkbswitch/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kkbswitch" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kkbswitch.desktop/"
+ SOURCES kkbswitch.desktop
+)
diff --git a/kkbswitch/CMakeLists.txt b/kkbswitch/CMakeLists.txt
index d6db9b5..41c8a98 100644
--- a/kkbswitch/CMakeLists.txt
+++ b/kkbswitch/CMakeLists.txt
@@ -45,8 +45,8 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
##### other data
-install(
- FILES ${PROJECT_NAME}.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}.desktop
DESTINATION ${AUTOSTART_INSTALL_DIR}
)
diff --git a/kkbswitch/kkbswitch.desktop b/kkbswitch/kkbswitch.desktop
index 7ab0616..c633efa 100644
--- a/kkbswitch/kkbswitch.desktop
+++ b/kkbswitch/kkbswitch.desktop
@@ -7,8 +7,6 @@ Terminal=false
Icon=kkbswitch
X-DocPath=kkbswitch/index.html
Comment=Keyboard Layout Indicator
-Comment[ru]=Индикатор раскладки клавиатуры
-Comment[uk]=Індикатор розкладки клавіатури
X-TDE-autostart-after=panel
X-TDE-autostart-condition=kkbswitchrc:Options:autostart:true
X-TDE-autostart-phase=2
diff --git a/translations/desktop_files/kkbswitch.desktop/kkbswitch.desktop.pot b/translations/desktop_files/kkbswitch.desktop/kkbswitch.desktop.pot
new file mode 100644
index 0000000..166f61e
--- /dev/null
+++ b/translations/desktop_files/kkbswitch.desktop/kkbswitch.desktop.pot
@@ -0,0 +1,28 @@
+# 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-04-06 16: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
+#: kkbswitch.desktop:3
+msgid "KKBSwitch"
+msgstr ""
+
+#. GenericName
+#. Comment
+#: kkbswitch.desktop:4 kkbswitch.desktop:9
+msgid "Keyboard Layout Indicator"
+msgstr ""
diff --git a/translations/desktop_files/kkbswitch.desktop/ru.po b/translations/desktop_files/kkbswitch.desktop/ru.po
new file mode 100644
index 0000000..12b4182
--- /dev/null
+++ b/translations/desktop_files/kkbswitch.desktop/ru.po
@@ -0,0 +1,28 @@
+# 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-04-06 16: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: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kkbswitch.desktop:3
+msgid "KKBSwitch"
+msgstr ""
+
+#. GenericName
+#. Comment
+#: kkbswitch.desktop:4 kkbswitch.desktop:9
+msgid "Keyboard Layout Indicator"
+msgstr "Индикатор раскладки клавиатуры"
diff --git a/translations/desktop_files/kkbswitch.desktop/uk.po b/translations/desktop_files/kkbswitch.desktop/uk.po
new file mode 100644
index 0000000..b15c8e0
--- /dev/null
+++ b/translations/desktop_files/kkbswitch.desktop/uk.po
@@ -0,0 +1,28 @@
+# 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-04-06 16: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: uk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kkbswitch.desktop:3
+msgid "KKBSwitch"
+msgstr ""
+
+#. GenericName
+#. Comment
+#: kkbswitch.desktop:4 kkbswitch.desktop:9
+msgid "Keyboard Layout Indicator"
+msgstr "Індикатор розкладки клавіатури"