summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuho <juho80.son@samsung.com>2013-07-03 11:19:11 +0900
committerjuho <juho80.son@samsung.com>2013-07-03 14:24:47 +0900
commit809f6d8e7c32adb42286d1c0af89dcbb56f43350 (patch)
tree38adda3d976260c1eaf2121164194a5383536502
parentf33ccc7ff7ab9362ec8e49ebc8c5dcdd14bfff8a (diff)
downloadcrash-worker-sdk-809f6d8e7c32adb42286d1c0af89dcbb56f43350.tar.gz
crash-worker-sdk-809f6d8e7c32adb42286d1c0af89dcbb56f43350.tar.bz2
crash-worker-sdk-809f6d8e7c32adb42286d1c0af89dcbb56f43350.zip
remove unused language set code
crash-popup don't need the language changing at runtime. So remove what is concerned about set language. Change-Id: Ie54db898b59fcac299b12b406548f794f4da0864
-rw-r--r--crash-popup/src/crash-popup.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/crash-popup/src/crash-popup.c b/crash-popup/src/crash-popup.c
index 789a976..b8c7851 100644
--- a/crash-popup/src/crash-popup.c
+++ b/crash-popup/src/crash-popup.c
@@ -63,10 +63,6 @@ static void _keyungrab(void *data)
_D("Ungrabbing KEY_HOME key is successful");
}
-static int lang_changed(void *data)
-{
- return 0;
-}
static int rotate(enum appcore_rm m, void *data)
{
struct appdata *ad = data;
@@ -116,18 +112,8 @@ static void add_sorry_popup(struct appdata *ad)
{
Evas_Object *pu, *bt1;
char buf[512] = {0, };
- char *lang;
char *r;
- lang = vconf_get_str(VCONFKEY_LANGSET);
- if (lang) {
- setenv("LANG", lang, 1);
- setenv("LC_MESSAGES", lang, 1);
- r = setlocale(LC_ALL, "");
- if (r == NULL)
- r = setlocale(LC_ALL, lang);
- free(lang);
- }
snprintf(buf, sizeof(buf),
_("IDS_ST_BODY_PS_HAS_CLOSED_UNEXPECTEDLY"), ad->appname);
pu = elm_popup_add(ad->win);
@@ -210,11 +196,8 @@ static int app_create(void *data)
retvm_if(ad == NULL, -1, "Invalid argument: appdata is NULL\n");
- setenv("HOME", "/home/app", 1);
elm_init(0, NULL);
- lang_changed(ad);
/* add system event callback */
- appcore_set_event_callback(APPCORE_EVENT_LANG_CHANGE, lang_changed, ad);
appcore_set_rotation_cb(rotate, ad);
appcore_set_i18n("crash-popup", LOCALEDIR);
/* appcore measure time example */
@@ -288,6 +271,8 @@ int main(int argc, char *argv[])
.resume = app_resume,
.reset = app_reset,
};
+
+ setenv("HOME", "/home/app", 1);
ge = getgrnam("app");
if (ge != NULL)
setgid(ge->gr_gid);
@@ -296,6 +281,7 @@ int main(int argc, char *argv[])
pw = getpwnam("app");
if (pw != NULL)
setuid(pw->pw_uid);
+
_D("argc(%d)\n", argc);
if (argc < 2) {
_D("argc is (%d) wrong argument\n", argc);