summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-07 19:01:27 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-07 19:01:27 +0200
commitc1e02c1baefcdb7c854912210e21258767e64bba (patch)
treee171cb88adccf597bfee07280557823a758d28c2
parent6b4ac8969c557ffadfd1b40f5079e980cdf1d462 (diff)
downloadtde-style-domino-c1e02c1baefcdb7c854912210e21258767e64bba.tar.gz
tde-style-domino-c1e02c1baefcdb7c854912210e21258767e64bba.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>
-rw-r--r--CMakeL10n.txt8
-rw-r--r--client/CMakeLists.txt4
-rw-r--r--domino/CMakeLists.txt8
-rw-r--r--domino/domino.themerc2
-rw-r--r--translations/desktop_files/de.po27
-rw-r--r--translations/desktop_files/tde-style-domino-desktops.pot28
6 files changed, 70 insertions, 7 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index 9730a56..201b90c 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -21,3 +21,11 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tde-style-domino-desktops"
+ SOURCES_DESKTOP
+ domino/domino.themerc
+ domino/Domino.kcsrc
+ client/domino.desktop
+)
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 138918b..c9f8372 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -36,7 +36,7 @@ tde_add_kpart( twin3_domino AUTOMOC
##### other data
-install(
- FILES domino.desktop
+tde_create_translated_desktop(
+ SOURCE domino.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
)
diff --git a/domino/CMakeLists.txt b/domino/CMakeLists.txt
index 09a1f91..0c2285f 100644
--- a/domino/CMakeLists.txt
+++ b/domino/CMakeLists.txt
@@ -50,12 +50,12 @@ tde_add_kpart( domino AUTOMOC
##### other data
-install(
- FILES domino.themerc
+tde_create_translated_desktop(
+ SOURCE domino.themerc
DESTINATION ${DATA_INSTALL_DIR}/tdestyle/themes
)
-install(
- FILES Domino.kcsrc
+tde_create_translated_desktop(
+ SOURCE Domino.kcsrc
DESTINATION ${DATA_INSTALL_DIR}/tdedisplay/color-schemes
)
diff --git a/domino/domino.themerc b/domino/domino.themerc
index 91093c5..562f298 100644
--- a/domino/domino.themerc
+++ b/domino/domino.themerc
@@ -1,7 +1,7 @@
[Misc]
Name=Domino
Comment=A style with customizable color gradients
-Comment[de]=Ein Stil mit anpassbaren Farbverläufen
ConfigPage=tdestyle_domino_config
+
[KDE]
WidgetStyle=Domino
diff --git a/translations/desktop_files/de.po b/translations/desktop_files/de.po
new file mode 100644
index 0000000..ef201ad
--- /dev/null
+++ b/translations/desktop_files/de.po
@@ -0,0 +1,27 @@
+# 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-07-07 18:56+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: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: domino/domino.themerc:2 domino/Domino.kcsrc:2 client/domino.desktop:4
+msgid "Domino"
+msgstr ""
+
+#. Comment
+#: domino/domino.themerc:3
+msgid "A style with customizable color gradients"
+msgstr "Ein Stil mit anpassbaren Farbverläufen"
diff --git a/translations/desktop_files/tde-style-domino-desktops.pot b/translations/desktop_files/tde-style-domino-desktops.pot
new file mode 100644
index 0000000..cabcb71
--- /dev/null
+++ b/translations/desktop_files/tde-style-domino-desktops.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-07-07 18:56+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
+#: domino/domino.themerc:2 domino/Domino.kcsrc:2
+#: client/domino.desktop:4
+msgid "Domino"
+msgstr ""
+
+#. Comment
+#: domino/domino.themerc:3
+msgid "A style with customizable color gradients"
+msgstr ""