summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2016-03-15 11:48:07 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2016-03-15 11:48:07 +0900
commit905be6e1c859021457f7a374041e8bfe89d53dff (patch)
tree925453174faa050016c363d93a0c44f7efb1f4d0
parente117d2c5f54ba6014db4c6ca2bf0b62d82c12ce4 (diff)
downloadmsg-service-905be6e1c859021457f7a374041e8bfe89d53dff.tar.gz
msg-service-905be6e1c859021457f7a374041e8bfe89d53dff.tar.bz2
msg-service-905be6e1c859021457f7a374041e8bfe89d53dff.zip
Change-Id: I5423ca86a1b4d6ff5eb55e94ad0ec0260e74ee63
-rwxr-xr-xexternals/MsgNotificationWrapper.cpp21
-rwxr-xr-xinclude/externals/MsgNotificationWrapper.h2
-rwxr-xr-xplugin/sms_plugin/SmsPluginEventHandler.cpp1
-rwxr-xr-xutils/MsgUtilFunction.cpp22
4 files changed, 23 insertions, 23 deletions
diff --git a/externals/MsgNotificationWrapper.cpp b/externals/MsgNotificationWrapper.cpp
index fed5d71..baa3474 100755
--- a/externals/MsgNotificationWrapper.cpp
+++ b/externals/MsgNotificationWrapper.cpp
@@ -3073,27 +3073,6 @@ void setNotiEventHandler(notification_h noti_h, notification_event_type_e type,
}
-char *getTranslateText(const char *pkg_name, const char *locale_dir, const char *text)
-{
- char *notiMsg = NULL;
- char *lang = NULL;
-
- lang = vconf_get_str(VCONFKEY_LANGSET);
-
- setlocale(LC_MESSAGES, lang);
-
- bindtextdomain(pkg_name, locale_dir);
-
- notiMsg = dgettext(pkg_name, text);
-
- if (lang) {
- free(lang);
- lang = NULL;
- }
-
- return g_strdup(notiMsg);
-}
-
void MsgNotiSoundRepeatAlarmCB(int alarmId)
{
MSG_BEGIN();
diff --git a/include/externals/MsgNotificationWrapper.h b/include/externals/MsgNotificationWrapper.h
index 98df11d..df41f74 100755
--- a/include/externals/MsgNotificationWrapper.h
+++ b/include/externals/MsgNotificationWrapper.h
@@ -222,6 +222,4 @@ void MsgDeleteNotification(msg_notification_type_t noti_type, int simIndex);
void MsgInitReportNotiList();
bool MsgCheckNotificationSettingEnable(void);
-char *getTranslateText(const char *pkg_name, const char *locale_dir, const char *text);
-
#endif
diff --git a/plugin/sms_plugin/SmsPluginEventHandler.cpp b/plugin/sms_plugin/SmsPluginEventHandler.cpp
index 11f65dc..78f990a 100755
--- a/plugin/sms_plugin/SmsPluginEventHandler.cpp
+++ b/plugin/sms_plugin/SmsPluginEventHandler.cpp
@@ -21,6 +21,7 @@
#include "MsgDebug.h"
#include "MsgUtilFile.h"
+#include "MsgUtilFunction.h"
#include "MsgCppTypes.h"
#include "MsgContact.h"
#include "MsgGconfWrapper.h"
diff --git a/utils/MsgUtilFunction.cpp b/utils/MsgUtilFunction.cpp
index 7e8e0a3..09482ef 100755
--- a/utils/MsgUtilFunction.cpp
+++ b/utils/MsgUtilFunction.cpp
@@ -984,6 +984,28 @@ char* msg_normalize_number(char *src)
}
+char *getTranslateText(const char *pkg_name, const char *locale_dir, const char *text)
+{
+ char *notiMsg = NULL;
+ char *lang = NULL;
+
+ lang = vconf_get_str(VCONFKEY_LANGSET);
+
+ setlocale(LC_MESSAGES, lang);
+
+ bindtextdomain(pkg_name, locale_dir);
+
+ notiMsg = dgettext(pkg_name, text);
+
+ if (lang) {
+ free(lang);
+ lang = NULL;
+ }
+
+ return g_strdup(notiMsg);
+}
+
+
msg_error_t MsgMakeSortRule(const MSG_SORT_RULE_S *pSortRule, char *pSqlSort)
{
char sql[128];