summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-06 15:52:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-06 15:52:18 +0200
commit021da8a88c99635cc3e312c3456cac8aa914b56a (patch)
treed8a9ddaf4045c13148cf5c030b83b09cad9f4ec4
parenta20d41cb59cd72dbfa897560f0fda14c045c16f5 (diff)
downloadkdirstat-021da8a88c99635cc3e312c3456cac8aa914b56a.tar.gz
kdirstat-021da8a88c99635cc3e312c3456cac8aa914b56a.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 bfad2b405a3ef998765fc9638f995298e24d543d)
-rw-r--r--kdirstat/CMakeL10n.txt5
-rw-r--r--kdirstat/CMakeLists.txt5
-rw-r--r--kdirstat/kdirstat.desktop6
-rw-r--r--translations/desktop_files/kdirstat.desktop/de.po32
-rw-r--r--translations/desktop_files/kdirstat.desktop/hu.po32
-rw-r--r--translations/desktop_files/kdirstat.desktop/kdirstat.desktop.pot32
6 files changed, 102 insertions, 10 deletions
diff --git a/kdirstat/CMakeL10n.txt b/kdirstat/CMakeL10n.txt
index 272c593..4ab6a75 100644
--- a/kdirstat/CMakeL10n.txt
+++ b/kdirstat/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kdirstat" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kdirstat.desktop/"
+ SOURCES kdirstat.desktop
+)
diff --git a/kdirstat/CMakeLists.txt b/kdirstat/CMakeLists.txt
index c4f873a..5d1cf2f 100644
--- a/kdirstat/CMakeLists.txt
+++ b/kdirstat/CMakeLists.txt
@@ -66,7 +66,4 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
)
-install(
- FILES ${PROJECT_NAME}.desktop
- DESTINATION ${APPS_INSTALL_DIR}/Utilities
-)
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
diff --git a/kdirstat/kdirstat.desktop b/kdirstat/kdirstat.desktop
index 68d6743..9d98a8d 100644
--- a/kdirstat/kdirstat.desktop
+++ b/kdirstat/kdirstat.desktop
@@ -6,14 +6,8 @@ MiniIcon=kdirstat
X-DocPath=kdirstat/index.html
Encoding=UTF-8
Comment=Directory statistics and disk usage
-Comment[de]=Verzeichnisstatistik und Platzverbrauch
-Comment[hu]=Könyvtárstatisztikák és szabad hely
Terminal=0
Name=KDirStat
-Name[de]=KDirStat - Verzeichnisstatistik
-Name[hu]=KDirStat könyvtárstatisztika
GenericName=Directory Statistics
-GenericName[de]=Verzeichnisstatistik
-GenericName[hu]=könyvtárstatisztika
MimeType=inode/directory
Categories=Qt;TDE;Utility;X-TDE-Utilities-File;
diff --git a/translations/desktop_files/kdirstat.desktop/de.po b/translations/desktop_files/kdirstat.desktop/de.po
new file mode 100644
index 0000000..3f5f1cd
--- /dev/null
+++ b/translations/desktop_files/kdirstat.desktop/de.po
@@ -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-04-06 15:50+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"
+
+#. Comment
+#: kdirstat.desktop:8
+msgid "Directory statistics and disk usage"
+msgstr "Verzeichnisstatistik und Platzverbrauch"
+
+#. Name
+#: kdirstat.desktop:10
+msgid "KDirStat"
+msgstr "KDirStat - Verzeichnisstatistik"
+
+#. GenericName
+#: kdirstat.desktop:11
+msgid "Directory Statistics"
+msgstr "Verzeichnisstatistik"
diff --git a/translations/desktop_files/kdirstat.desktop/hu.po b/translations/desktop_files/kdirstat.desktop/hu.po
new file mode 100644
index 0000000..5549247
--- /dev/null
+++ b/translations/desktop_files/kdirstat.desktop/hu.po
@@ -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-04-06 15:50+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: hu\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Comment
+#: kdirstat.desktop:8
+msgid "Directory statistics and disk usage"
+msgstr "Könyvtárstatisztikák és szabad hely"
+
+#. Name
+#: kdirstat.desktop:10
+msgid "KDirStat"
+msgstr "KDirStat könyvtárstatisztika"
+
+#. GenericName
+#: kdirstat.desktop:11
+msgid "Directory Statistics"
+msgstr "könyvtárstatisztika"
diff --git a/translations/desktop_files/kdirstat.desktop/kdirstat.desktop.pot b/translations/desktop_files/kdirstat.desktop/kdirstat.desktop.pot
new file mode 100644
index 0000000..bc3b914
--- /dev/null
+++ b/translations/desktop_files/kdirstat.desktop/kdirstat.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-04-06 15:50+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"
+
+#. Comment
+#: kdirstat.desktop:8
+msgid "Directory statistics and disk usage"
+msgstr ""
+
+#. Name
+#: kdirstat.desktop:10
+msgid "KDirStat"
+msgstr ""
+
+#. GenericName
+#: kdirstat.desktop:11
+msgid "Directory Statistics"
+msgstr ""