mobile-lua: add additional LABELLED_BY relation
[profile/tv/apps/native/screen-reader.git] / src / smart_notification.c
index b6e95e7..e519797 100644 (file)
@@ -117,10 +117,10 @@ static void _scroll_event_cb(AtspiEvent * event, gpointer user_data)
 
        if (!strcmp(event->type, "object:scroll-start")) {
                DEBUG("Scrolling started");
-               tts_speak("Scrolling started", EINA_TRUE);
+               tts_speak(_("IDS_SCROLLING_STARTED"), EINA_TRUE);
        } else if (!strcmp(event->type, "object:scroll-end")) {
                DEBUG("Scrolling finished");
-               tts_speak("Scrolling finished", EINA_FALSE);
+               tts_speak(_("IDS_SCROLLING_FINISHED"), EINA_FALSE);
                get_realized_items_count((AtspiAccessible *) event->source, &start_index, &end_index);
                _smart_notification_realized_items(start_index, end_index);
        }
@@ -188,5 +188,5 @@ static void _smart_notification_realized_items(int start_idx, int end_idx)
 
        snprintf(buf, sizeof(buf), _("IDS_REACHED_ITEMS_NOTIFICATION"), start_idx, end_idx);
 
-       tts_speak(strdup(buf), EINA_FALSE);
+       tts_speak(buf, EINA_FALSE);
 }