diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2016-07-08 10:05:17 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2016-07-08 10:05:17 +0900 |
commit | 2a921d30fe527a194e4d7c0e79796b003abfef2f (patch) | |
tree | 53de541922699596d50516ec8b03fadf671aa76b | |
parent | 7260e8f1cc6c9eefa8c988e55962faeae21f4628 (diff) | |
download | privacy-setting-2a921d30fe527a194e4d7c0e79796b003abfef2f.tar.gz privacy-setting-2a921d30fe527a194e4d7c0e79796b003abfef2f.tar.bz2 privacy-setting-2a921d30fe527a194e4d7c0e79796b003abfef2f.zip |
Update language files and change menu title to support language translation
Change-Id: I85aa7a0d570c558ff3eb5000fae5c61cb5f8997e
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rwxr-xr-x | po/ar.po | 3 | ||||
-rwxr-xr-x | po/az.po | 3 | ||||
-rwxr-xr-x | po/bg.po | 3 | ||||
-rwxr-xr-x | po/ca.po | 3 | ||||
-rwxr-xr-x | po/cs.po | 3 | ||||
-rwxr-xr-x | po/da.po | 3 | ||||
-rwxr-xr-x | po/de.po | 3 | ||||
-rwxr-xr-x | po/el_GR.po | 3 | ||||
-rwxr-xr-x | po/en.po | 3 | ||||
-rwxr-xr-x | po/en_PH.po | 3 | ||||
-rwxr-xr-x | po/en_US.po | 3 | ||||
-rwxr-xr-x | po/es_ES.po | 3 | ||||
-rwxr-xr-x | po/es_US.po | 3 | ||||
-rwxr-xr-x | po/et.po | 3 | ||||
-rwxr-xr-x | po/eu.po | 3 | ||||
-rwxr-xr-x | po/fi.po | 3 | ||||
-rwxr-xr-x | po/fr.po | 3 | ||||
-rwxr-xr-x | po/fr_CA.po | 3 | ||||
-rwxr-xr-x | po/ga.po | 3 | ||||
-rwxr-xr-x | po/gl.po | 3 | ||||
-rwxr-xr-x | po/hi.po | 3 | ||||
-rwxr-xr-x | po/hr.po | 3 | ||||
-rwxr-xr-x | po/hu.po | 3 | ||||
-rwxr-xr-x | po/hy.po | 3 | ||||
-rwxr-xr-x | po/is.po | 3 | ||||
-rwxr-xr-x | po/it_IT.po | 3 | ||||
-rwxr-xr-x | po/ja_JP.po | 3 | ||||
-rwxr-xr-x | po/ka.po | 3 | ||||
-rwxr-xr-x | po/kk.po | 3 | ||||
-rwxr-xr-x | po/ko_KR.po | 3 | ||||
-rwxr-xr-x | po/lt.po | 3 | ||||
-rwxr-xr-x | po/lv.po | 3 | ||||
-rwxr-xr-x | po/mk.po | 3 | ||||
-rwxr-xr-x | po/nb.po | 3 | ||||
-rwxr-xr-x | po/nl.po | 3 | ||||
-rwxr-xr-x | po/pl.po | 3 | ||||
-rwxr-xr-x | po/pt_BR.po | 3 | ||||
-rwxr-xr-x | po/pt_PT.po | 3 | ||||
-rwxr-xr-x | po/ro.po | 3 | ||||
-rwxr-xr-x | po/ru_RU.po | 3 | ||||
-rwxr-xr-x | po/sk.po | 3 | ||||
-rwxr-xr-x | po/sl.po | 3 | ||||
-rwxr-xr-x | po/sr.po | 3 | ||||
-rwxr-xr-x | po/sv.po | 3 | ||||
-rwxr-xr-x | po/tr_TR.po | 3 | ||||
-rwxr-xr-x | po/uk.po | 3 | ||||
-rwxr-xr-x | po/uz.po | 3 | ||||
-rwxr-xr-x | po/zh_CN.po | 3 | ||||
-rwxr-xr-x | po/zh_HK.po | 3 | ||||
-rwxr-xr-x | po/zh_TW.po | 3 | ||||
-rwxr-xr-x | ui/include/privacy_view.h | 1 | ||||
-rwxr-xr-x | ui/src/privacy_guard_list_view.c | 2 | ||||
-rw-r--r-- | ui/src/privacy_list_view.c | 2 | ||||
-rwxr-xr-x | ui/src/privacy_menu_view.c | 11 |
54 files changed, 159 insertions, 7 deletions
@@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "الخصوصية والأمان" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "الأوقات" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Məxfilik və təhlükəsizlik" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "dəfə" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Поверителност и безопас." +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "пъти" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privadesa i seguretat" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "vegades" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Soukromí a bezpečnost" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "krát" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Fortrolighed og sikkerhed" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "gange" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Datenschutz & Sicherheit" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "mal" + diff --git a/po/el_GR.po b/po/el_GR.po index b698161..e85e252 100755 --- a/po/el_GR.po +++ b/po/el_GR.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Απόρρητο και ασφάλεια" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "φορές" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacy and safety" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "times" + diff --git a/po/en_PH.po b/po/en_PH.po index c1a3ad9..7fa3652 100755 --- a/po/en_PH.po +++ b/po/en_PH.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacy and safety" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "times" + diff --git a/po/en_US.po b/po/en_US.po index c1a3ad9..7fa3652 100755 --- a/po/en_US.po +++ b/po/en_US.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacy and safety" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "times" + diff --git a/po/es_ES.po b/po/es_ES.po index d020c17..c129067 100755 --- a/po/es_ES.po +++ b/po/es_ES.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacidad y seguridad" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "veces" + diff --git a/po/es_US.po b/po/es_US.po index d020c17..c129067 100755 --- a/po/es_US.po +++ b/po/es_US.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacidad y seguridad" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "veces" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privaatsus ja turvalisus" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "korda" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Pribatut. eta segurtasuna" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "aldiz" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Yksityisyys ja turvallisuus" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "kertaa" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Confidentialité/Protection" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "fois" + diff --git a/po/fr_CA.po b/po/fr_CA.po index 3683aeb..5b25337 100755 --- a/po/fr_CA.po +++ b/po/fr_CA.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Confidentialité/Sécurité" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "fois" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Príobháid is sábháilteacht" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "uaireanta" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacidade e seguridade" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "veces" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "गोपनीयता और सुरक्षा" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "बार" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privatnost i sigurnost" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "puta" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Adatvédelem és biztonság" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "alkalommal" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Գաղտնիություն և անվտանգ." +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "անգամ" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Persónuvernd og öryggi" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "sinnum" + diff --git a/po/it_IT.po b/po/it_IT.po index 73ab709..5552372 100755 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacy ed emergenza" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "volte" + diff --git a/po/ja_JP.po b/po/ja_JP.po index f247df6..748e00c 100755 --- a/po/ja_JP.po +++ b/po/ja_JP.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "プライバシーと安全" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "回" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "კონფიდენციალურობა, დაცვა" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "დროები" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Құпия және қауіпсіз" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "рет" + diff --git a/po/ko_KR.po b/po/ko_KR.po index 96cc9f3..10f6bb5 100755 --- a/po/ko_KR.po +++ b/po/ko_KR.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "개인정보 보호 및 안전" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "회" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privatumas ir sauga" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "kartai" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Konfidenc. un drošība" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "reizes" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Приватност и безбедност" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "пати" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Personvern og sikkerhet" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "ganger" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacy en veiligheid" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "keer" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Prywatność" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "razy" + diff --git a/po/pt_BR.po b/po/pt_BR.po index 93a05f3..2d6f799 100755 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacidade e segurança" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "vezes" + diff --git a/po/pt_PT.po b/po/pt_PT.po index 93a05f3..2d6f799 100755 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privacidade e segurança" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "vezes" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Confid. și siguranță" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "ori" + diff --git a/po/ru_RU.po b/po/ru_RU.po index 2d9cd6f..de24347 100755 --- a/po/ru_RU.po +++ b/po/ru_RU.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Конфиденц. и безопасность" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "раз." + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Súkromie a bezpečnosť" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "krát" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Zasebnost in varnost" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "krat" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Privatnost i bezbednost" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "puta" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Sekretess och säkerhet" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "gånger" + diff --git a/po/tr_TR.po b/po/tr_TR.po index 38064c8..ffb4eff 100755 --- a/po/tr_TR.po +++ b/po/tr_TR.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Gizlilik ve güvenlik" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "defa" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Конфіденційність і безпека" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "раз" + @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "Maxfiylik va xavfsizlik" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "marta" + diff --git a/po/zh_CN.po b/po/zh_CN.po index f6fd699..d560348 100755 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "隐私和安全" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "次" + diff --git a/po/zh_HK.po b/po/zh_HK.po index 149a5ac..9b2faad 100755 --- a/po/zh_HK.po +++ b/po/zh_HK.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "私隱與安全" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "時間" + diff --git a/po/zh_TW.po b/po/zh_TW.po index c213c06..653936e 100755 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -1,3 +1,6 @@ msgid "IDS_ST_HEADER_PRIVACY_AND_SAFETY_ABB" msgstr "隱私與安全" +msgid "IDS_CLD_OPT_TIMES_LC" +msgstr "時間" + diff --git a/ui/include/privacy_view.h b/ui/include/privacy_view.h index e252499..484d571 100755 --- a/ui/include/privacy_view.h +++ b/ui/include/privacy_view.h @@ -45,6 +45,7 @@ typedef struct item_data { char *title; char *pkgid; char *privacy; + char *menu; char *icon; bool status; } item_data_s; diff --git a/ui/src/privacy_guard_list_view.c b/ui/src/privacy_guard_list_view.c index 50e335e..2d5f87a 100755 --- a/ui/src/privacy_guard_list_view.c +++ b/ui/src/privacy_guard_list_view.c @@ -88,7 +88,7 @@ void create_privacy_guard_list_view(struct app_data_s *ad) evas_object_show(genlist); /* Change "Privacy Setting" to proper DID : use dgettext() */ - Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, PRIVACY_MENU_ACCESS, common_back_btn_add(ad), NULL, genlist, NULL); + Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, dgettext("privacy-setting", PRIVACY_MENU_ACCESS), common_back_btn_add(ad), NULL, genlist, NULL); elm_object_item_domain_text_translatable_set(nf_it, PACKAGE, EINA_TRUE); } diff --git a/ui/src/privacy_list_view.c b/ui/src/privacy_list_view.c index 2c986c3..1b57565 100644 --- a/ui/src/privacy_list_view.c +++ b/ui/src/privacy_list_view.c @@ -89,7 +89,7 @@ void create_privacy_list_view(struct app_data_s *ad) evas_object_show(genlist); /* Change "Privacy Setting" to proper DID : use dgettext() */ - Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, "Privacy Setting", common_back_btn_add(ad), NULL, genlist, NULL); + Elm_Object_Item *nf_it = elm_naviframe_item_push(ad->nf, dgettext("privacy-setting", PRIVACY_MENU_SETTING), common_back_btn_add(ad), NULL, genlist, NULL); elm_object_item_domain_text_translatable_set(nf_it, PACKAGE, EINA_TRUE); } diff --git a/ui/src/privacy_menu_view.c b/ui/src/privacy_menu_view.c index b550369..1fa5e84 100755 --- a/ui/src/privacy_menu_view.c +++ b/ui/src/privacy_menu_view.c @@ -59,7 +59,7 @@ static void menu_selected_cb(void *data, Evas_Object *obj, void *event_info) /* Get selected privacy */ Elm_Object_Item *ei = event_info; item_data_s *selected_id = elm_object_item_data_get(ei); - LOGD("%s is selected, index = %d", selected_id->title, selected_id->index); + LOGD("%s is selected, index = %d", selected_id->menu, selected_id->index); /* Unhighlight selected item */ elm_genlist_item_selected_set(ei, EINA_FALSE); @@ -70,12 +70,12 @@ static void menu_selected_cb(void *data, Evas_Object *obj, void *event_info) int ret = privilege_info_get_privacy_list(&(ad->privacy_list)); log_if(ret != PRVMGR_ERR_NONE, 1, "Failed to get privacy_list"); - if (strstr(selected_id->title, PRIVACY_MENU_SETTING) != NULL) { + if (strstr(selected_id->menu, PRIVACY_MENU_SETTING) != NULL) { create_privacy_list_view(ad); - } else if (strstr(selected_id->title, PRIVACY_MENU_ACCESS) != NULL) {/* privacy guard */ + } else if (strstr(selected_id->menu, PRIVACY_MENU_ACCESS) != NULL) {/* privacy guard */ create_privacy_guard_list_view(ad); } else { - LOGE("selected_id->title = %s, no matching menu", selected_id->title); + LOGE("selected_id->title = %s, no matching menu", selected_id->menu); } } @@ -101,7 +101,8 @@ void create_privacy_menu_view(struct app_data_s *ad) for (i = 0; i < (int)g_list_length(privacy_menu_list); ++i) { item_data_s *id = calloc(sizeof(item_data_s), 1); id->index = i; - id->title = (char*)g_list_nth_data(privacy_menu_list, i); + id->menu = (char*)g_list_nth_data(privacy_menu_list, i); + id->title = strdup(dgettext("privacy-setting", id->menu)); it = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, menu_selected_cb, ad); log_if(it == NULL, 1, "Error in elm_genlist_item_append"); } |