terminology - locale - use prefix found locale dir, not fixed compile

This commit is contained in:
Carsten Haitzler 2014-09-18 21:52:21 +09:00
parent 0284ec1180
commit ad86a427e7
1 changed files with 8 additions and 8 deletions

View File

@ -2968,8 +2968,15 @@ elm_main(int argc, char **argv)
Eina_List *cmds_list = NULL;
elm_language_set("");
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
elm_app_compile_locale_set(LOCALEDIR);
elm_app_info_set(elm_main, "terminology", "themes/default.edj");
#if HAVE_GETTEXT && ENABLE_NLS
bindtextdomain(PACKAGE, LOCALEDIR);
bindtextdomain(PACKAGE, elm_app_locale_dir_get());
textdomain(PACKAGE);
_translate_options();
#else
@ -2984,13 +2991,6 @@ elm_main(int argc, char **argv)
return EXIT_FAILURE;
}
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
elm_app_compile_locale_set(LOCALEDIR);
elm_app_info_set(elm_main, "terminology", "themes/default.edj");
config_init();
main_config = config_load("config");