From: Sergei Kobec Date: Thu, 11 Aug 2016 08:45:54 +0000 (+0300) Subject: TizenRefApp-6811 Implement import from Sim card functionality X-Git-Tag: submit/tizen/20160826.132643~1^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F83243%2F4;p=profile%2Fmobile%2Fapps%2Fnative%2Fphone-contacts.git TizenRefApp-6811 Implement import from Sim card functionality Change-Id: Id2c5b41560c6f5c1081f0bf80fbb35ae09bd311a Signed-off-by: Sergei Kobec --- diff --git a/contacts-app/res/po/ar.po b/contacts-app/res/po/ar.po index fe637fb..1f568dd 100644 --- a/contacts-app/res/po/ar.po +++ b/contacts-app/res/po/ar.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "أخت" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "بطاقة SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "مشاركة" diff --git a/contacts-app/res/po/az.po b/contacts-app/res/po/az.po index f0ab918..52893f6 100644 --- a/contacts-app/res/po/az.po +++ b/contacts-app/res/po/az.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Bacı" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kart" + msgid "IDS_PB_OPT_SHARE" msgstr "Paylaş" diff --git a/contacts-app/res/po/bg.po b/contacts-app/res/po/bg.po index 5aee14b..df22374 100644 --- a/contacts-app/res/po/bg.po +++ b/contacts-app/res/po/bg.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Сестра" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM карта" + msgid "IDS_PB_OPT_SHARE" msgstr "Споделяне" diff --git a/contacts-app/res/po/ca.po b/contacts-app/res/po/ca.po index cc2a863..a1e53ed 100644 --- a/contacts-app/res/po/ca.po +++ b/contacts-app/res/po/ca.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Germana" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Targeta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Compartir" diff --git a/contacts-app/res/po/cs.po b/contacts-app/res/po/cs.po index 8e09c49..235d513 100644 --- a/contacts-app/res/po/cs.po +++ b/contacts-app/res/po/cs.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sestra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM karta" + msgid "IDS_PB_OPT_SHARE" msgstr "Sdílet" diff --git a/contacts-app/res/po/da.po b/contacts-app/res/po/da.po index e1b9a2f..c63d3db 100644 --- a/contacts-app/res/po/da.po +++ b/contacts-app/res/po/da.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Søster" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kort" + msgid "IDS_PB_OPT_SHARE" msgstr "Del" diff --git a/contacts-app/res/po/de.po b/contacts-app/res/po/de.po index b5bbac8..6cb8086 100644 --- a/contacts-app/res/po/de.po +++ b/contacts-app/res/po/de.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Schwester" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-Karte" + msgid "IDS_PB_OPT_SHARE" msgstr "Senden" diff --git a/contacts-app/res/po/el_GR.po b/contacts-app/res/po/el_GR.po index ca302be..1265ff1 100644 --- a/contacts-app/res/po/el_GR.po +++ b/contacts-app/res/po/el_GR.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Αδερφή" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Κάρτα SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Κοινή χρήση" diff --git a/contacts-app/res/po/en.po b/contacts-app/res/po/en.po index 7154246..58e933b 100644 --- a/contacts-app/res/po/en.po +++ b/contacts-app/res/po/en.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sister" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM card" + msgid "IDS_PB_OPT_SHARE" msgstr "Share" diff --git a/contacts-app/res/po/en_PH.po b/contacts-app/res/po/en_PH.po index 8d4fc5a..ca98bd6 100644 --- a/contacts-app/res/po/en_PH.po +++ b/contacts-app/res/po/en_PH.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sister" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM card" + msgid "IDS_PB_OPT_SHARE" msgstr "Share" diff --git a/contacts-app/res/po/en_US.po b/contacts-app/res/po/en_US.po index 2c11123..95187c2 100644 --- a/contacts-app/res/po/en_US.po +++ b/contacts-app/res/po/en_US.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sister" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM card" + msgid "IDS_PB_OPT_SHARE" msgstr "Share" diff --git a/contacts-app/res/po/es_ES.po b/contacts-app/res/po/es_ES.po index 7fc3c7b..c9a0f72 100644 --- a/contacts-app/res/po/es_ES.po +++ b/contacts-app/res/po/es_ES.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Hermana" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Tarjeta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Compartir" diff --git a/contacts-app/res/po/es_US.po b/contacts-app/res/po/es_US.po index c5b045e..b4eb15a 100644 --- a/contacts-app/res/po/es_US.po +++ b/contacts-app/res/po/es_US.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Hermana" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Tarjeta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Compartir" diff --git a/contacts-app/res/po/et.po b/contacts-app/res/po/et.po index cd3c919..0bbdd57 100644 --- a/contacts-app/res/po/et.po +++ b/contacts-app/res/po/et.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Õde" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kaart" + msgid "IDS_PB_OPT_SHARE" msgstr "Jaga" diff --git a/contacts-app/res/po/eu.po b/contacts-app/res/po/eu.po index 9ba453b..2dfef5b 100644 --- a/contacts-app/res/po/eu.po +++ b/contacts-app/res/po/eu.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Arreba/ahizpa" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM txartela" + msgid "IDS_PB_OPT_SHARE" msgstr "Partekatu" diff --git a/contacts-app/res/po/fi.po b/contacts-app/res/po/fi.po index 2b89b7f..18cc9d9 100644 --- a/contacts-app/res/po/fi.po +++ b/contacts-app/res/po/fi.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sisko" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kortti" + msgid "IDS_PB_OPT_SHARE" msgstr "Jaa" diff --git a/contacts-app/res/po/fr.po b/contacts-app/res/po/fr.po index 5c6905b..74b65a3 100644 --- a/contacts-app/res/po/fr.po +++ b/contacts-app/res/po/fr.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sœur" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Carte SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Partager" diff --git a/contacts-app/res/po/fr_CA.po b/contacts-app/res/po/fr_CA.po index ea3260c..85792dc 100644 --- a/contacts-app/res/po/fr_CA.po +++ b/contacts-app/res/po/fr_CA.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sœur" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Carte SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Partager" diff --git a/contacts-app/res/po/ga.po b/contacts-app/res/po/ga.po index bebd6b9..f621c73 100644 --- a/contacts-app/res/po/ga.po +++ b/contacts-app/res/po/ga.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Deirfiúr" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Cárta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Comhroinn" diff --git a/contacts-app/res/po/gl.po b/contacts-app/res/po/gl.po index 2049603..28aca7a 100644 --- a/contacts-app/res/po/gl.po +++ b/contacts-app/res/po/gl.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Irmá" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Tarxeta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Compartir" diff --git a/contacts-app/res/po/hi.po b/contacts-app/res/po/hi.po index fa25dfb..4678360 100644 --- a/contacts-app/res/po/hi.po +++ b/contacts-app/res/po/hi.po @@ -388,6 +388,9 @@ msgstr "स्काइप" msgid "IDS_PB_OPT_SISTER" msgstr "बहन" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM कार्ड" + msgid "IDS_PB_OPT_SHARE" msgstr "साझा करें" diff --git a/contacts-app/res/po/hr.po b/contacts-app/res/po/hr.po index d7aaab8..0be37b5 100644 --- a/contacts-app/res/po/hr.po +++ b/contacts-app/res/po/hr.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sestra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kartica" + msgid "IDS_PB_OPT_SHARE" msgstr "Dijeli" diff --git a/contacts-app/res/po/hu.po b/contacts-app/res/po/hu.po index 3e4e906..1cef10b 100644 --- a/contacts-app/res/po/hu.po +++ b/contacts-app/res/po/hu.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Lánytestvér" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kártya" + msgid "IDS_PB_OPT_SHARE" msgstr "Megosztás" diff --git a/contacts-app/res/po/hy.po b/contacts-app/res/po/hy.po index 677c0b0..370fa14 100644 --- a/contacts-app/res/po/hy.po +++ b/contacts-app/res/po/hy.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Քույր" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM քարտ" + msgid "IDS_PB_OPT_SHARE" msgstr "Համօգտագործել" diff --git a/contacts-app/res/po/is.po b/contacts-app/res/po/is.po index 0eae89d..cf4bd6b 100644 --- a/contacts-app/res/po/is.po +++ b/contacts-app/res/po/is.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Systir" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kort" + msgid "IDS_PB_OPT_SHARE" msgstr "Deila" diff --git a/contacts-app/res/po/it_IT.po b/contacts-app/res/po/it_IT.po index 8182014..1691ae8 100644 --- a/contacts-app/res/po/it_IT.po +++ b/contacts-app/res/po/it_IT.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sorella" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Scheda SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Condividi" diff --git a/contacts-app/res/po/ja_JP.po b/contacts-app/res/po/ja_JP.po index acfd020..722edee 100644 --- a/contacts-app/res/po/ja_JP.po +++ b/contacts-app/res/po/ja_JP.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "姉妹" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIMカード" + msgid "IDS_PB_OPT_SHARE" msgstr "共有" diff --git a/contacts-app/res/po/ka.po b/contacts-app/res/po/ka.po index 40f075d..c3b081d 100644 --- a/contacts-app/res/po/ka.po +++ b/contacts-app/res/po/ka.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "და" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM ბარათი" + msgid "IDS_PB_OPT_SHARE" msgstr "გაზიარება" diff --git a/contacts-app/res/po/kk.po b/contacts-app/res/po/kk.po index dd415ed..b389509 100644 --- a/contacts-app/res/po/kk.po +++ b/contacts-app/res/po/kk.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Әпке" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM картасы" + msgid "IDS_PB_OPT_SHARE" msgstr "Бөлісу" diff --git a/contacts-app/res/po/ko_KR.po b/contacts-app/res/po/ko_KR.po index 62b40e9..eefad2d 100644 --- a/contacts-app/res/po/ko_KR.po +++ b/contacts-app/res/po/ko_KR.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "자매" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM 카드" + msgid "IDS_PB_OPT_SHARE" msgstr "공유" diff --git a/contacts-app/res/po/lt.po b/contacts-app/res/po/lt.po index 4bc504e..9daca98 100644 --- a/contacts-app/res/po/lt.po +++ b/contacts-app/res/po/lt.po @@ -388,6 +388,9 @@ msgstr "„Skype“" msgid "IDS_PB_OPT_SISTER" msgstr "Sesuo" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kortelė" + msgid "IDS_PB_OPT_SHARE" msgstr "Dalytis" diff --git a/contacts-app/res/po/lv.po b/contacts-app/res/po/lv.po index 52f4ca8..015e935 100644 --- a/contacts-app/res/po/lv.po +++ b/contacts-app/res/po/lv.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Māsa" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM karte" + msgid "IDS_PB_OPT_SHARE" msgstr "Kopīgot" diff --git a/contacts-app/res/po/mk.po b/contacts-app/res/po/mk.po index b2f780d..ad3fc04 100644 --- a/contacts-app/res/po/mk.po +++ b/contacts-app/res/po/mk.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Сестра" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-картичка" + msgid "IDS_PB_OPT_SHARE" msgstr "Сподели" diff --git a/contacts-app/res/po/nb.po b/contacts-app/res/po/nb.po index 871b0b0..98c3959 100644 --- a/contacts-app/res/po/nb.po +++ b/contacts-app/res/po/nb.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Søster" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kort" + msgid "IDS_PB_OPT_SHARE" msgstr "Del" diff --git a/contacts-app/res/po/nl.po b/contacts-app/res/po/nl.po index 3269faa..f26a720 100644 --- a/contacts-app/res/po/nl.po +++ b/contacts-app/res/po/nl.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Zus" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kaart" + msgid "IDS_PB_OPT_SHARE" msgstr "Delen" diff --git a/contacts-app/res/po/pl.po b/contacts-app/res/po/pl.po index b35587e..51e453e 100644 --- a/contacts-app/res/po/pl.po +++ b/contacts-app/res/po/pl.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Siostra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Karta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Udostępnij" diff --git a/contacts-app/res/po/pt_BR.po b/contacts-app/res/po/pt_BR.po index 9575dbb..45db2af 100644 --- a/contacts-app/res/po/pt_BR.po +++ b/contacts-app/res/po/pt_BR.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Irmã" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Cartão SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Compartilhar" diff --git a/contacts-app/res/po/pt_PT.po b/contacts-app/res/po/pt_PT.po index b31e329..8a06265 100644 --- a/contacts-app/res/po/pt_PT.po +++ b/contacts-app/res/po/pt_PT.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Irmã" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Cartão SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Enviar" diff --git a/contacts-app/res/po/ro.po b/contacts-app/res/po/ro.po index 344778b..8aafc1c 100644 --- a/contacts-app/res/po/ro.po +++ b/contacts-app/res/po/ro.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Soră" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Card SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Partajați" diff --git a/contacts-app/res/po/ru_RU.po b/contacts-app/res/po/ru_RU.po index 190ac4a..6d4648d 100644 --- a/contacts-app/res/po/ru_RU.po +++ b/contacts-app/res/po/ru_RU.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Сестра" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-карта" + msgid "IDS_PB_OPT_SHARE" msgstr "Отправить" diff --git a/contacts-app/res/po/sk.po b/contacts-app/res/po/sk.po index c85e3ec..3d63b7a 100644 --- a/contacts-app/res/po/sk.po +++ b/contacts-app/res/po/sk.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sestra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Karta SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Zdieľať" diff --git a/contacts-app/res/po/sl.po b/contacts-app/res/po/sl.po index 1c9caf9..85edcd8 100644 --- a/contacts-app/res/po/sl.po +++ b/contacts-app/res/po/sl.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sestra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "Kartica SIM" + msgid "IDS_PB_OPT_SHARE" msgstr "Skupna raba" diff --git a/contacts-app/res/po/sr.po b/contacts-app/res/po/sr.po index 6941d2e..52c2b71 100644 --- a/contacts-app/res/po/sr.po +++ b/contacts-app/res/po/sr.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Sestra" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kartica" + msgid "IDS_PB_OPT_SHARE" msgstr "Podeli" diff --git a/contacts-app/res/po/sv.po b/contacts-app/res/po/sv.po index 4f15325..bc3da60 100644 --- a/contacts-app/res/po/sv.po +++ b/contacts-app/res/po/sv.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Syster" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-kort" + msgid "IDS_PB_OPT_SHARE" msgstr "Dela" diff --git a/contacts-app/res/po/tr_TR.po b/contacts-app/res/po/tr_TR.po index 74c9965..0571198 100644 --- a/contacts-app/res/po/tr_TR.po +++ b/contacts-app/res/po/tr_TR.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Kız kardeş" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM kartı" + msgid "IDS_PB_OPT_SHARE" msgstr "Paylaş" diff --git a/contacts-app/res/po/uk.po b/contacts-app/res/po/uk.po index 07944e2..c4b573e 100644 --- a/contacts-app/res/po/uk.po +++ b/contacts-app/res/po/uk.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Сестра" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-картка" + msgid "IDS_PB_OPT_SHARE" msgstr "Поділитися" diff --git a/contacts-app/res/po/uz.po b/contacts-app/res/po/uz.po index b03ceeb..18a942f 100644 --- a/contacts-app/res/po/uz.po +++ b/contacts-app/res/po/uz.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "Singil" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM-karta" + msgid "IDS_PB_OPT_SHARE" msgstr "Ulashish" diff --git a/contacts-app/res/po/zh_CN.po b/contacts-app/res/po/zh_CN.po index ab7e748..c1a5578 100644 --- a/contacts-app/res/po/zh_CN.po +++ b/contacts-app/res/po/zh_CN.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "姐妹" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM卡" + msgid "IDS_PB_OPT_SHARE" msgstr "分享" diff --git a/contacts-app/res/po/zh_HK.po b/contacts-app/res/po/zh_HK.po index c2eb00c..35762b2 100644 --- a/contacts-app/res/po/zh_HK.po +++ b/contacts-app/res/po/zh_HK.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "姊妹" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM 卡" + msgid "IDS_PB_OPT_SHARE" msgstr "分享" diff --git a/contacts-app/res/po/zh_TW.po b/contacts-app/res/po/zh_TW.po index 15081c2..f2d580e 100644 --- a/contacts-app/res/po/zh_TW.po +++ b/contacts-app/res/po/zh_TW.po @@ -388,6 +388,9 @@ msgstr "Skype" msgid "IDS_PB_OPT_SISTER" msgstr "姊妹" +msgid "IDS_PB_OPT_SIM_CARD" +msgstr "SIM 卡" + msgid "IDS_PB_OPT_SHARE" msgstr "分享" diff --git a/lib-contacts/inc/Contacts/Settings/ImportItem.h b/lib-contacts/inc/Contacts/Settings/ImportItem.h index 2f8f068..db6653f 100644 --- a/lib-contacts/inc/Contacts/Settings/ImportItem.h +++ b/lib-contacts/inc/Contacts/Settings/ImportItem.h @@ -38,6 +38,9 @@ namespace Contacts void onPickResult(app_control_h request, app_control_h reply, app_control_result_e result); void onImportFinish(ImportController *importer); + void onStorageSelected(void *data); + + void importFromSim(); App::AppControl m_AppControl; }; diff --git a/lib-contacts/src/Contacts/Settings/ImportItem.cpp b/lib-contacts/src/Contacts/Settings/ImportItem.cpp index dfa2760..1bb4461 100644 --- a/lib-contacts/src/Contacts/Settings/ImportItem.cpp +++ b/lib-contacts/src/Contacts/Settings/ImportItem.cpp @@ -22,18 +22,28 @@ #include "App/AppControlRequest.h" #include "Ui/Genlist.h" #include "Ui/ListPopup.h" +#include "Ui/ProcessPopup.h" #include "Utils/Callback.h" #include "Utils/Logger.h" +#include "Utils/Thread.h" #include #include using namespace Contacts::Settings; using namespace Contacts::Settings::Model; +using namespace std::placeholders; using namespace Ui; #define BUFFER_SIZE 1024 +enum ImportStorageType +{ + ImportStorageDevice = STORAGE_TYPE_INTERNAL, + ImportStorageSdCard = STORAGE_TYPE_EXTERNAL, + ImportStorageSimCard +}; + char *ImportItem::getText(Evas_Object *parent, const char *part) { if (strcmp(part, "elm.text") == 0) { @@ -45,22 +55,22 @@ char *ImportItem::getText(Evas_Object *parent, const char *part) void ImportItem::onSelected() { - auto launchPick = [this](void *data) { - storage_type_e storageType = (storage_type_e) (long) data; - - m_AppControl = App::requestPickVcard(getDirectoryPath(storageType, STORAGE_DIRECTORY_MAX).c_str()); - m_AppControl.launch(makeCallbackWithLastParam(&ImportItem::onPickResult), this); - }; - if (isAccessGranted(STORAGE_TYPE_EXTERNAL, StorageAccessRead)) { ListPopup *popup = new ListPopup(); popup->create(getParent()->getEvasObject()); popup->setTitle("IDS_PB_HEADER_IMPORT"); - popup->addItem("IDS_PB_OPT_SD_CARD", (void *) STORAGE_TYPE_EXTERNAL); - popup->addItem("IDS_PB_OPT_DEVICE", (void *) STORAGE_TYPE_INTERNAL); - popup->setSelectedCallback(launchPick); + popup->addItem("IDS_PB_OPT_SD_CARD", (void *) ImportStorageSdCard); + popup->addItem("IDS_PB_OPT_DEVICE", (void *) ImportStorageDevice); + + bool isSimInitialized = false; + contacts_sim_get_initialization_status_by_sim_slot_no(0, &isSimInitialized); + if (isSimInitialized) { + popup->addItem("IDS_PB_OPT_SIM_CARD", (void *) ImportStorageSimCard); + } + + popup->setSelectedCallback(std::bind(&ImportItem::onStorageSelected, this, _1)); } else { - launchPick((void *) STORAGE_TYPE_INTERNAL); + onStorageSelected((void *) ImportStorageDevice); } } @@ -91,3 +101,32 @@ void ImportItem::onImportFinish(ImportController *importer) } WARN_IF_ERR(err, "notification_status_message_post() failed."); } + +void ImportItem::onStorageSelected(void *data) +{ + ImportStorageType storageType = (ImportStorageType) (long) data; + + if (storageType == ImportStorageSimCard) { + importFromSim(); + } else { + m_AppControl = App::requestPickVcard(getDirectoryPath((storage_type_e) storageType, + STORAGE_DIRECTORY_MAX).c_str()); + m_AppControl.launch(makeCallbackWithLastParam(&ImportItem::onPickResult), this); + } +} + +void ImportItem::importFromSim() +{ + Ui::ProcessPopup *popup = Ui::ProcessPopup::create(getParent()->getEvasObject(), + "IDS_PB_HEADER_IMPORT_CONTACTS_ABB2"); + + new Utils::Thread([] { + contacts_connect_on_thread(); + contacts_sim_import_all_contacts_by_sim_slot_no(0); + contacts_disconnect_on_thread(); + }, [popup] { + popup->close(); + int err = notification_status_message_post(_("IDS_PB_SBODY_CONTACTS_IMPORTED_M_STATUS_ABB")); + WARN_IF_ERR(err, "notification_status_message_post() failed."); + }); +}