summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-11-27 13:27:49 +0100
committerMontel Laurent <[email protected]>2017-11-27 13:27:49 +0100
commit855de99d77f8cca030a1d6e11008f0a06f63598d (patch)
tree2a0731149cb2429ae8cf8dd275d28767085b5dee
parent719326b62aa1cdd895a51f1b3af844199ecf9003 (diff)
Allow to translate it
-rw-r--r--plugins/messageviewer/bodypartformatter/pkpass/CMakeLists.txt2
-rw-r--r--plugins/messageviewer/bodypartformatter/pkpass/Messages.sh4
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/messageviewer/bodypartformatter/pkpass/CMakeLists.txt b/plugins/messageviewer/bodypartformatter/pkpass/CMakeLists.txt
index faa881b..96215e4 100644
--- a/plugins/messageviewer/bodypartformatter/pkpass/CMakeLists.txt
+++ b/plugins/messageviewer/bodypartformatter/pkpass/CMakeLists.txt
@@ -1,3 +1,5 @@
+add_definitions(-DTRANSLATION_DOMAIN=\"messageviewer_bodypartformatter_pkpass\")
+
set(pkpass_srcs
pkpassfield.cpp
pkpassfile.cpp
diff --git a/plugins/messageviewer/bodypartformatter/pkpass/Messages.sh b/plugins/messageviewer/bodypartformatter/pkpass/Messages.sh
new file mode 100644
index 0000000..01c75c9
--- /dev/null
+++ b/plugins/messageviewer/bodypartformatter/pkpass/Messages.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+$EXTRACT_GRANTLEE_TEMPLATE_STRINGS `find templates -name \*.html` >> html.cpp
+$XGETTEXT html.cpp *.cpp -o $podir/messageviewer_bodypartformatter_pkpass.pot
+rm -f html.cpp