Support filter and popup notification for maximum characters length in keyboard input... 60/139260/1
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Jul 2017 06:26:40 +0000 (15:26 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Jul 2017 06:26:40 +0000 (15:26 +0900)
Change-Id: Ibd720794c674987b106c4cb01a7d22fd18b4471e
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
54 files changed:
inc/w-input-keyboard.h
inc/w-input-selector.h
po/ar.po
po/az.po
po/bg.po
po/ca.po
po/cs.po
po/da.po
po/de.po
po/el_GR.po
po/en.po
po/en_PH.po
po/en_US.po
po/es_ES.po
po/es_US.po
po/et.po
po/eu.po
po/fi.po
po/fr.po
po/fr_CA.po
po/ga.po
po/gl.po
po/hi.po
po/hr.po
po/hu.po
po/hy.po
po/is.po
po/it_IT.po
po/ja_JP.po
po/ka.po
po/kk.po
po/ko_KR.po
po/lt.po
po/lv.po
po/mk.po
po/nb.po
po/nl.po
po/pl.po
po/pt_BR.po
po/pt_PT.po
po/ro.po
po/ru_RU.po
po/sk.po
po/sl.po
po/sr.po
po/sv.po
po/tr_TR.po
po/uk.po
po/uz.po
po/zh_CN.po
po/zh_HK.po
po/zh_TW.po
src/w-input-keyboard.cpp
src/w-input-stt-voice.cpp

index b127fdfe5ef5e9d4afd62f6d19851b3edeaffbf1..349dc544c98c2de679b01cee163835ed95f626a6 100755 (executable)
@@ -21,6 +21,8 @@
 #include <app_control.h>
 #include <Evas.h>
 
+#define MAX_TEXT_LENGTH_REACH   "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+
 const int KEYBOARD_EDITOR_CHAR_COUNT_MAX = 300;
 bool input_keyboard_init(app_control_h app_control);
 void input_keyboard_deinit(void);
index 774f3515f94dafd593ebad3ea20748ef586fb536..c5afd219e99514478821f73ea180ef17d700c360 100755 (executable)
@@ -107,6 +107,7 @@ struct _InputKeyboardData
        char *guide_text;
        char *default_text;
        char *return_key_type;
+       int max_text_length;
 };
 typedef struct _InputKeyboardData InputKeyboardData;
 
index c15b1b9a211c4f7a744372760940cfb82903954a..028382962f7e11a79faab131b0b5fc9cc6ce7fdb 100644 (file)
--- a/po/ar.po
+++ b/po/ar.po
@@ -256,3 +256,5 @@ msgstr "إدخال ساعة Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "تأكد من أن تطبيق %s قيد التفعيل على هاتفك."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "تم تجاوز الحد الأقصى لعدد الأحرف (%d)."
\ No newline at end of file
index d9f741c1aa5649344e43359c5aaec30e83be9979..7d59e8e5a88687da725fb8efb14bb973f2c41bff 100644 (file)
--- a/po/az.po
+++ b/po/az.po
@@ -256,3 +256,5 @@ msgstr "Gear Girişi"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Telefonda %s proqramının aktiv olduğundan əmin ol."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Simvolların sayı maksimumu (%d) keçdi."
\ No newline at end of file
index 230b745b7e19c1e97824496f211b15ea3b893e75..cf1ce056510ca0165aec203ff72aa15c3e77a121 100644 (file)
--- a/po/bg.po
+++ b/po/bg.po
@@ -256,3 +256,5 @@ msgstr "Въвеждане на Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Уверете се, че приложението %s е активно в телефона."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Максималният брой знаци (%d) е надвишен."
\ No newline at end of file
index 29923a446cc5ebb5d3c63e1a3ba70b0c47775b26..7f23fa6419fc8125f13add3a4da545b6d40377fe 100644 (file)
--- a/po/ca.po
+++ b/po/ca.po
@@ -256,3 +256,5 @@ msgstr "Entrada del Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Asseguri's que l'app %s estigui activa al telèfon."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "S'ha excedit el nombre màxim de caràcters (%d)."
\ No newline at end of file
index c60222856161c27c7bb8f999508a3f8f33f5fccd..77fabba3d12d390bb0b092c1a2f87d362bfdfc94 100644 (file)
--- a/po/cs.po
+++ b/po/cs.po
@@ -256,3 +256,5 @@ msgstr "Zadávání do Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Zkontrolujte, zda je v telefonu aktivní aplikace %s."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Byl překročen maximální počet znaků (%d)."
\ No newline at end of file
index 2f0c88cb48330adbf772a5e000e2231dd694a170..ef1b75eec4630685e5fa33d3f1ed1c73c636fe5c 100644 (file)
--- a/po/da.po
+++ b/po/da.po
@@ -256,3 +256,5 @@ msgstr "Gear-input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Sørg for, at appen %s er aktiv på telefonen."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Det maksimale antal tegn er overskredet (%d)."
\ No newline at end of file
index 9e0c4e3b2acafb6a4a81dd36cfc472833a0174f7..c10e87c3f453c5e6829438ea4a3d750713ab64ab 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -256,3 +256,5 @@ msgstr "Gear-Eingabe"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Stellen Sie sicher, dass die %s-App auf Ihrem Telefon aktiv ist."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maximale Anzahl von Zeichen (%d) überschritten."
\ No newline at end of file
index 0319b3470f540e5ef0c51f93ba061e3554fa4a30..fca28720b70cc79d4677a29b0015213649db79a2 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Είσοδος Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Βεβαιωθείτε ότι η εφαρμογή %s είναι ενεργή στο τηλέφωνό σας."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Ξεπεράσατε το μέγιστο αριθμό χαρακτήρων (%d)."
\ No newline at end of file
index d7dc9411b6d6c6e83ae768cab5d42ddc1acb05aa..491b27017c02e48c1931519e23ab6b0524c18eef 100644 (file)
--- a/po/en.po
+++ b/po/en.po
@@ -256,3 +256,5 @@ msgstr "Gear Input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Make sure the %s app is active on your phone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maximum number of characters (%d) exceeded."
\ No newline at end of file
index 128fe6e74ab9c68f28612a3036b3dbcb8012a6f2..8c74d21890fbd0d9321c27e1109ebb5775257832 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear Input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Make sure the %s app is active on your phone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maximum number of characters (%d) exceeded."
\ No newline at end of file
index 8f90a0a5f73f8414eeddcb039029813a4f80d3ce..4331d7760a2bae73118942776cbb776b523a417d 100644 (file)
@@ -261,3 +261,6 @@ msgstr "Emojis"
 
 msgid "IDS_IME_HEADER_RECENT_M_RECETLY_SENT_EMOJIS_ABB"
 msgstr "Recent"
+
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maximum number of characters (%d) exceeded."
\ No newline at end of file
index 99412d0a7b814243d516227a171a7da655536dbd..65167531bc6718c9271cec0b69547992a9adea37 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Entrada de Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Asegúrese de que la aplicación %s está activa en el teléfono."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Se ha superado el número máximo de caracteres (%d)."
\ No newline at end of file
index 4c679c9b7506b1a78ffc57943bc3de977ff8ebc1..690639d059bafea884c2b3b188e16e168e631a95 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Tipo de entrada en Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Compruebe que la aplicación %s está activa en el teléfono."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Se superó el número máximo de caracteres (%d)."
\ No newline at end of file
index e65697a510528486194ff8de7e8dd6ebf9868b3e..99e9a3bb6ea250ec3e4316cf90a087dbb8eada7c 100644 (file)
--- a/po/et.po
+++ b/po/et.po
@@ -256,3 +256,5 @@ msgstr "Geari sisend"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Veenduge, et rakendus %s oleks teie telefonis aktiivne."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maksimaalne tähemärkide arv (%d) on ületatud."
\ No newline at end of file
index 6101419bbb655159e0d3f0e2ca9e3ceb3376fdeb..c92ad58604aabe4f1436fb75eb181f3c8c7ad1a9 100644 (file)
--- a/po/eu.po
+++ b/po/eu.po
@@ -256,3 +256,5 @@ msgstr "Gear sarrera"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Ziurtatu %s aplikazioa telefonoan aktibo dagoela."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Gehienezko karaktere kopurua (%d) gainditu da."
\ No newline at end of file
index 3919efd7fe31e51471420c6ca0d5a6d471065434..ede3969cb391d51a40dc3327a0611acaa238fba0 100644 (file)
--- a/po/fi.po
+++ b/po/fi.po
@@ -256,3 +256,5 @@ msgstr "Gearin syöttö"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Varmista, että %s -sovellus on käynnissä puhelimessa."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Merkkien enimmäismäärä (%d) on ylitetty."
\ No newline at end of file
index 9ba7b8b243f816ed2b8d8d595a9bfc9aa2dc6e5a..0f0cec8633cd9907bbccf9b6aa1ddc3461393e5b 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -256,3 +256,5 @@ msgstr "Saisie de la Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Assurez-vous que l'application %s est active sur votre téléphone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Le nombre maximal de caractères (%d) a été dépassé."
\ No newline at end of file
index a926e61a3ff2c1500cac68dab02f4f8c73249350..e7233b3ab3baa025324398602d7678be969833d1 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Saisie de la Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Assurez-vous que l'application %s est active sur votre téléphone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Le nombre maximal de caractères (%d) a été dépassé."
\ No newline at end of file
index 70ed7064d6982cb395dfe951f77a7af27f4a863f..ed7bfd432f9b3834490e9bbb7ebc3f64a7c1ee18 100644 (file)
--- a/po/ga.po
+++ b/po/ga.po
@@ -256,3 +256,5 @@ msgstr "Ionchur Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Cinntigh go bhfuil an feidhmchlár %s gníomhach ar d'fhón."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Uaslíon na gcarachtar (%d) sáraithe."
\ No newline at end of file
index 831300c5edeb84e9d8e84e733fb1193284474bde..3760442ee5bca1c8c5daef6ca5be8cf5d16eb9aa 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -256,3 +256,5 @@ msgstr "Entrada de Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Asegúrate de que a aplicación %s estea activa no teu teléfono."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Superouse o número máximo de caracteres (%d)."
\ No newline at end of file
index c0808194341b995cc590aa26bc47158889d5aa0c..b1b3f25d2b89b622310b41dd4c76ac3edeb1925f 100644 (file)
--- a/po/hi.po
+++ b/po/hi.po
@@ -256,3 +256,5 @@ msgstr "गियर इनपुट"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "सुनिश्चित करें कि आपके फोन पर %s एप सक्रिय है।"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "वर्णों की अधिकतम संख्या (%d) पार हो गई है।"
\ No newline at end of file
index f168589dfbe4b6d6c77d40276add1d6c4b397325..514f251abb7868de07949de34dbb95652391136f 100644 (file)
--- a/po/hr.po
+++ b/po/hr.po
@@ -256,3 +256,5 @@ msgstr "Unos za Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Provjerite je li aplikacija %s aktivna na vašem telefonu."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Premašen je maksimalni broj znakova (%d)."
\ No newline at end of file
index efbe276c7506d1ca6a630cb2664851b0fe458e33..ca5eda25fce6ebbf33e354bc54c2d6f314379b81 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -256,3 +256,5 @@ msgstr "Gear-bevitel"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Indítsa el a %s alkalmazást a telefonon."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Túllépte a karakterek maximális számát (%d)."
\ No newline at end of file
index 5ae818c585d93683bf5caf1c39adf7b57aec8d48..ce5626590159bdffedf5f3840bf2a36ea170dea5 100644 (file)
--- a/po/hy.po
+++ b/po/hy.po
@@ -256,3 +256,5 @@ msgstr "Gear-ի ներածում"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Համոզվեք, որ %s ծրագիրն ակտիվ է հեռախոսում:"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Նիշերի առավելագույն քանակը (%d) գերազանցվել է:"
\ No newline at end of file
index 84cc092913041d6b19b7b971b1c4b41fa55f4061..d601d667ebc258cd6589e72cb1a9fad7c58ce897 100644 (file)
--- a/po/is.po
+++ b/po/is.po
@@ -256,3 +256,5 @@ msgstr "Gear inntak"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Gakktu úr skugga um að forritið %s sé virkt í símanum."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Hámarksfjölda stafa (%d) náð."
\ No newline at end of file
index 64b331b2b0dcf16530952d14deebe4db422de8af..868e769ffc34d009df0101fa7e130a6d72081129 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Inserimento Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Assicuratevi che l'applicazione %s sia attiva sul dispositivo."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Il numero massimo di caratteri (%d) è stato superato."
\ No newline at end of file
index 7d16f630c37b99798d17456d6f72ff1c2037d289..947a3682cfad62a3bfca7043a60b85eeacf14bb9 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear入力"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "端末で%sアプリが実行されていることを確認してください。"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "最大文字数(%d文字)を超えています。"
\ No newline at end of file
index 8461e81d4bc64da85952de09c4bd7d2907f372e1..f49e7859260d6486bbaf685a4a1fbb0a459afabf 100644 (file)
--- a/po/ka.po
+++ b/po/ka.po
@@ -256,3 +256,5 @@ msgstr "Gear-ით შეყვანა"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "დარწმუნდით, რომ ტელეფონში აქტიურია %s აპლიკაცია."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "გადაჭარბებულია სიმბოლოების მაქსიმალური რაოდენობა (%d)."
\ No newline at end of file
index 34f6d99eb3447e7c783d3e6c998820437d75987f..052cbbfe7bd9fd62d9734e3950d7e7634e28374f 100644 (file)
--- a/po/kk.po
+++ b/po/kk.po
@@ -256,3 +256,5 @@ msgstr "Gear енгізу"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "%s қолданбасының телефоныңызда қосулы екеніне көз жеткізіңіз."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Таңбалар ең көп (%d) санынан асып кетті."
index f34f13a7210a3c130df39e5329fad7f7f594da11..1def0683d697ca052dd63a87b05cd5afa7067d04 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear 입력"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "폰에서 %s 앱이 실행되어 있는지 확인하세요."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "최대 글자 수(%d)를 초과했습니다."
\ No newline at end of file
index e78ef58ea9fe21fe025ab9892df8e3819874b17d..8ce18c834250dbfb985a78eb6c7618942057def4 100644 (file)
--- a/po/lt.po
+++ b/po/lt.po
@@ -256,3 +256,5 @@ msgstr "„Gear“ įvestis"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Įsitikinkite, kad telefone suaktyvinta %s programa."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Viršytas didžiausias simbolių skaičius (%d)."
\ No newline at end of file
index 3f0cfdf3c69ba2564713f63bedd2dc716f78ce20..d134edaa293086007b00c1a58572baf50d8ce117 100644 (file)
--- a/po/lv.po
+++ b/po/lv.po
@@ -256,3 +256,5 @@ msgstr "Gear Input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Aktivizējiet tālrunī programmu %s."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Pārsniegts maksimālais rakstzīmju skaits (%d)."
\ No newline at end of file
index 15989b053df162bdc2c2b59b5d603bcb6a204dc3..e790aba44c1c86fb09adb8f97949d0dee7e23d23 100644 (file)
--- a/po/mk.po
+++ b/po/mk.po
@@ -256,3 +256,5 @@ msgstr "Внес на Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Осигурете се дека апликацијата %s е активна на телефонот."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Надминат е максималниот број на знаци (%d)."
\ No newline at end of file
index a90f2d9d7dea9f418e913c3561e2d210d9ec999f..68e22199cda529457a486e1af56ff171a37f93c7 100644 (file)
--- a/po/nb.po
+++ b/po/nb.po
@@ -256,3 +256,5 @@ msgstr "Gear-inndata"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Pass på at %s-appen er aktiv på telefonen."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maksimalt antall tegn (%d) er oversteget."
\ No newline at end of file
index 45a596588dc4607aafccc712f8b794ed5ce099bf..0ad134fc42475697306c1ebae17bc19530338e0a 100644 (file)
--- a/po/nl.po
+++ b/po/nl.po
@@ -256,3 +256,5 @@ msgstr "Invoer Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Controleer of de app %s actief is op uw telefoon."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maximumaantal tekens (%d) overschreden."
\ No newline at end of file
index 3baec116a01d133554c48e6a2ff4ef1d9557ea6d..99b3b996a437c9556b86e406b9bcc198c094cf7e 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -256,3 +256,5 @@ msgstr "Wprowadzanie Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Upewnij się, że aplikacja %s jest aktywna w telefonie."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Przekroczono maksymalną liczbę znaków (%d)."
\ No newline at end of file
index ae1e3b481a9347ed6e6485c488158bceaa748882..42cabccb49a6719bc59ed9a8677e56334515037c 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Entrada do Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Verifique se o aplicativo %s está ativo no telefone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "O número máximo de caracteres (%d) foi excedido."
\ No newline at end of file
index 884d706108a81ebfd1e8845c12d1fc93c0a4486b..bf861e91c1594ade4840a8ae486d2eab0384ebcc 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Introdução do Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Certifique-se de que a aplicação %s está activa no seu telefone."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Número máximo de caracteres (%d) excedido."
\ No newline at end of file
index 24ccaa637beb6d035969f4a14cb440c5953415c2..f449e08e83916fd39b6b7faf254ad7454e189e61 100644 (file)
--- a/po/ro.po
+++ b/po/ro.po
@@ -256,3 +256,5 @@ msgstr "Introducere prin dispozitivul Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Asiguraţi-vă că aplicaţia %s este activă pe telefon."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "A fost depășit numărul maxim de caractere (%d)."
\ No newline at end of file
index c2abf829c4a3a696f269a139efd846a2a8daffdd..f15c9d5931e91f7bf2c747f4a4934494c728815a 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear Input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "На телефоне должно быть запущено приложение %s."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Превышено максимальное число символов (%d)."
\ No newline at end of file
index 5769a1c70f1b4000e7fa26ef6d72b676fdd81438..b805618a93c2869795fd761dfaa85576999ca7c7 100644 (file)
--- a/po/sk.po
+++ b/po/sk.po
@@ -256,3 +256,5 @@ msgstr "Vstup cez Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Skontrolujte, či je v telefóne aktívna aplikácia %s."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Prekročil sa maximálny počet znakov (%d)."
\ No newline at end of file
index a272122412ccba3acae95458394faaa604c3353e..0c2b3ddf107f69d0190160e4d571088099970591 100644 (file)
--- a/po/sl.po
+++ b/po/sl.po
@@ -256,3 +256,5 @@ msgstr "Vnos z napravo Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Preverite, ali je aplikacija %s aktivna v telefonu."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Največje dovoljeno število znakov (%d) je preseženo."
\ No newline at end of file
index 529528c15d83d1a78665e46e7899aff606a2a23b..21f25421efc8b29a49aa70360434e7b6bf703535 100644 (file)
--- a/po/sr.po
+++ b/po/sr.po
@@ -256,3 +256,5 @@ msgstr "Unos za Gear"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Proverite da li je aplikacija %s aktivna na telefonu."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Prekoračen je maksimalan broj karaktera (%d)."
\ No newline at end of file
index a1e779b8e48c82bdf7c8ac5dcb9c4900f6ccf98e..0f60ae1a9c1fdb0863aa32338a708da527f9ec22 100644 (file)
--- a/po/sv.po
+++ b/po/sv.po
@@ -256,3 +256,5 @@ msgstr "Gear-inmatning"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Se till att programmet %s är aktivt på telefonen."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Max antal tecken (%d) överskreds."
\ No newline at end of file
index b98bbb56c7eec2a61031eb33391e6cadbfc94392..a915b97d11ae274002dd06f13bea268343b68126 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear Girişi"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "%s uygulamasının telefonunuzda etkin olduğundan emin olun."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Maksimum karakter sayısı (%d) aşıldı."
\ No newline at end of file
index 8a8cb5dee3e412f9d6a1f97fa6c1812ce09c0caa..7619449b5bc9cc99aae41c569074763db0083c1d 100644 (file)
--- a/po/uk.po
+++ b/po/uk.po
@@ -256,3 +256,5 @@ msgstr "Gear Input"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "На телефоні потрібно відкрити програму %s."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Перевищено максимальну кількість символів (%d)."
\ No newline at end of file
index 2e51f8fc6ea999d31d7e7a6d11a49ab323bd1542..d29f33a9735ad10c5ce0e15d45bb96f0d77a8015 100644 (file)
--- a/po/uz.po
+++ b/po/uz.po
@@ -256,3 +256,5 @@ msgstr "Gear kiritish"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "Telefonda %s ilovasi yoqilganligiga ishonch hosil qiling."
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "Belgilar soni maksimal miqdordan (%d) oshib ketdi."
\ No newline at end of file
index 65f4abfcf6b3849f76d7ff59a693c644ff2def78..15551c69ba58e4f572c547620d1c02183367bdb5 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear 输入"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "请确保 %s 应用程序已在您的手机上运行。"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "已超过字符数上限 (%d)。"
\ No newline at end of file
index e72d3254bfb47ae7ba4ec1975c5ee00e32635059..0078af9a645498aff3a3bea5aa88c9080f4d2793 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear 輸入"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "請確保 %s 應用程式已在手機上啟動。"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "已超過字元數目上限 (%d)。"
\ No newline at end of file
index bcd1d7d9358a981df089ae86867aed8e30171cf2..a798590138eaa889cb6ef2b39d396d875ca8c0a8 100644 (file)
@@ -256,3 +256,5 @@ msgstr "Gear 輸入"
 msgid "WDS_WMGR_POP_MAKE_SURE_THE_PS_APP_IS_ACTIVE_ON_YOUR_PHONE"
 msgstr "請確認手機上已執行 %s 應用程式。"
 
+msgid "WDS_MSG_BODY_MAXIMUM_NUMBER_OF_CHARACTERS_HPD_EXCEEDED"
+msgstr "已超過字數上限 (%d)。"
\ No newline at end of file
index 7fe4860a7bee96d2b0ba79b6690df1e597931421..9da2294002acdf802332af2f518039f9d3bc8e78 100755 (executable)
@@ -35,6 +35,7 @@ bool input_keyboard_init(app_control_h app_control)
        char *default_text = NULL;
        char *guide_text = NULL;
        char *return_key_type = NULL;
+       char *max_text_length = NULL;
 
        input_keyboard_deinit();
 
@@ -50,6 +51,10 @@ bool input_keyboard_init(app_control_h app_control)
        if (ret == APP_CONTROL_ERROR_NONE) {
                g_input_keyboard_data.return_key_type = return_key_type;
        }
+       ret = app_control_get_extra_data(app_control, "max_text_length", &max_text_length);
+       if (ret == APP_CONTROL_ERROR_NONE) {
+               g_input_keyboard_data.max_text_length = atoi(max_text_length);
+       }
 
        return true;
 }
@@ -68,6 +73,7 @@ void input_keyboard_deinit(void)
        g_input_keyboard_data.default_text = NULL;
        g_input_keyboard_data.guide_text = NULL;
        g_input_keyboard_data.return_key_type = NULL;
+       g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX;
 
        return;
 }
@@ -110,6 +116,9 @@ static Eina_Bool custom_back_cb(void *data, Elm_Object_Item *it)
 static void maxlength_cb(void *data, Evas_Object *obj, void *event_info)
 {
        LOGD("maxlength_cb : size = %d", KEYBOARD_EDITOR_CHAR_COUNT_MAX);
+       char text[512];
+       snprintf(text, sizeof(text), _(MAX_TEXT_LENGTH_REACH), g_input_keyboard_data.max_text_length);
+       show_popup_toast((const char *)text, false);
 }
 
 static void enter_keydown_cb(void *data, Evas_Object *obj, void *event_info)
@@ -141,7 +150,7 @@ void create_fullscreen_editor(void *data)
        entry = elm_entry_add(box);
 
        static Elm_Entry_Filter_Limit_Size limit_filter_data;
-       limit_filter_data.max_char_count = KEYBOARD_EDITOR_CHAR_COUNT_MAX;
+       limit_filter_data.max_char_count = g_input_keyboard_data.max_text_length;
        elm_entry_markup_filter_append(entry, elm_entry_filter_limit_size, &limit_filter_data);
        evas_object_smart_callback_add(entry, "maxlength,reached", maxlength_cb, data);
 
@@ -205,7 +214,7 @@ static Evas_Object *create_multiline_editfield_layout(Evas_Object *parent, void
 
        entry = elm_entry_add(editfield);
        static Elm_Entry_Filter_Limit_Size limit_filter_data;
-       limit_filter_data.max_char_count = KEYBOARD_EDITOR_CHAR_COUNT_MAX;
+       limit_filter_data.max_char_count = g_input_keyboard_data.max_text_length;
        elm_entry_markup_filter_append(entry, elm_entry_filter_limit_size, &limit_filter_data);
        evas_object_smart_callback_add(entry, "maxlength,reached", maxlength_cb, data);
 
index ac682cc841c29cf2106b0c78c8a7e26ae144f0ff..820299c75dfcb537a87aaba7cce92ac81fcd4188 100755 (executable)
@@ -913,7 +913,8 @@ static char *__get_genlist_title_label(void *data, Evas_Object *obj, const char
 
 char *__get_genlist_item_label(void *data, Evas_Object *obj, const char *part)
 {
-       char text[128] = {0, };
+       const int BUF_LEN = 128;
+       char text[BUF_LEN] = {'\0', };
 
        if(!strcmp(part, "elm.text"))
        {
@@ -928,12 +929,10 @@ char *__get_genlist_item_label(void *data, Evas_Object *obj, const char *part)
                                if(p) {
                                        strncpy(text, s, p-s);
                                } else {
-                                       strncpy(text, s, strlen(s));
-                                       text[strlen(s)] = '\0';
+                                       snprintf(text, BUF_LEN, "%s", s);
                                }
                        } else {
-                               strncpy(text, "", strlen(""));
-                               text[strlen("")] = '\0';
+                               snprintf(text, BUF_LEN, "%s", "");
                        }
                }
                return strdup(text);
@@ -965,12 +964,10 @@ char *__get_genlist_item_label(void *data, Evas_Object *obj, const char *part)
                                if(p) {
                                        strncpy(text, p+1, strlen(s)-(p-s)-2);
                                } else {
-                                       strncpy(text, s, strlen(s));
-                                       text[strlen(s)] = '\0';
+                                       snprintf(text, BUF_LEN, "%s", s);
                                }
                        } else {
-                               strncpy(text, "", strlen(""));
-                               text[strlen("")] = '\0';
+                               snprintf(text, BUF_LEN, "%s", "");
                        }
                        return strdup(text);
                }