Modify to support language translation 53/78653/1
authorYunjin Lee <yunjin-.lee@samsung.com>
Wed, 6 Jul 2016 09:56:40 +0000 (18:56 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Wed, 6 Jul 2016 09:56:40 +0000 (18:56 +0900)
Change-Id: Ia954094556c2ff0fce5ef59ac1509cb64d1a0502
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
59 files changed:
CMakeLists.txt
packaging/org.tizen.privacy-setting.spec
po/CMakeLists.txt
po/ar.po [new file with mode: 0755]
po/az.po [new file with mode: 0755]
po/bg.po [new file with mode: 0755]
po/ca.po [new file with mode: 0755]
po/cs.po [new file with mode: 0755]
po/da.po [new file with mode: 0755]
po/de.po [new file with mode: 0755]
po/el_GR.po [new file with mode: 0755]
po/en.po [new file with mode: 0755]
po/en_PH.po [new file with mode: 0755]
po/en_US.po [new file with mode: 0755]
po/es_ES.po [new file with mode: 0755]
po/es_US.po [new file with mode: 0755]
po/et.po [new file with mode: 0755]
po/eu.po [new file with mode: 0755]
po/fi.po [new file with mode: 0755]
po/fr.po [new file with mode: 0755]
po/fr_CA.po [new file with mode: 0755]
po/ga.po [new file with mode: 0755]
po/gl.po [new file with mode: 0755]
po/hi.po [new file with mode: 0755]
po/hr.po [new file with mode: 0755]
po/hu.po [new file with mode: 0755]
po/hy.po [new file with mode: 0755]
po/is.po [new file with mode: 0755]
po/it_IT.po [new file with mode: 0755]
po/ja_JP.po [new file with mode: 0755]
po/ka.po [new file with mode: 0755]
po/kk.po [new file with mode: 0755]
po/ko_KR.po [new file with mode: 0755]
po/lt.po [new file with mode: 0755]
po/lv.po [new file with mode: 0755]
po/mk.po [new file with mode: 0755]
po/nb.po [new file with mode: 0755]
po/nl.po [new file with mode: 0755]
po/pl.po [new file with mode: 0755]
po/pt_BR.po [new file with mode: 0755]
po/pt_PT.po [new file with mode: 0755]
po/ro.po [new file with mode: 0755]
po/ru_RU.po [new file with mode: 0755]
po/sk.po [new file with mode: 0755]
po/sl.po [new file with mode: 0755]
po/sr.po [new file with mode: 0755]
po/sv.po [new file with mode: 0755]
po/tr_TR.po [new file with mode: 0755]
po/uk.po [new file with mode: 0755]
po/uz.po [new file with mode: 0755]
po/zh_CN.po [new file with mode: 0755]
po/zh_HK.po [new file with mode: 0755]
po/zh_TW.po [new file with mode: 0755]
ui/include/privacy_view.h
ui/src/privacy_guard_list_view.c
ui/src/privacy_guard_package_list_view.c
ui/src/privacy_list_view.c
ui/src/privacy_menu_view.c
ui/src/privacy_package_list_view.c

index 6ae4f504a36dcbf2dce66b21ff93c62cdcac4ad8..9d2bd930f0485c8984b2abf3a8e75cc17a2662d5 100644 (file)
@@ -45,7 +45,7 @@ SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
 #ADD_DEFINITIONS("-DUG_WAYLAND")
 
 ADD_SUBDIRECTORY(ui)
-#ADD_SUBDIRECTORY(po)
+ADD_SUBDIRECTORY(po)
 
 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/icon DESTINATION DESTINATION ${TZ_SYS_RO_APP}/org.tizen.privacy-setting/res FILES_MATCHING PATTERN "*.png")
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/packaging/org.tizen.privacy-setting.xml DESTINATION ${TZ_SYS_RO_PACKAGES}/)
index 2d2742a2beb194efa2a5a346686b74f7e2309243..3349f81c133a00a79d9790a802ce2d2b314fff68 100755 (executable)
@@ -79,5 +79,5 @@ echo "cyad done"
 %{TZ_SYS_RO_PACKAGES}/%name.xml
 %{TZ_SYS_RO_APP}/%{name}/bin/
 %{TZ_SYS_RO_APP}/%{name}/res/icon/
-#%{PREFIX}/*
+%{PREFIX}/res/*
 #%TZ_SYS_RO_UG/res/locale/*
index 03f1780e0c7800cbb94ef985d36989728759fbf4..9aaa1c7d6b3d7136d675e645f2b0199d967af72d 100755 (executable)
@@ -1,5 +1,54 @@
 SET(POFILES
-       #TO BE FILLED
+       ar.po
+       az.po
+       bg.po
+       ca.po
+       cs.po
+       da.po
+       de.po
+       el_GR.po
+       en.po
+       en_PH.po
+       en_US.po
+       es_ES.po
+       es_US.po
+       et.po
+       eu.po
+       fi.po
+       fr.po
+       fr_CA.po
+       ga.po
+       gl.po
+       hi.po
+       hr.po
+       hu.po
+       hy.po
+       is.po
+       it_IT.po
+       ja_JP.po
+       ka.po
+       kk.po
+       ko_KR.po
+       lt.po
+       lv.po
+       mk.po
+       nb.po
+       nl.po
+       pl.po
+       pt_BR.po
+       pt_PT.po
+       ro.po
+       ru_RU.po
+       sk.po
+       sl.po
+       sr.po
+       sv.po
+       tr_TR.po
+       uk.po
+       uz.po
+       zh_CN.po
+       zh_HK.po
+       zh_TW.po
 )
 
 SET(MSGFMT "/usr/bin/msgfmt")
diff --git a/po/ar.po b/po/ar.po
new file mode 100755 (executable)
index 0000000..fb4017a
--- /dev/null
+++ b/po/ar.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "الخصوصية والأمان"
+
diff --git a/po/az.po b/po/az.po
new file mode 100755 (executable)
index 0000000..3d9ddd5
--- /dev/null
+++ b/po/az.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Məxfilik və təhlükəsizlik"
+
diff --git a/po/bg.po b/po/bg.po
new file mode 100755 (executable)
index 0000000..f069f9f
--- /dev/null
+++ b/po/bg.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Поверителност и безопас."
+
diff --git a/po/ca.po b/po/ca.po
new file mode 100755 (executable)
index 0000000..6e51943
--- /dev/null
+++ b/po/ca.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privadesa i seguretat"
+
diff --git a/po/cs.po b/po/cs.po
new file mode 100755 (executable)
index 0000000..3378865
--- /dev/null
+++ b/po/cs.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Soukromí a bezpečnost"
+
diff --git a/po/da.po b/po/da.po
new file mode 100755 (executable)
index 0000000..84255bf
--- /dev/null
+++ b/po/da.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Fortrolighed og sikkerhed"
+
diff --git a/po/de.po b/po/de.po
new file mode 100755 (executable)
index 0000000..366e1d5
--- /dev/null
+++ b/po/de.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Datenschutz & Sicherheit"
+
diff --git a/po/el_GR.po b/po/el_GR.po
new file mode 100755 (executable)
index 0000000..b698161
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Απόρρητο και ασφάλεια"
+
diff --git a/po/en.po b/po/en.po
new file mode 100755 (executable)
index 0000000..c1a3ad9
--- /dev/null
+++ b/po/en.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacy and safety"
+
diff --git a/po/en_PH.po b/po/en_PH.po
new file mode 100755 (executable)
index 0000000..c1a3ad9
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacy and safety"
+
diff --git a/po/en_US.po b/po/en_US.po
new file mode 100755 (executable)
index 0000000..c1a3ad9
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacy and safety"
+
diff --git a/po/es_ES.po b/po/es_ES.po
new file mode 100755 (executable)
index 0000000..d020c17
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacidad y seguridad"
+
diff --git a/po/es_US.po b/po/es_US.po
new file mode 100755 (executable)
index 0000000..d020c17
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacidad y seguridad"
+
diff --git a/po/et.po b/po/et.po
new file mode 100755 (executable)
index 0000000..70181d2
--- /dev/null
+++ b/po/et.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privaatsus ja turvalisus"
+
diff --git a/po/eu.po b/po/eu.po
new file mode 100755 (executable)
index 0000000..8a5606c
--- /dev/null
+++ b/po/eu.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Pribatut. eta segurtasuna"
+
diff --git a/po/fi.po b/po/fi.po
new file mode 100755 (executable)
index 0000000..599013f
--- /dev/null
+++ b/po/fi.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Yksityisyys ja turvallisuus"
+
diff --git a/po/fr.po b/po/fr.po
new file mode 100755 (executable)
index 0000000..8effe9d
--- /dev/null
+++ b/po/fr.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Confidentialité/Protection"
+
diff --git a/po/fr_CA.po b/po/fr_CA.po
new file mode 100755 (executable)
index 0000000..3683aeb
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Confidentialité/Sécurité"
+
diff --git a/po/ga.po b/po/ga.po
new file mode 100755 (executable)
index 0000000..e994c7f
--- /dev/null
+++ b/po/ga.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Príobháid is sábháilteacht"
+
diff --git a/po/gl.po b/po/gl.po
new file mode 100755 (executable)
index 0000000..bd92016
--- /dev/null
+++ b/po/gl.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacidade e seguridade"
+
diff --git a/po/hi.po b/po/hi.po
new file mode 100755 (executable)
index 0000000..893cc48
--- /dev/null
+++ b/po/hi.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "गोपनीयता और सुरक्षा"
+
diff --git a/po/hr.po b/po/hr.po
new file mode 100755 (executable)
index 0000000..84d1677
--- /dev/null
+++ b/po/hr.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privatnost i sigurnost"
+
diff --git a/po/hu.po b/po/hu.po
new file mode 100755 (executable)
index 0000000..5e1c295
--- /dev/null
+++ b/po/hu.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Adatvédelem és biztonság"
+
diff --git a/po/hy.po b/po/hy.po
new file mode 100755 (executable)
index 0000000..7ed8085
--- /dev/null
+++ b/po/hy.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Գաղտնիություն և անվտանգ."
+
diff --git a/po/is.po b/po/is.po
new file mode 100755 (executable)
index 0000000..6a2c1d0
--- /dev/null
+++ b/po/is.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Persónuvernd og öryggi"
+
diff --git a/po/it_IT.po b/po/it_IT.po
new file mode 100755 (executable)
index 0000000..73ab709
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacy ed emergenza"
+
diff --git a/po/ja_JP.po b/po/ja_JP.po
new file mode 100755 (executable)
index 0000000..f247df6
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "プライバシーと安全"
+
diff --git a/po/ka.po b/po/ka.po
new file mode 100755 (executable)
index 0000000..0250e59
--- /dev/null
+++ b/po/ka.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "კონფიდენციალურობა, დაცვა"
+
diff --git a/po/kk.po b/po/kk.po
new file mode 100755 (executable)
index 0000000..c347aab
--- /dev/null
+++ b/po/kk.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Құпия және қауіпсіз"
+
diff --git a/po/ko_KR.po b/po/ko_KR.po
new file mode 100755 (executable)
index 0000000..96cc9f3
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "개인정보 보호 및 안전"
+
diff --git a/po/lt.po b/po/lt.po
new file mode 100755 (executable)
index 0000000..999560c
--- /dev/null
+++ b/po/lt.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privatumas ir sauga"
+
diff --git a/po/lv.po b/po/lv.po
new file mode 100755 (executable)
index 0000000..83488df
--- /dev/null
+++ b/po/lv.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Konfidenc. un drošība"
+
diff --git a/po/mk.po b/po/mk.po
new file mode 100755 (executable)
index 0000000..b2075ec
--- /dev/null
+++ b/po/mk.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Приватност и безбедност"
+
diff --git a/po/nb.po b/po/nb.po
new file mode 100755 (executable)
index 0000000..74a6663
--- /dev/null
+++ b/po/nb.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Personvern og sikkerhet"
+
diff --git a/po/nl.po b/po/nl.po
new file mode 100755 (executable)
index 0000000..45a27a7
--- /dev/null
+++ b/po/nl.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacy en veiligheid"
+
diff --git a/po/pl.po b/po/pl.po
new file mode 100755 (executable)
index 0000000..f53ebbe
--- /dev/null
+++ b/po/pl.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Prywatność"
+
diff --git a/po/pt_BR.po b/po/pt_BR.po
new file mode 100755 (executable)
index 0000000..93a05f3
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacidade e segurança"
+
diff --git a/po/pt_PT.po b/po/pt_PT.po
new file mode 100755 (executable)
index 0000000..93a05f3
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privacidade e segurança"
+
diff --git a/po/ro.po b/po/ro.po
new file mode 100755 (executable)
index 0000000..9c72400
--- /dev/null
+++ b/po/ro.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Confid. și siguranță"
+
diff --git a/po/ru_RU.po b/po/ru_RU.po
new file mode 100755 (executable)
index 0000000..2d9cd6f
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Конфиденц. и безопасность"
+
diff --git a/po/sk.po b/po/sk.po
new file mode 100755 (executable)
index 0000000..003e36d
--- /dev/null
+++ b/po/sk.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Súkromie a bezpečnosť"
+
diff --git a/po/sl.po b/po/sl.po
new file mode 100755 (executable)
index 0000000..c96c77e
--- /dev/null
+++ b/po/sl.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Zasebnost in varnost"
+
diff --git a/po/sr.po b/po/sr.po
new file mode 100755 (executable)
index 0000000..cffed70
--- /dev/null
+++ b/po/sr.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Privatnost i bezbednost"
+
diff --git a/po/sv.po b/po/sv.po
new file mode 100755 (executable)
index 0000000..47d7ed7
--- /dev/null
+++ b/po/sv.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Sekretess och säkerhet"
+
diff --git a/po/tr_TR.po b/po/tr_TR.po
new file mode 100755 (executable)
index 0000000..38064c8
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Gizlilik ve güvenlik"
+
diff --git a/po/uk.po b/po/uk.po
new file mode 100755 (executable)
index 0000000..824224a
--- /dev/null
+++ b/po/uk.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Конфіденційність і безпека"
+
diff --git a/po/uz.po b/po/uz.po
new file mode 100755 (executable)
index 0000000..c419a1e
--- /dev/null
+++ b/po/uz.po
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "Maxfiylik va xavfsizlik"
+
diff --git a/po/zh_CN.po b/po/zh_CN.po
new file mode 100755 (executable)
index 0000000..f6fd699
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "隐私和安全"
+
diff --git a/po/zh_HK.po b/po/zh_HK.po
new file mode 100755 (executable)
index 0000000..149a5ac
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "私隱與安全"
+
diff --git a/po/zh_TW.po b/po/zh_TW.po
new file mode 100755 (executable)
index 0000000..c213c06
--- /dev/null
@@ -0,0 +1,3 @@
+msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB"
+msgstr "隱私與安全"
+
index 9033a2ea1a2fba658d6ff7af969eb4e57a406981..e252499868da7dbd3f4191a4db27570cf2a834d3 100755 (executable)
@@ -44,6 +44,7 @@ typedef struct item_data {
        int index;
        char *title;
        char *pkgid;
+       char *privacy;
        char *icon;
        bool status;
 } item_data_s;
@@ -65,7 +66,7 @@ typedef struct {
        bool status;
 } pg_item_data_s;
 
-void create_privacy_package_list_view(struct app_data_s *ad, item_data_s *selected_id);
+void create_privacy_package_list_view(struct app_data_s *ad);
 
 void create_privacy_list_view(struct app_data_s *ad);
 
index 5ffc9afe774186685765c08050b183de35aa6c24..1aa17f9e1b79f1775413d7ee21d030b517a76c3a 100755 (executable)
@@ -24,6 +24,7 @@
 #include "common_utils.h"
 #include "privacy_setting.h"
 #include "privacy_view.h"
+#include "privilege_info.h"
 
 static char* gl_text_get_cb(void *data, Evas_Object *obj, const char *part)
 {
@@ -52,7 +53,7 @@ static void _privacy_selected_cb(void *data, Evas_Object *obj, void *event_info)
        struct app_data_s *ad = (struct app_data_s *)data;
        return_if(ad == NULL, , , "ad is null");
 
-       ad->privacy = (char*)selected_id->title;
+       ad->privacy = (char*)selected_id->privacy;
 
        create_privacy_guard_package_list_view(ad);
 }
@@ -74,7 +75,12 @@ void create_privacy_guard_list_view(struct app_data_s *ad)
        for (i = 0; i < (int)g_list_length(ad->privacy_list); ++i) {
                item_data_s *id = calloc(sizeof(item_data_s), 1);
                id->index = i;
-               id->title = (char*)g_list_nth_data(ad->privacy_list, i);
+               char* privacy_display = NULL;
+               id->privacy = strdup((char*)g_list_nth_data(ad->privacy_list, i));
+               LOGD("privacy = %s", id->privacy);
+               int ret = privilege_info_get_privacy_display(id->privacy, &privacy_display);
+               log_if(ret != PRVMGR_ERR_NONE, 1, "privacy_display = %s", privacy_display);
+               id->title = dgettext("privilege", privacy_display);
                it = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, _privacy_selected_cb, ad);
                log_if(it == NULL, 1, "Error in elm_genlist_item_append");
        }
index 937633e6be3aaee5238ee3d6f51519275591e106..70f29989bd0c5cfdcfad28b96703092daee7904c 100755 (executable)
@@ -21,6 +21,7 @@
  */
 
 #include <efl_extension.h>
+#include <privilege_info.h>
 #include <glib.h>
 #include <pkgmgr-info.h>
 #include <tzplatform_config.h>
@@ -244,11 +245,12 @@ void create_privacy_guard_package_list_view(struct app_data_s* ad)
        evas_object_show(genlist);
 
        /* TODO: change nf_it_title to proper DID : use dgettext() */
-       char nf_it_title[256];
-       snprintf(nf_it_title, sizeof(nf_it_title), "%s", ad->privacy);
+       char* privacy_display = NULL;
+       int ret = privilege_info_get_privacy_display(ad->privacy, &privacy_display);
+    log_if(ret != PRVMGR_ERR_NONE, 1, "privacy_display = %s", privacy_display);
 
        /* Push naviframe item */
-       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, nf_it_title, common_back_btn_add(ad), NULL, genlist, NULL);
+       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, dgettext("privilege", privacy_display), common_back_btn_add(ad), NULL, genlist, NULL);
 
        elm_object_item_domain_text_translatable_set(nf_it, PACKAGE, EINA_TRUE);
 }
index 4faa8e02d194ee04268656b0e990e9330703c3f5..2c986c31d6e6424f4ecfb1d5927959d86f5d0ad7 100644 (file)
@@ -25,6 +25,7 @@
 #include "common_utils.h"
 #include "privacy_setting.h"
 #include "privacy_view.h"
+#include "privilege_info.h"
 
 static char* gl_text_get_cb(void *data, Evas_Object *obj, const char *part)
 {
@@ -53,9 +54,9 @@ static void privacy_selected_cb(void *data, Evas_Object *obj, void *event_info)
        struct app_data_s *ad = (struct app_data_s *)data;
        return_if(ad == NULL, , , "ad is null");
 
-       ad->privacy = (char*)selected_id->title;
+       ad->privacy = (char*)selected_id->privacy;
 
-       create_privacy_package_list_view(ad, selected_id);
+       create_privacy_package_list_view(ad);
 }
 
 /*Privacy List*/
@@ -75,7 +76,12 @@ void create_privacy_list_view(struct app_data_s *ad)
        for (i = 0; i < (int)g_list_length(ad->privacy_list); ++i) {
                item_data_s *id = calloc(sizeof(item_data_s), 1);
                id->index = i;
-               id->title = (char*)g_list_nth_data(ad->privacy_list, i);
+               char* privacy_display = NULL;
+               id->privacy = strdup((char*)g_list_nth_data(ad->privacy_list, i));
+               LOGD("privacy = %s", id->privacy);
+               int ret = privilege_info_get_privacy_display(id->privacy, &privacy_display);
+               log_if(ret != PRVMGR_ERR_NONE, 1, "privacy_display = %s", privacy_display);
+               id->title = dgettext("privilege", privacy_display);
                it = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, privacy_selected_cb, ad);
                log_if(it == NULL, 1, "Error in elm_genlist_item_append");
        }
index e86e216c4eedc025770544d5cb82e5eaa879b189..9dc6cd19b44d716f6103777c6ef2e08e52f5da3f 100755 (executable)
@@ -109,7 +109,8 @@ void create_privacy_menu_view(struct app_data_s *ad)
        evas_object_show(genlist);
 
        /* Change "Privacy & Safety" to proper DID : use dgettext() */
-       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, "Privacy &amp; Safety", common_back_btn_add(ad), NULL, genlist, NULL);
+       char* title = dgettext("privacy-setting", "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB");
+       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, title, common_back_btn_add(ad), NULL, genlist, NULL);
        elm_object_item_domain_text_translatable_set(nf_it, PACKAGE, EINA_TRUE);
 
        elm_naviframe_item_pop_cb_set(nf_it, quit_cb, ad);
index 16950ac0eee618fe980bb5f5b7356e4e6c133202..13e2a9b88ae69e127109b4be00310c9a437468b3 100644 (file)
@@ -431,7 +431,7 @@ static int get_uniq_pkg_list_by_privacy(const char* privacy)
 
        return ret;
 }
-void create_privacy_package_list_view(struct app_data_s* ad, item_data_s *selected_id)
+void create_privacy_package_list_view(struct app_data_s* ad)
 {
        /* Add genlist */
        Evas_Object *genlist = common_genlist_add(ad->nf);
@@ -484,11 +484,12 @@ void create_privacy_package_list_view(struct app_data_s* ad, item_data_s *select
        evas_object_show(genlist);
 
        /* TBD: change nf_it_title to proper DID : use dgettext() */
-       char nf_it_title[256];
-       snprintf(nf_it_title, sizeof(nf_it_title), "%s", ad->privacy);
+       char* privacy_display = NULL;
+       ret = privilege_info_get_privacy_display(ad->privacy, &privacy_display);
+    log_if(ret != PRVMGR_ERR_NONE, 1, "privacy_display = %s", privacy_display);
 
        /* Push naviframe item */
-       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, nf_it_title, common_back_btn_add(ad), NULL, genlist, NULL);
+       Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, dgettext("privilege", privacy_display), common_back_btn_add(ad), NULL, genlist, NULL);
 
        /* Add button to save privacy package policy changes */
        save_btn = elm_button_add(ad->nf);