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 b127fdf..349dc54 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 774f351..c5afd21 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 c15b1b9..0283829 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 d9f741c..7d59e8e 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 230b745..cf1ce05 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 29923a4..7f23fa6 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 c602228..77fabba 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 2f0c88c..ef1b75e 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 9e0c4e3..c10e87c 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 0319b34..fca2872 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 d7dc941..491b270 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 128fe6e..8c74d21 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 8f90a0a..4331d77 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 99412d0..6516753 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 4c679c9..690639d 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 e65697a..99e9a3b 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 6101419..c92ad58 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 3919efd..ede3969 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 9ba7b8b..0f0cec8 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 a926e61..e7233b3 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 70ed706..ed7bfd4 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 831300c..3760442 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 c080819..b1b3f25 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 f168589..514f251 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 efbe276..ca5eda2 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 5ae818c..ce56265 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 84cc092..d601d66 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 64b331b..868e769 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 7d16f63..947a368 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 8461e81..f49e785 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 34f6d99..052cbbf 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 f34f13a..1def068 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 e78ef58..8ce18c8 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 3f0cfdf..d134eda 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 15989b0..e790aba 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 a90f2d9..68e2219 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 45a5965..0ad134f 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 3baec11..99b3b99 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 ae1e3b4..42cabcc 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 884d706..bf861e9 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 24ccaa6..f449e08 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 c2abf82..f15c9d5 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 5769a1c..b805618 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 a272122..0c2b3dd 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 529528c..21f2542 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 a1e779b..0f60ae1 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 b98bbb5..a915b97 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 8a8cb5d..7619449 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 2e51f8f..d29f33a 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 65f4abf..15551c6 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 e72d325..0078af9 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 bcd1d7d..a798590 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 7fe4860..9da2294 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 ac682cc..820299c 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);
                }