summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-05 15:45:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-05 15:45:12 +0200
commit976023e1c3762587023803e86a8c184da3e67915 (patch)
tree501906ec89f6bacc6e876da9a18f26909c34ccc8
parent9cc21b83f7b637450c4fc40d033ccad7896b07f1 (diff)
downloadkbibtex-976023e1.tar.gz
kbibtex-976023e1.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--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt10
-rw-r--r--src/kbibtex.desktop1
-rw-r--r--src/kbibtex_part.desktop8
-rw-r--r--translations/desktop_files/de.po38
-rw-r--r--translations/desktop_files/et.po38
-rw-r--r--translations/desktop_files/hi.po38
-rw-r--r--translations/desktop_files/kbibtex-desktops.pot37
-rw-r--r--translations/desktop_files/pl.po38
-rw-r--r--translations/desktop_files/pt_BR.po38
-rw-r--r--translations/desktop_files/sv.po38
-rw-r--r--translations/desktop_files/ta.po38
12 files changed, 314 insertions, 13 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index f3d09d6..e783bab 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kbibtex" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kbibtex-desktops"
+ SOURCES *.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bf18877..d4cc44d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -113,14 +113,16 @@ install(
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
-install(
- FILES kbibtex_part.desktop
+tde_create_translated_desktop(
+ SOURCE kbibtex_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
-install(
- FILES ${PROJECT_NAME}.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
install(
diff --git a/src/kbibtex.desktop b/src/kbibtex.desktop
index 5039a0f..6e0d27f 100644
--- a/src/kbibtex.desktop
+++ b/src/kbibtex.desktop
@@ -6,7 +6,6 @@ Icon=kbibtex
Type=Application
X-DocPath=kbibtex/index.html
Comment=A BibTeX editor for TDE
-Comment[de]=Ein BibTeX-Editor für TDE
MimeType=text/x-bibtex;
Categories=Qt;TDE;Office;
X-TDE-HasTempFileOption=true
diff --git a/src/kbibtex_part.desktop b/src/kbibtex_part.desktop
index bb84803..0507dcb 100644
--- a/src/kbibtex_part.desktop
+++ b/src/kbibtex_part.desktop
@@ -1,14 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
Name=KBibTeXPart
-Name[et]=KBibTeX komponent
-Name[hi]=KBibTeXपार्ट
-Name[sv]=KBibTeX-del
-Name[ta]=KBibTeXபாகம்
-Name[xx]=xxKBibTeXPartxx
-Name[pl]=Moduł KBibTeX
-Name[pt_BR]=Parte do KBibTeX
-Name[de]=Einbettungsfähige Komponente von KBibTeX
MimeType=text/x-bibtex;application/x-endnote-library;
X-TDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
X-TDE-Library=libkbibtexpart
diff --git a/translations/desktop_files/de.po b/translations/desktop_files/de.po
new file mode 100644
index 0000000..4be6660
--- /dev/null
+++ b/translations/desktop_files/de.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "Einbettungsfähige Komponente von KBibTeX"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr "Ein BibTeX-Editor für TDE"
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "Einbettungsfähige Komponente von KBibTeX"
diff --git a/translations/desktop_files/et.po b/translations/desktop_files/et.po
new file mode 100644
index 0000000..ced16ec
--- /dev/null
+++ b/translations/desktop_files/et.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: et\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "KBibTeX komponent"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "KBibTeX komponent"
diff --git a/translations/desktop_files/hi.po b/translations/desktop_files/hi.po
new file mode 100644
index 0000000..0b9f065
--- /dev/null
+++ b/translations/desktop_files/hi.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: hi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "KBibTeXपार्ट"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "KBibTeXपार्ट"
diff --git a/translations/desktop_files/kbibtex-desktops.pot b/translations/desktop_files/kbibtex-desktops.pot
new file mode 100644
index 0000000..47ed0f2
--- /dev/null
+++ b/translations/desktop_files/kbibtex-desktops.pot
@@ -0,0 +1,37 @@
+# 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-05 15:39+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
+#: kbibtex.desktop:2
+msgid "KBibTeX"
+msgstr ""
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr ""
diff --git a/translations/desktop_files/pl.po b/translations/desktop_files/pl.po
new file mode 100644
index 0000000..6504d66
--- /dev/null
+++ b/translations/desktop_files/pl.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "Moduł KBibTeX"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "Moduł KBibTeX"
diff --git a/translations/desktop_files/pt_BR.po b/translations/desktop_files/pt_BR.po
new file mode 100644
index 0000000..7754a51
--- /dev/null
+++ b/translations/desktop_files/pt_BR.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "Parte do KBibTeX"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "Parte do KBibTeX"
diff --git a/translations/desktop_files/sv.po b/translations/desktop_files/sv.po
new file mode 100644
index 0000000..51ec9c7
--- /dev/null
+++ b/translations/desktop_files/sv.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: sv\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "KBibTeX-del"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "KBibTeX-del"
diff --git a/translations/desktop_files/ta.po b/translations/desktop_files/ta.po
new file mode 100644
index 0000000..46c279e
--- /dev/null
+++ b/translations/desktop_files/ta.po
@@ -0,0 +1,38 @@
+# 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-05 15:39+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: ta\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: kbibtex.desktop:2
+#, fuzzy
+msgid "KBibTeX"
+msgstr "KBibTeXபாகம்"
+
+#. GenericName
+#: kbibtex.desktop:3
+msgid "Bibliography Manager"
+msgstr ""
+
+#. Comment
+#: kbibtex.desktop:8
+msgid "A BibTeX editor for TDE"
+msgstr ""
+
+#. Name
+#: kbibtex_part.desktop:3
+msgid "KBibTeXPart"
+msgstr "KBibTeXபாகம்"