summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-05 11:56:32 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-05 11:56:48 +0200
commitea47da4e59a7ad6bbd99583388dcfb4764a42ce4 (patch)
tree599499b07e0ab116e1a983855d14d1b0dcc31df1
parentcf7b9cf5a69359c11962459c4754d8bbe62ef940 (diff)
downloadkbarcode-ea47da4e59a7ad6bbd99583388dcfb4764a42ce4.tar.gz
kbarcode-ea47da4e59a7ad6bbd99583388dcfb4764a42ce4.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 dcded97665311ec2c62a8b34122b495f720b373a)
-rw-r--r--CMakeL10n.txt5
-rw-r--r--fileplugin/CMakeLists.txt5
-rw-r--r--kbarcode/CMakeLists.txt16
-rw-r--r--kbarcode/kbarcode-batch.desktop2
-rw-r--r--kbarcode/kbarcode-editor.desktop2
-rw-r--r--kbarcode/kbarcode-label.desktop1
-rw-r--r--kbarcode/kbarcode-single.desktop2
-rw-r--r--kbarcode/kbarcode.desktop2
-rw-r--r--translations/desktop_files/de.po93
-rw-r--r--translations/desktop_files/kbarcode-desktops.pot91
10 files changed, 202 insertions, 17 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index a525b71..bfefd8e 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -21,3 +21,8 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files"
+ SOURCES *.desktop
+)
diff --git a/fileplugin/CMakeLists.txt b/fileplugin/CMakeLists.txt
index 78af279..a139813 100644
--- a/fileplugin/CMakeLists.txt
+++ b/fileplugin/CMakeLists.txt
@@ -28,7 +28,8 @@ tde_add_kpart( tdefile_kbarcode AUTOMOC
##### other data
-install(
- FILES tdefile_kbarcode.desktop
+tde_create_translated_desktop(
+ SOURCE tdefile_kbarcode.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/
)
diff --git a/kbarcode/CMakeLists.txt b/kbarcode/CMakeLists.txt
index a16fbb0..dbfaab2 100644
--- a/kbarcode/CMakeLists.txt
+++ b/kbarcode/CMakeLists.txt
@@ -70,19 +70,23 @@ tde_install_icons( )
##### other data
-install(
- FILES
+foreach( _desktop
${PROJECT_NAME}.desktop
${PROJECT_NAME}-batch.desktop
${PROJECT_NAME}-editor.desktop
${PROJECT_NAME}-single.desktop
+ )
+ tde_create_translated_desktop(
+ SOURCE ${_desktop}
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
+ )
+endforeach( )
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
-install(
- FILES ${PROJECT_NAME}-label.desktop
+tde_create_translated_desktop(
+ SOURCE ${PROJECT_NAME}-label.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
install(
diff --git a/kbarcode/kbarcode-batch.desktop b/kbarcode/kbarcode-batch.desktop
index f6bc30e..2119f0e 100644
--- a/kbarcode/kbarcode-batch.desktop
+++ b/kbarcode/kbarcode-batch.desktop
@@ -4,10 +4,8 @@ Type=Application
Exec=kbarcode --batch
Icon=kbarcode
Comment=Barcode and label printing tool (batch printing mode)
-Comment[de]=Werkzeug zum Barcode und Etiketten Druck (Stapelverarbeitung)
Terminal=false
Name=KBarcode Batch Printer
-Name[de]=KBarcode Batch Druck
GenericName=Barcode and Label Batch Printer
Categories=Qt;TDE;Office;
NoDisplay=true
diff --git a/kbarcode/kbarcode-editor.desktop b/kbarcode/kbarcode-editor.desktop
index ff48ff5..554b287 100644
--- a/kbarcode/kbarcode-editor.desktop
+++ b/kbarcode/kbarcode-editor.desktop
@@ -4,10 +4,8 @@ Type=Application
Exec=kbarcode --label
Icon=kbarcode
Comment=Barcode and label printing tool editor
-Comment[de]=Werkzeug zum Barcode und Etiketten Druck Editor
Terminal=false
Name=KBarcode Label Editor
-Name[de]=KBarcode Label Editor
GenericName=Barcode and Label Editor
Categories=Qt;TDE;Office;
NoDisplay=true
diff --git a/kbarcode/kbarcode-label.desktop b/kbarcode/kbarcode-label.desktop
index 08d8244..7e46010 100644
--- a/kbarcode/kbarcode-label.desktop
+++ b/kbarcode/kbarcode-label.desktop
@@ -5,7 +5,6 @@ Encoding=UTF-8
Icon=kbarcode
X-DocPath=kbarcode/index.html
MimeType=application/kbarcode-label
-Name[de]=kbarcode-label.desktop
GenericName=KBarcode Label
Patterns=*.kbarcode;*.KBARCODE;
NoDisplay=true
diff --git a/kbarcode/kbarcode-single.desktop b/kbarcode/kbarcode-single.desktop
index 090e0ab..9168fbd 100644
--- a/kbarcode/kbarcode-single.desktop
+++ b/kbarcode/kbarcode-single.desktop
@@ -4,10 +4,8 @@ Type=Application
Exec=kbarcode --barcode
Icon=kbarcode
Comment=Barcode generation tool
-Comment[de]=Barcode Erstellung
Terminal=0
Name=KBarcode Barcode Generator
-Name[de]=KBarcode Barcode Generator
GenericName=Barcode Generator
Categories=Qt;TDE;Office;
NoDisplay=true
diff --git a/kbarcode/kbarcode.desktop b/kbarcode/kbarcode.desktop
index 9909328..9d624b6 100644
--- a/kbarcode/kbarcode.desktop
+++ b/kbarcode/kbarcode.desktop
@@ -10,9 +10,7 @@ Terminal=0
Name=KBarcode
GenericName=Barcode and Label Printing
-GenericName[de]=Strichcode- und Etikettendruck
Comment=Barcode and label printing tool
-Comment[de]=Werkzeug zum Strichcode- und Etikettendruck
Categories=Qt;TDE;Office;
diff --git a/translations/desktop_files/de.po b/translations/desktop_files/de.po
new file mode 100644
index 0000000..59cdd9f
--- /dev/null
+++ b/translations/desktop_files/de.po
@@ -0,0 +1,93 @@
+# 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 11:49+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
+#. Comment
+#: fileplugin/tdefile_kbarcode.desktop:3 fileplugin/tdefile_kbarcode.desktop:4
+msgid "KBarcode Info"
+msgstr ""
+
+#. Comment
+#: kbarcode/kbarcode-batch.desktop:6
+msgid "Barcode and label printing tool (batch printing mode)"
+msgstr "Werkzeug zum Barcode und Etiketten Druck (Stapelverarbeitung)"
+
+#. Name
+#: kbarcode/kbarcode-batch.desktop:8
+msgid "KBarcode Batch Printer"
+msgstr "KBarcode Batch Druck"
+
+#. GenericName
+#: kbarcode/kbarcode-batch.desktop:9
+#, fuzzy
+msgid "Barcode and Label Batch Printer"
+msgstr "Strichcode- und Etikettendruck"
+
+#. Comment
+#: kbarcode/kbarcode-editor.desktop:6
+msgid "Barcode and label printing tool editor"
+msgstr "Werkzeug zum Barcode und Etiketten Druck Editor"
+
+#. Name
+#: kbarcode/kbarcode-editor.desktop:8
+msgid "KBarcode Label Editor"
+msgstr "KBarcode Label Editor"
+
+#. GenericName
+#: kbarcode/kbarcode-editor.desktop:9
+#, fuzzy
+msgid "Barcode and Label Editor"
+msgstr "KBarcode Label Editor"
+
+#. Comment
+#. GenericName
+#: kbarcode/kbarcode-label.desktop:3 kbarcode/kbarcode-label.desktop:8
+#, fuzzy
+msgid "KBarcode Label"
+msgstr "KBarcode Label Editor"
+
+#. Comment
+#: kbarcode/kbarcode-single.desktop:6
+msgid "Barcode generation tool"
+msgstr "Barcode Erstellung"
+
+#. Name
+#: kbarcode/kbarcode-single.desktop:8
+msgid "KBarcode Barcode Generator"
+msgstr "KBarcode Barcode Generator"
+
+#. GenericName
+#: kbarcode/kbarcode-single.desktop:9
+#, fuzzy
+msgid "Barcode Generator"
+msgstr "KBarcode Barcode Generator"
+
+#. Name
+#: kbarcode/kbarcode.desktop:10
+msgid "KBarcode"
+msgstr ""
+
+#. GenericName
+#: kbarcode/kbarcode.desktop:12
+msgid "Barcode and Label Printing"
+msgstr "Strichcode- und Etikettendruck"
+
+#. Comment
+#: kbarcode/kbarcode.desktop:14
+msgid "Barcode and label printing tool"
+msgstr "Werkzeug zum Strichcode- und Etikettendruck"
diff --git a/translations/desktop_files/kbarcode-desktops.pot b/translations/desktop_files/kbarcode-desktops.pot
new file mode 100644
index 0000000..048490c
--- /dev/null
+++ b/translations/desktop_files/kbarcode-desktops.pot
@@ -0,0 +1,91 @@
+# 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 11:49+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
+#. Comment
+#: fileplugin/tdefile_kbarcode.desktop:3
+#: fileplugin/tdefile_kbarcode.desktop:4
+msgid "KBarcode Info"
+msgstr ""
+
+#. Comment
+#: kbarcode/kbarcode-batch.desktop:6
+msgid "Barcode and label printing tool (batch printing mode)"
+msgstr ""
+
+#. Name
+#: kbarcode/kbarcode-batch.desktop:8
+msgid "KBarcode Batch Printer"
+msgstr ""
+
+#. GenericName
+#: kbarcode/kbarcode-batch.desktop:9
+msgid "Barcode and Label Batch Printer"
+msgstr ""
+
+#. Comment
+#: kbarcode/kbarcode-editor.desktop:6
+msgid "Barcode and label printing tool editor"
+msgstr ""
+
+#. Name
+#: kbarcode/kbarcode-editor.desktop:8
+msgid "KBarcode Label Editor"
+msgstr ""
+
+#. GenericName
+#: kbarcode/kbarcode-editor.desktop:9
+msgid "Barcode and Label Editor"
+msgstr ""
+
+#. Comment
+#. GenericName
+#: kbarcode/kbarcode-label.desktop:3
+#: kbarcode/kbarcode-label.desktop:8
+msgid "KBarcode Label"
+msgstr ""
+
+#. Comment
+#: kbarcode/kbarcode-single.desktop:6
+msgid "Barcode generation tool"
+msgstr ""
+
+#. Name
+#: kbarcode/kbarcode-single.desktop:8
+msgid "KBarcode Barcode Generator"
+msgstr ""
+
+#. GenericName
+#: kbarcode/kbarcode-single.desktop:9
+msgid "Barcode Generator"
+msgstr ""
+
+#. Name
+#: kbarcode/kbarcode.desktop:10
+msgid "KBarcode"
+msgstr ""
+
+#. GenericName
+#: kbarcode/kbarcode.desktop:12
+msgid "Barcode and Label Printing"
+msgstr ""
+
+#. Comment
+#: kbarcode/kbarcode.desktop:14
+msgid "Barcode and label printing tool"
+msgstr ""