[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:24:04 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=a0af990
The following commit has been merged in the master branch:
commit a0af990c142b7f7e400adbf21b0a81633d2d5e41
Author: Daniel Cohen <analoguecolour at gmail.com>
Date: Wed Jul 24 22:18:29 2013 +0100
Text to speech reads text message actions
BUG:309149
FIXED-IN:0.7.0
Reviewed-By:David Edmundson
---
filters/texttospeech/tts-filter.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/filters/texttospeech/tts-filter.cpp b/filters/texttospeech/tts-filter.cpp
index 64935af..adaa54e 100644
--- a/filters/texttospeech/tts-filter.cpp
+++ b/filters/texttospeech/tts-filter.cpp
@@ -59,8 +59,12 @@ void TTSFilter::filterMessage(KTp::Message &message, const KTp::MessageContext &
return;
}
- //FIXME with real name.
- d->kspeech->say(i18n("New message. %1", message.mainMessagePart()), KSpeech::soHtml);
+ if (message.type() == Tp::ChannelTextMessageTypeNormal) {
+ d->kspeech->say(i18nc("Text to Speech - text message %1 is name, %2 is message", "%1 says %2", message.mainMessagePart(), message.senderAlias()), KSpeech::soHtml);
+ }
+ else if (message.type() == Tp::ChannelTextMessageTypeAction) {
+ d->kspeech->say(i18nc("Text to Speech - text message %1 is name, %2 is message", "%1 %2", message.mainMessagePart(), message.senderAlias()), KSpeech::soHtml);
+ }
}
K_PLUGIN_FACTORY(MessageFilterFactory, registerPlugin<TTSFilter>();)
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list