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 dcded97665)
r14.0.x
Slávek Banko 4 years ago
parent cf7b9cf5a6
commit ea47da4e59
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -21,3 +21,8 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
tde_l10n_create_template(
CATALOG "desktop_files"
SOURCES *.desktop
)

@ -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/
)

@ -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(

@ -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

@ -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

@ -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

@ -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

@ -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;

@ -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"

@ -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 ""
Loading…
Cancel
Save