diff --git a/daemon/blockcontroler.cpp b/daemon/blockcontroler.cpp index 2615bc9..0f7dfcd 100644 --- a/daemon/blockcontroler.cpp +++ b/daemon/blockcontroler.cpp @@ -38,16 +38,21 @@ void BlockControler::incomingCall(const QString &_callerId, const QString &calle bool isHiddenNumber = (callerId == "x-ofono-unknown"); if (isHiddenNumber && ExphoneConfig::instance()->blockingCLIR()) { + //: Anonymous caller refers to CLIR/x-ofono-unknown + showNotification(tr("Anonymous caller"), QString()); blocked = true; } bool isUnknown = (callerId == callerName); if (isUnknown && ExphoneConfig::instance()->blockingUnknown()) { + //: Unknown caller means caller which is not present in contact list + showNotification(callerId, tr("Unknown caller")); blocked = true; } if (!blocked) { blocked = m_blockModel.isBlocked(callerId); + showNotification(callerId, callerName); } m_blockModel.logCall(callerId, callerName); @@ -56,7 +61,6 @@ void BlockControler::incomingCall(const QString &_callerId, const QString &calle #if defined(MER_EDITION_SAILFISH) || defined(UUITK_EDITION) m_voiceCallController.hangup(); #endif - showNotification(callerId, callerName); } } diff --git a/daemon/translations/exphoned.ts b/daemon/translations/exphoned.ts index 2777b16..3c2bbee 100644 --- a/daemon/translations/exphoned.ts +++ b/daemon/translations/exphoned.ts @@ -1,14 +1,28 @@ - + + + BlockControler - + + Anonymous caller + Anonymous caller refers to CLIR/x-ofono-unknown + + + + + Unknown caller + Unknown caller means caller which is not present in contact list + + + + %1 phone number in notification body formatted as "%s" %1 - + %1 (%2) phone number and contact name formatted as "%s (%s)" %1 (%2) @@ -17,9 +31,9 @@ QObject - + Phone call was blocked Phone call was blocked - \ No newline at end of file +