int app_control_init(MainData *md, app_control_h service);
int app_control_finish(MainData *md);
int add_app_reply(MainData *md, const char *key, const char *val);
+char *get_resource_path(char *name);
#endif /*__SETTING_COMMON_INIT_H__ */
#include "setting-debug.h"
#include <efl_extension.h>
+EXPORT_PUBLIC
+char *get_resource_path(char *name)
+{
+ char *final_path = calloc(PATH_MAX, sizeof(char));
+ char *res = app_get_resource_path();
+
+ snprintf(final_path, PATH_MAX, "%s/%s", res, name);
+ return final_path;
+}
+
static Evas_Object *_create_main_window(char *name)
{
Evas_Object *win = NULL;
elm_app_base_scale_set(2.4);
-// bindtextdomain(SETTING_PACKAGE, SETTING_LOCALEDIR);
-// textdomain(SETTING_PACKAGE);
+ char *locale = get_resource_path("locale");
+
+ bindtextdomain("setting-common", locale);
+ textdomain("setting-common");
+
+ dlog_print(DLOG_DEBUG, LOG_TAG, "LOCALE PATH: %s", locale);
+ free(locale);
+
/* create window */
md->window = _create_main_window(name);
<tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib.247414245" name="Archive Generator" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver.mergelib"/>
<tool id="org.tizen.nativecore.tool.sbi.po.compiler.1087510703" name="PO Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.po.compiler"/>
<tool id="org.tizen.nativecore.tool.sbi.edc.compiler.722810134" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler">
- <option id="sbi.gnu.edc.compiler.option.misc.id.586709976" superClass="sbi.gnu.edc.compiler.option.misc.id" useByScannerDiscovery="false" valueType="stringList">
+ <option command="-id " id="sbi.gnu.edc.compiler.option.misc.id.586709976" name="Image Path (-id)" superClass="sbi.gnu.edc.compiler.option.misc.id" useByScannerDiscovery="false" valueType="stringList">
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}/edje/images""/>
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}/res/images""/>
</option>