diff options
author | Semun Lee <sm79.lee@samsung.com> | 2016-07-09 16:16:22 +0900 |
---|---|---|
committer | Semun Lee <sm79.lee@samsung.com> | 2016-07-11 09:40:12 +0900 |
commit | 80c5e233e490cf900fd5bb6f43409d437d77e5fe (patch) | |
tree | d36596909e478cf5a6456264f77069a939363c62 | |
parent | 4e96eb8a4e6f8b0affff7bff75f32aebc5450111 (diff) | |
download | notification-accepted/tizen/wearable/20160711.030718.tar.gz notification-accepted/tizen/wearable/20160711.030718.tar.bz2 notification-accepted/tizen/wearable/20160711.030718.zip |
Use default text when translation failssubmit/tizen/20160711.014306accepted/tizen/wearable/20160711.030718accepted/tizen/tv/20160711.030704accepted/tizen/mobile/20160711.030756accepted/tizen/ivi/20160711.031201accepted/tizen/common/20160712.150342
Change-Id: I8a0de4626e8e7716488ad8e9bbc895fa8a2abfb1
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rwxr-xr-x | src/notification.c | 7 |
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) { |