INCLUDE_DIRECTORIES(${INCLUDE_DIR})
INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED dlog dbus-glib-1 pmapi vconf notification libssl secure-storage capi-network-connection capi-network-bluetooth ${PRIVATE_REQUIRED_PKGS})
+pkg_check_modules(pkgs REQUIRED dlog dbus-glib-1 pmapi vconf notification libssl secure-storage capi-network-connection capi-network-bluetooth appcore-common ${PRIVATE_REQUIRED_PKGS})
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
#include "mobileap_agent.h"
-/* Need translation */
-#define MH_NOTI_STR "Connected device (%d)"
-#define MH_NOTI_TITLE "Tethering"
-
gint _slist_find_station_by_interface(gconstpointer a, gconstpointer b);
gint _slist_find_station_by_mac(gconstpointer a, gconstpointer b);
gint _slist_find_station_by_ip_addr(gconstpointer a, gconstpointer b);
#define MH_NOTI_STR_MAX 50
#define MH_NOTI_ICON_PATH "/usr/ug/res/images/ug-setting-mobileap-efl/tethering.png"
+#define MOBILEAP_LOCALE_COMMON_PKG "ug-setting-mobileap-efl"
+#define MOBILEAP_LOCALE_COMMON_RES "/usr/ug/res/locale"
+
+#define _(str) dgettext(MOBILEAP_LOCALE_COMMON_PKG, str)
+
+#define MH_NOTI_STR _("IDS_MOBILEAP_POP_CONNECTED_DEVICES_C_PD")
+#define MH_NOTI_TITLE _("IDS_MOBILEAP_BODY_TETHERING")
+#define MH_NOTI_TIMEOUT_STR _("IDS_MOBILEAP_BODY_TAP_TO_CONFIGURE_TETHERING")
+#define MH_NOTI_TIMEOUT_TITLE "Disable tethering by timeout"
+#define MH_NOTI_BT_VISIBILITY_STR _("IDS_ST_BODY_BLUETOOTH_VISIBILITY_HAS_TIMED_OUT_YOUR_DEVICE_MIGHT_NOT_BE_FOUND")
+
+
int _create_timeout_noti(const char *content, const char *title,
const char *icon_path);
int _delete_timeout_noti(void);
Name: mobileap-agent
Summary: Mobile AP daemon for setting tethering environments
-Version: 0.1.91
+Version: 0.1.92
Release: 1
Group: TO_BE/FILLED_IN
License: Apache-2.0
BuildRequires: pkgconfig(secure-storage)
BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(capi-network-bluetooth)
+BuildRequires: pkgconfig(appcore-common)
BuildRequires: cmake
Requires(post): /usr/bin/vconftool
Requires: iptables
} else {
ret = bt_adapter_get_visibility(&mode, &duration);
if (ret == BT_ERROR_NONE && mode == BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERABLE)
- _create_status_noti("Bluetooth visible time is off. You may not find your device.");
+ _create_status_noti(MH_NOTI_BT_VISIBILITY_STR);
}
ret = __activate_bt_nap(obj);
} else {
bt_ret = bt_adapter_get_visibility(&mode, &duration);
if (bt_ret == BT_ERROR_NONE && mode == BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERABLE)
- _create_status_noti("Bluetooth visible time is off. You may not find your device.");
+ _create_status_noti(MH_NOTI_BT_VISIBILITY_STR);
}
#include "mobileap_usb.h"
#include "mobileap_notification.h"
-/* Need translation */
-#define MH_NOTI_TIMEOUT_STR "Tap for setting"
-#define MH_NOTI_TIMEOUT_TITLE "Disable tethering by timeout"
typedef struct {
guint src_id;
#include <pmapi.h>
#include <vconf.h>
#include <net_connection.h>
+#include <appcore-common.h>
#include "mobileap_agent.h"
#include "mobileap_handler.h"
#include "mobileap_wifi.h"
#include "mobileap_usb.h"
#include "mobileap_network.h"
+#include "mobileap_notification.h"
GType tethering_object_get_type(void);
#define TETHERING_TYPE_OBJECT (tethering_object_get_type())
g_type_init();
#endif
+ if (appcore_set_i18n(MOBILEAP_LOCALE_COMMON_PKG, MOBILEAP_LOCALE_COMMON_RES) < 0)
+ goto failure;
+
if (vconf_get_int(VCONFKEY_MOBILE_HOTSPOT_MODE, &mobileap_vconf_key)) {
ERR("vconf_get_int FAIL\n");
mobileap_state = MOBILE_AP_STATE_NONE;