summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2016-07-09 16:16:22 +0900
committerSemun Lee <sm79.lee@samsung.com>2016-07-11 09:40:12 +0900
commit80c5e233e490cf900fd5bb6f43409d437d77e5fe (patch)
treed36596909e478cf5a6456264f77069a939363c62
parent4e96eb8a4e6f8b0affff7bff75f32aebc5450111 (diff)
downloadnotification-accepted/tizen/wearable/20160711.030718.tar.gz
notification-accepted/tizen/wearable/20160711.030718.tar.bz2
notification-accepted/tizen/wearable/20160711.030718.zip
Change-Id: I8a0de4626e8e7716488ad8e9bbc895fa8a2abfb1 Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rwxr-xr-xsrc/notification.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/notification.c b/src/notification.c
index eb5a6eb..2f6f00a 100755
--- a/src/notification.c
+++ b/src/notification.c
@@ -527,9 +527,13 @@ EXPORT_API int notification_get_text(notification_h noti,
bindtextdomain(noti->domain, noti->dir);
get_str = dgettext(noti->domain, ret_val);
+ if (get_str == ret_val) /* not found */
+ get_str = NULL;
} else if (ret_val != NULL) {
/* Get system string */
get_str = dgettext("sys_string", ret_val);
+ if (get_str == ret_val) /* not found */
+ get_str = NULL;
} else {
get_str = NULL;
}
@@ -543,6 +547,9 @@ EXPORT_API int notification_get_text(notification_h noti,
bundle_get_str(b, buf_key, &get_str);
}
+ if (get_str == NULL && ret_val != NULL)
+ get_str = ret_val; /* fallback for printing anything */
+
check_type = type;
if (get_str != NULL) {