summaryrefslogtreecommitdiffstats
path: root/kbarcode
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:32 +0200
commitdcded97665311ec2c62a8b34122b495f720b373a (patch)
tree96cf7148e37c201d51279a419e303887dd824608 /kbarcode
parenta46e7cc11eb4298288a2f969991063c72799ef20 (diff)
downloadkbarcode-dcded97665311ec2c62a8b34122b495f720b373a.tar.gz
kbarcode-dcded97665311ec2c62a8b34122b495f720b373a.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>
Diffstat (limited to 'kbarcode')
-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
6 files changed, 10 insertions, 15 deletions
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;