summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <[email protected]>2017-06-16 22:26:02 +0200
committerPino Toscano <[email protected]>2017-06-16 22:26:02 +0200
commitb7ccabe16bbd5bfaac08c25e47b674ad7ed0e523 (patch)
treed3603c61d03afb44ecf3b841fc5ca7b4ea13eed1
parent4af9276be20aa53ad060aac63942ba387b27bcf9 (diff)
pimeventsplugin: fix i18n handling
- extract all the qml files, not just top-level only - use Java format for qml type, as done elsewhere already - use i18n() as translation function
-rw-r--r--plugins/plasma/pimeventsplugin/Messages.sh2
-rw-r--r--plugins/plasma/pimeventsplugin/PimEventsConfig.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plasma/pimeventsplugin/Messages.sh b/plugins/plasma/pimeventsplugin/Messages.sh
index 2c39052..84e6876 100644
--- a/plugins/plasma/pimeventsplugin/Messages.sh
+++ b/plugins/plasma/pimeventsplugin/Messages.sh
@@ -1,2 +1,2 @@
#! /usr/bin/env bash
-$XGETTEXT *.qml -o $podir/pimeventsplugin.pot
+$XGETTEXT `find . -name *.qml` -L Java -o $podir/pimeventsplugin.pot
diff --git a/plugins/plasma/pimeventsplugin/PimEventsConfig.qml b/plugins/plasma/pimeventsplugin/PimEventsConfig.qml
index 9699083..142d118 100644
--- a/plugins/plasma/pimeventsplugin/PimEventsConfig.qml
+++ b/plugins/plasma/pimeventsplugin/PimEventsConfig.qml
@@ -59,7 +59,7 @@ Item {
TableViewColumn {
role: "data"
- title: qsTr("Select Calendars");
+ title: i18n("Select Calendars");
delegate: Item {
CheckBox {
id: checkbox