Fixed for multi language support 88/93488/1 submit/tizen/20161026.030044
authorYounho Park <younho.park@samsung.com>
Mon, 24 Oct 2016 12:29:20 +0000 (21:29 +0900)
committerYounho Park <younho.park@samsung.com>
Mon, 24 Oct 2016 12:29:20 +0000 (21:29 +0900)
Change-Id: I293faa3cdd0fc76568eeec5c55e7057751771971
Signed-off-by: Younho Park <younho.park@samsung.com>
70 files changed:
CMakeLists.txt [changed mode: 0755->0644]
INSTALL [new file with mode: 0644]
data/edc/my-account.edc [moved from wearable/app/data/edc/my-account.edc with 100% similarity]
data/images/tw_ic_popup_btn_check.png [moved from wearable/app/data/images/tw_ic_popup_btn_check.png with 100% similarity]
data/images/tw_list_fadeout_right_masking.#.png [moved from wearable/app/data/images/tw_list_fadeout_right_masking.#.png with 100% similarity]
include/my-account-debug.h [moved from wearable/app/include/my-account-debug.h with 98% similarity]
include/my-account-main.h [moved from wearable/app/include/my-account-main.h with 97% similarity, mode: 0755]
include/my-account-ui-widget.h [moved from wearable/app/include/my-account-ui-widget.h with 100% similarity, mode: 0755]
include/my-account-util.h [moved from wearable/app/include/my-account-util.h with 100% similarity, mode: 0755]
include/my-account-view.h [moved from wearable/app/include/my-account-view.h with 100% similarity, mode: 0755]
my-account.manifest [new file with mode: 0644]
org.tizen.my-account.xml [moved from wearable/org.tizen.my-account.xml with 100% similarity, mode: 0644]
packaging/my-account.spec
po/CMakeLists.txt [moved from wearable/po/CMakeLists.txt with 90% similarity]
po/ar.po [moved from wearable/po/ar.po with 100% similarity]
po/az.po [moved from wearable/po/az.po with 100% similarity]
po/bg.po [moved from wearable/po/bg.po with 100% similarity]
po/ca.po [moved from wearable/po/ca.po with 100% similarity]
po/cs.po [moved from wearable/po/cs.po with 100% similarity]
po/da.po [moved from wearable/po/da.po with 100% similarity]
po/de.po [moved from wearable/po/de.po with 100% similarity]
po/el_GR.po [moved from wearable/po/el_GR.po with 100% similarity]
po/en.po [moved from wearable/po/en.po with 100% similarity]
po/en_PH.po [moved from wearable/po/en_PH.po with 100% similarity]
po/en_US.po [moved from wearable/po/en_US.po with 100% similarity]
po/es_ES.po [moved from wearable/po/es_ES.po with 100% similarity]
po/es_US.po [moved from wearable/po/es_US.po with 100% similarity]
po/et.po [moved from wearable/po/et.po with 100% similarity]
po/eu.po [moved from wearable/po/eu.po with 100% similarity]
po/fi.po [moved from wearable/po/fi.po with 100% similarity]
po/fr.po [moved from wearable/po/fr.po with 100% similarity]
po/fr_CA.po [moved from wearable/po/fr_CA.po with 100% similarity]
po/ga.po [moved from wearable/po/ga.po with 100% similarity]
po/gl.po [moved from wearable/po/gl.po with 100% similarity]
po/hi.po [moved from wearable/po/hi.po with 100% similarity]
po/hr.po [moved from wearable/po/hr.po with 100% similarity]
po/hu.po [moved from wearable/po/hu.po with 100% similarity]
po/hy.po [moved from wearable/po/hy.po with 100% similarity]
po/is.po [moved from wearable/po/is.po with 100% similarity]
po/it_IT.po [moved from wearable/po/it_IT.po with 100% similarity]
po/ja_JP.po [moved from wearable/po/ja_JP.po with 100% similarity]
po/ka.po [moved from wearable/po/ka.po with 100% similarity]
po/kk.po [moved from wearable/po/kk.po with 100% similarity]
po/ko_KR.po [moved from wearable/po/ko_KR.po with 100% similarity]
po/lt.po [moved from wearable/po/lt.po with 100% similarity]
po/lv.po [moved from wearable/po/lv.po with 100% similarity]
po/mk.po [moved from wearable/po/mk.po with 100% similarity]
po/nb.po [moved from wearable/po/nb.po with 100% similarity]
po/nl.po [moved from wearable/po/nl.po with 100% similarity]
po/pl.po [moved from wearable/po/pl.po with 100% similarity]
po/pt_BR.po [moved from wearable/po/pt_BR.po with 100% similarity]
po/pt_PT.po [moved from wearable/po/pt_PT.po with 100% similarity]
po/ro.po [moved from wearable/po/ro.po with 100% similarity]
po/ru_RU.po [moved from wearable/po/ru_RU.po with 100% similarity]
po/sk.po [moved from wearable/po/sk.po with 100% similarity]
po/sl.po [moved from wearable/po/sl.po with 100% similarity]
po/sr.po [moved from wearable/po/sr.po with 100% similarity]
po/sv.po [moved from wearable/po/sv.po with 100% similarity]
po/tr_TR.po [moved from wearable/po/tr_TR.po with 100% similarity]
po/uk.po [moved from wearable/po/uk.po with 100% similarity]
po/uz.po [moved from wearable/po/uz.po with 100% similarity]
po/zh_CN.po [moved from wearable/po/zh_CN.po with 100% similarity]
po/zh_HK.po [moved from wearable/po/zh_HK.po with 100% similarity]
po/zh_TW.po [moved from wearable/po/zh_TW.po with 100% similarity]
src/my-account-main.c [moved from wearable/app/src/my-account-main.c with 100% similarity]
src/my-account-ui-widget.c [moved from wearable/app/src/my-account-ui-widget.c with 100% similarity, mode: 0644]
src/my-account-view-main.c [moved from wearable/app/src/my-account-view-main.c with 98% similarity, mode: 0644]
wearable/CMakeLists.txt [deleted file]
wearable/app/CMakeLists.txt [deleted file]
wearable/app/data/CMakeLists.txt [deleted file]

old mode 100755 (executable)
new mode 100644 (file)
index b13f753..4a3b075
@@ -1,9 +1,98 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(my-account C)
 
-MESSAGE("build account setting menu")
+SET(APPDIR /usr/apps/org.tizen.my-account)
+SET(LIBDIR ${APPDIR}/lib/ug)
+SET(BINDIR ${APPDIR}/bin)
+SET(RESDIR ${APPDIR}/res)
+SET(SHAREDDIR ${APPDIR}/shared)
+SET(DATADIR ${APPDIR}/shared/trusted)
 
-IF(TIZEN_WEARABLE)
-MESSAGE("profile : wearable")
-ADD_SUBDIRECTORY(wearable)
-ENDIF(TIZEN_WEARABLE)
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+#SET(BINDIR "${PREFIX}/bin")
+#SET(RESDIR "${PREFIX}/res")
+SET(LOCALEDIR "${RESDIR}/locale")
+SET(IMGDIR "${RESDIR}/images")
+SET(EDJDIR "${RESDIR}/edje")
+SET(ICONDIR "${CMAKE_SHARE_PREFIX}/icons/default/small")
+SET(XMLDIR "${CMAKE_SHARE_PREFIX}/packages")
+#SET(DATADIR "${CMAKE_DATA_PREFIX}")
+SET(TABLEDIR "${PREFIX}/shared/res/tables")
 
+ADD_DEFINITIONS("-DPACKAGE=\"my-account\"")
+ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
+ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
+ADD_DEFINITIONS("-DIMGDIR=\"${IMGDIR}\"")
+ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
+ADD_DEFINITIONS("-DICONDIR=\"${ICONDIR}\"")
+ADD_DEFINITIONS("-DDATADIR=\"${DATADIR}\"")
+ADD_DEFINITIONS("-DTABLEDIR=\"${TABLEDIR}\"")
+
+ADD_DEFINITIONS("-DMA_LOG_LEVEL_2")
+
+
+SET(SRCS
+src/my-account-main.c
+src/my-account-ui-widget.c
+src/my-account-view-main.c
+)
+
+IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+       SET(CMAKE_BUILD_TYPE "Release")
+ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
+MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
+
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(/usr/include)
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+       glib-2.0
+       elementary
+       accounts-svc
+       dlog
+       vconf
+       capi-appfw-application
+       efl-extension
+)
+
+FOREACH(flag ${pkgs_CFLAGS})
+       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror -fpie")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+
+FIND_PROGRAM(UNAME NAMES uname)
+EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
+IF("${ARCH}" STREQUAL "arm")
+       ADD_DEFINITIONS("-DTARGET")
+       MESSAGE("add -DTARGET")
+ENDIF("${ARCH}" STREQUAL "arm")
+
+ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-D_A_PROJECT_")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.0.1)
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} accounts-svc)
+
+ADD_CUSTOM_TARGET(my-account.edj
+               COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/images
+               ${CMAKE_SOURCE_DIR}/data/edc/my-account.edc ${CMAKE_BINARY_DIR}/my-account.edj
+               DEPENDS ${CMAKE_SOURCE_DIR}/data/edc/my-account.edc
+)
+ADD_DEPENDENCIES(${PROJECT_NAME} my-account.edj)
+
+SET(COLORTABLEDIR "${CMAKE_BINARY_DIR}/")
+
+INSTALL(FILES ${CMAKE_BINARY_DIR}/org.tizen.my-account.xml DESTINATION /usr/share/packages)
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR})
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/images/tw_ic_popup_btn_check.png DESTINATION ${SHAREDDIR}/res)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/my-account.edj DESTINATION ${RESDIR}/edje/${PROJECT_NAME})
+
+# i18n
+ADD_SUBDIRECTORY(po)
\ No newline at end of file
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..b4c30f0
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,34 @@
+1. make the build directory
+
+  ex)
+
+   $ mkdir build
+
+
+2. change the working directory to the build directory
+
+  ex)
+
+   $ cd build
+
+
+3. run 'cmake'
+
+  $ cmake ${SOURCE_DIR} -DCMAKE_INSTALL_PREFIX=/usr
+
+  ex)
+
+   $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+
+   or
+
+   $ cmake ..
+
+
+4. make & make install
+
+  ex)
+
+   $ make -j 2 && make install
+
+
similarity index 98%
rename from wearable/app/include/my-account-debug.h
rename to include/my-account-debug.h
index 58598ac..08f4eae 100644 (file)
@@ -41,8 +41,7 @@ extern "C"
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG        "MYACCOUNT_SETTING_APP"
-
+#define LOG_TAG        "MYACCOUNT"
 #define MA_ENABLE_DLOG
 
 #ifdef MA_ENABLE_DLOG
old mode 100644 (file)
new mode 100755 (executable)
similarity index 97%
rename from wearable/app/include/my-account-main.h
rename to include/my-account-main.h
index e2fefce..eed5a95
@@ -42,7 +42,7 @@ extern "C"
 #define IMAGES_PATH    IMGDIR
 #define TABLE_PATH     TABLEDIR
 #define EDJ_FILE       EDJDIR"/"APPNAME".edj"
-#define MA_UG_NAME "setting-myaccount-efl"
+#define MA_UG_NAME "my-account"
 
 enum {
        VIEW_MAIN = 0,
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from wearable/app/include/my-account-ui-widget.h
rename to include/my-account-ui-widget.h
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from wearable/app/include/my-account-util.h
rename to include/my-account-util.h
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from wearable/app/include/my-account-view.h
rename to include/my-account-view.h
diff --git a/my-account.manifest b/my-account.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from wearable/org.tizen.my-account.xml
rename to org.tizen.my-account.xml
index 54a2018..7435d88 100644 (file)
@@ -1,3 +1,11 @@
+Name:       my-account
+Summary:    My account application
+Version:    0.0.1
+Release:    0
+Group:      main/devel
+License:    Apache-2.0
+Source0:    %{name}-%{version}.tar.gz
+
 %if "%{?profile}" == "wearable"
 %global PREFIX  %{_prefix}/apps/org.tizen.my-account/
 %endif
@@ -6,21 +14,6 @@
 ExcludeArch: %{arm} %ix86 x86_64
 %endif
 
-%if "%{?profile}" == "tv"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
-%if "%{?profile}" == "common"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
-Name:       my-account
-Summary:    My account application
-Version:    0.0.1
-Release:    0
-Group:      main/devel
-License:    Apache-2.0
-Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(syspopup)
 BuildRequires:  pkgconfig(accounts-svc)
@@ -41,7 +34,17 @@ Accounts ug of setting application.
 %prep
 %setup -q
 
+%define APPDIR /usr/apps/org.tizen.my-account
+%define BINDIR %{APPDIR}/bin
+%define LIBDIR %{APPDIR}/lib/ug
+%define RESDIR %{APPDIR}/res
+%define SHAREDDIR %{APPDIR}/shared
+%define DATADIR %{APPDIR}/shared/trusted
+
 %build
+export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden"
+
+%define PREFIX    "/usr"
 cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
 %if "%{?profile}" == "wearable"
        -DTIZEN_WEARABLE=1
@@ -50,18 +53,19 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
 make %{?jobs:-j%jobs}
 
 %install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2  %{buildroot}/usr/share/license/%{name}
 %make_install
 
-mkdir -p %{buildroot}/usr/share/license
-cp -af %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/
+%files
+%manifest my-account.manifest
+%defattr(-,root,root,-)
+/usr/share/license/%{name}
+%{LIBDIR}/*
+%{RESDIR}/*
+%{SHAREDDIR}/*
+/usr/share/packages/*.xml
 
 %post
 /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(-,root,root,-)
-%{_datadir}/license/LICENSE.APLv2
-%{_datadir}/packages/*
-%{PREFIX}/*
similarity index 90%
rename from wearable/po/CMakeLists.txt
rename to po/CMakeLists.txt
index 37ae7c9..3f36237 100644 (file)
@@ -1,5 +1,4 @@
 # for i18n
-PROJECT(my-account C)
 
 SET(POFILES
 ar.po
@@ -68,7 +67,7 @@ FOREACH(pofile ${POFILES})
                        DEPENDS ${absPofile}
        )
        INSTALL(FILES ${moFile}
-                       DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
+                       DESTINATION ${RESDIR}/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
        SET(moFiles ${moFiles} ${moFile})
 ENDFOREACH(pofile)
 
similarity index 100%
rename from wearable/po/ar.po
rename to po/ar.po
similarity index 100%
rename from wearable/po/az.po
rename to po/az.po
similarity index 100%
rename from wearable/po/bg.po
rename to po/bg.po
similarity index 100%
rename from wearable/po/ca.po
rename to po/ca.po
similarity index 100%
rename from wearable/po/cs.po
rename to po/cs.po
similarity index 100%
rename from wearable/po/da.po
rename to po/da.po
similarity index 100%
rename from wearable/po/de.po
rename to po/de.po
similarity index 100%
rename from wearable/po/el_GR.po
rename to po/el_GR.po
similarity index 100%
rename from wearable/po/en.po
rename to po/en.po
similarity index 100%
rename from wearable/po/en_PH.po
rename to po/en_PH.po
similarity index 100%
rename from wearable/po/en_US.po
rename to po/en_US.po
similarity index 100%
rename from wearable/po/es_ES.po
rename to po/es_ES.po
similarity index 100%
rename from wearable/po/es_US.po
rename to po/es_US.po
similarity index 100%
rename from wearable/po/et.po
rename to po/et.po
similarity index 100%
rename from wearable/po/eu.po
rename to po/eu.po
similarity index 100%
rename from wearable/po/fi.po
rename to po/fi.po
similarity index 100%
rename from wearable/po/fr.po
rename to po/fr.po
similarity index 100%
rename from wearable/po/fr_CA.po
rename to po/fr_CA.po
similarity index 100%
rename from wearable/po/ga.po
rename to po/ga.po
similarity index 100%
rename from wearable/po/gl.po
rename to po/gl.po
similarity index 100%
rename from wearable/po/hi.po
rename to po/hi.po
similarity index 100%
rename from wearable/po/hr.po
rename to po/hr.po
similarity index 100%
rename from wearable/po/hu.po
rename to po/hu.po
similarity index 100%
rename from wearable/po/hy.po
rename to po/hy.po
similarity index 100%
rename from wearable/po/is.po
rename to po/is.po
similarity index 100%
rename from wearable/po/it_IT.po
rename to po/it_IT.po
similarity index 100%
rename from wearable/po/ja_JP.po
rename to po/ja_JP.po
similarity index 100%
rename from wearable/po/ka.po
rename to po/ka.po
similarity index 100%
rename from wearable/po/kk.po
rename to po/kk.po
similarity index 100%
rename from wearable/po/ko_KR.po
rename to po/ko_KR.po
similarity index 100%
rename from wearable/po/lt.po
rename to po/lt.po
similarity index 100%
rename from wearable/po/lv.po
rename to po/lv.po
similarity index 100%
rename from wearable/po/mk.po
rename to po/mk.po
similarity index 100%
rename from wearable/po/nb.po
rename to po/nb.po
similarity index 100%
rename from wearable/po/nl.po
rename to po/nl.po
similarity index 100%
rename from wearable/po/pl.po
rename to po/pl.po
similarity index 100%
rename from wearable/po/pt_BR.po
rename to po/pt_BR.po
similarity index 100%
rename from wearable/po/pt_PT.po
rename to po/pt_PT.po
similarity index 100%
rename from wearable/po/ro.po
rename to po/ro.po
similarity index 100%
rename from wearable/po/ru_RU.po
rename to po/ru_RU.po
similarity index 100%
rename from wearable/po/sk.po
rename to po/sk.po
similarity index 100%
rename from wearable/po/sl.po
rename to po/sl.po
similarity index 100%
rename from wearable/po/sr.po
rename to po/sr.po
similarity index 100%
rename from wearable/po/sv.po
rename to po/sv.po
similarity index 100%
rename from wearable/po/tr_TR.po
rename to po/tr_TR.po
similarity index 100%
rename from wearable/po/uk.po
rename to po/uk.po
similarity index 100%
rename from wearable/po/uz.po
rename to po/uz.po
similarity index 100%
rename from wearable/po/zh_CN.po
rename to po/zh_CN.po
similarity index 100%
rename from wearable/po/zh_HK.po
rename to po/zh_HK.po
similarity index 100%
rename from wearable/po/zh_TW.po
rename to po/zh_TW.po
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from wearable/app/src/my-account-ui-widget.c
rename to src/my-account-ui-widget.c
old mode 100755 (executable)
new mode 100644 (file)
similarity index 98%
rename from wearable/app/src/my-account-view-main.c
rename to src/my-account-view-main.c
index a1e64e4..387ce90
@@ -499,7 +499,7 @@ void __myaccount_genlist_account_list_item_append(appdata *ad, Evas_Object *genl
 static char *__gl_text_get_registered_account_list_title(void *data, Evas_Object *obj, const char *part)
 {
        if (!strcmp(part, "elm.text"))
-               return strdup("Accounts");
+               return strdup(dgettext(MA_UG_NAME, "IDS_MA_HEADER_ACCOUNTS"));
        else
                return NULL;
 }
@@ -507,7 +507,7 @@ static char *__gl_text_get_registered_account_list_title(void *data, Evas_Object
 static char *__gl_text_get_add_account_title(void *data, Evas_Object *obj, const char *part)
 {
        if (!strcmp(part, "elm.text"))
-               return strdup("Add Accounts");
+               return strdup(dgettext(MA_UG_NAME, "IDS_MA_HEADER_ADD_ACCOUNT"));
        else
                return NULL;
 }
@@ -702,7 +702,7 @@ static char *__gl_text_get_no_content_label(void *data, Evas_Object *obj, const
        MA_DEBUG("__gl_text_get_no_content_label start");
        if (!strcmp(part, "elm.text")) {
                MA_DEBUG("__gl_text_get_no_content_label elm.text");
-               return strdup("No Account Provider");
+               return strdup(dgettext(MA_UG_NAME, "IDS_MA_NPBODY_NO_ACCOUNT_PROVIDER_APPS_INSTALLED"));
        } else {
                return NULL;
        }
@@ -797,7 +797,7 @@ void __create_genlist_add_account(void *data, Evas_Object *obj, void *event_info
 
        evas_object_show(genlist);
 
-       elm_naviframe_item_push(ad->navi_frame, "Add Accounts", NULL, NULL, genlist, "empty");
+       elm_naviframe_item_push(ad->navi_frame, dgettext(MA_UG_NAME, "IDS_MA_HEADER_ADD_ACCOUNT"), NULL, NULL, genlist, "empty");
        elm_naviframe_item_pop_cb_set(ad->navi_frame, naviframe_pop_cb, ad);
 }
 
@@ -847,7 +847,7 @@ static Evas_Object *__create_genlist_account_list(void *data)
        elm_layout_theme_set(genlist, "layout", "bottom_button", "default");
        add_button = elm_button_add(genlist);
        elm_object_style_set(add_button, "bottom");
-       elm_object_text_set(add_button, "ADD");
+       elm_object_text_set(add_button, dgettext(MA_UG_NAME, "IDS_MA_HEADER_ADD_ACCOUNT"));
        elm_object_part_content_set(genlist, "elm.swallow.button", add_button);
        evas_object_smart_callback_add(add_button, "clicked", __create_genlist_add_account, ad);
 
@@ -870,7 +870,7 @@ bool _myaccount_view_main_create(void *data)
        /* Draw UI */
        ad->main_genlist = __create_genlist_account_list(ad);
 
-       elm_naviframe_item_push(ad->navi_frame, "Accounts", NULL, NULL, ad->main_genlist, "empty");
+       elm_naviframe_item_push(ad->navi_frame, dgettext(MA_UG_NAME, "IDS_MA_HEADER_ACCOUNTS"), NULL, NULL, ad->main_genlist, "empty");
 
        return true;
 }
diff --git a/wearable/CMakeLists.txt b/wearable/CMakeLists.txt
deleted file mode 100755 (executable)
index 4272a4a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(BINDIR "${PREFIX}/bin")
-SET(RESDIR "${PREFIX}/res")
-SET(LOCALEDIR "${RESDIR}/locale")
-SET(IMGDIR "${RESDIR}/images")
-SET(EDJDIR "${RESDIR}/edje")
-SET(ICONDIR "${CMAKE_SHARE_PREFIX}/icons/default/small")
-SET(XMLDIR "${CMAKE_SHARE_PREFIX}/packages")
-SET(DATADIR "${CMAKE_DATA_PREFIX}")
-SET(TABLEDIR "${PREFIX}/shared/res/tables")
-
-ADD_DEFINITIONS("-DPACKAGE=\"my-account\"")
-ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
-ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
-ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
-ADD_DEFINITIONS("-DIMGDIR=\"${IMGDIR}\"")
-ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
-ADD_DEFINITIONS("-DICONDIR=\"${ICONDIR}\"")
-ADD_DEFINITIONS("-DDATADIR=\"${DATADIR}\"")
-ADD_DEFINITIONS("-DTABLEDIR=\"${TABLEDIR}\"")
-
-IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
-        SET(CMAKE_BUILD_TYPE "Debug")
-ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
-MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
-
-#------- for development --------
-ADD_DEFINITIONS("-DMA_LOG_LEVEL_2")
-#--------------------------------
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
-SET(CMAKE_C_FLAGS_RELEASE "-O2")
-
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.tizen.my-account.xml DESTINATION /usr/share/packages/)
-
-# source file
-ADD_SUBDIRECTORY(app)
-ADD_SUBDIRECTORY(po)
-
-# End of a file
diff --git a/wearable/app/CMakeLists.txt b/wearable/app/CMakeLists.txt
deleted file mode 100644 (file)
index 2dfa95c..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(my-account C)
-
-SET(SRCS
-src/my-account-main.c
-src/my-account-ui-widget.c
-src/my-account-view-main.c
-)
-
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-# include library +
-SET(dependents "glib-2.0 elementary efl-extension dlog vconf capi-appfw-application accounts-svc")
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs_app REQUIRED
-${dependents}
-)
-# include library -
-
-FOREACH(flag ${pkgs_app_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE -Wl,-rpath,${LIBDIR}")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-
-FIND_PROGRAM(UNAME NAMES uname)
-EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" STREQUAL "arm")
-       ADD_DEFINITIONS("-DTARGET")
-       MESSAGE("add -DTARGET")
-ENDIF("${ARCH}" STREQUAL "arm")
-ADD_DEFINITIONS("-fpie")
-MESSAGE("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
-
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_app_LDFLAGS} "-pie")
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-
-# install image
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/images/tw_ic_popup_btn_check.png DESTINATION ${IMGDIR})
-
-ADD_SUBDIRECTORY(data)
diff --git a/wearable/app/data/CMakeLists.txt b/wearable/app/data/CMakeLists.txt
deleted file mode 100644 (file)
index 915c822..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-ADD_CUSTOM_TARGET(${PROJECT_NAME}.edj
-               COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images
-               ${CMAKE_CURRENT_SOURCE_DIR}/edc/${PROJECT_NAME}.edc ${PROJECT_NAME}.edj
-               DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/edc/${PROJECT_NAME}.edc
-)
-ADD_DEPENDENCIES(${PROJECT_NAME} ${PROJECT_NAME}.edj)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.edj DESTINATION ${EDJDIR})
-
-# End of a file