From: sungwook79.park Date: Tue, 18 Jul 2017 06:26:40 +0000 (+0900) Subject: Support filter and popup notification for maximum characters length in keyboard input... X-Git-Tag: accepted/tizen/4.0/unified/20170816.012804~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F139260%2F1;p=platform%2Fcore%2Fuifw%2Finputdelegator.git Support filter and popup notification for maximum characters length in keyboard input mode Change-Id: Ibd720794c674987b106c4cb01a7d22fd18b4471e Signed-off-by: sungwook79.park --- diff --git a/inc/w-input-keyboard.h b/inc/w-input-keyboard.h index b127fdf..349dc54 100755 --- a/inc/w-input-keyboard.h +++ b/inc/w-input-keyboard.h @@ -21,6 +21,8 @@ #include #include +#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); diff --git a/inc/w-input-selector.h b/inc/w-input-selector.h index 774f351..c5afd21 100755 --- a/inc/w-input-selector.h +++ b/inc/w-input-selector.h @@ -107,6 +107,7 @@ struct _InputKeyboardData char *guide_text; char *default_text; char *return_key_type; + int max_text_length; }; typedef struct _InputKeyboardData InputKeyboardData; diff --git a/po/ar.po b/po/ar.po index c15b1b9..0283829 100644 --- 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 diff --git a/po/az.po b/po/az.po index d9f741c..7d59e8e 100644 --- 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 diff --git a/po/bg.po b/po/bg.po index 230b745..cf1ce05 100644 --- 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 diff --git a/po/ca.po b/po/ca.po index 29923a4..7f23fa6 100644 --- 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 diff --git a/po/cs.po b/po/cs.po index c602228..77fabba 100644 --- 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 diff --git a/po/da.po b/po/da.po index 2f0c88c..ef1b75e 100644 --- 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 diff --git a/po/de.po b/po/de.po index 9e0c4e3..c10e87c 100644 --- 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 diff --git a/po/el_GR.po b/po/el_GR.po index 0319b34..fca2872 100644 --- a/po/el_GR.po +++ b/po/el_GR.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 diff --git a/po/en.po b/po/en.po index d7dc941..491b270 100644 --- 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 diff --git a/po/en_PH.po b/po/en_PH.po index 128fe6e..8c74d21 100644 --- a/po/en_PH.po +++ b/po/en_PH.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 diff --git a/po/en_US.po b/po/en_US.po index 8f90a0a..4331d77 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -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 diff --git a/po/es_ES.po b/po/es_ES.po index 99412d0..6516753 100644 --- a/po/es_ES.po +++ b/po/es_ES.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ú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 diff --git a/po/es_US.po b/po/es_US.po index 4c679c9..690639d 100644 --- a/po/es_US.po +++ b/po/es_US.po @@ -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 diff --git a/po/et.po b/po/et.po index e65697a..99e9a3b 100644 --- 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 diff --git a/po/eu.po b/po/eu.po index 6101419..c92ad58 100644 --- 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 diff --git a/po/fi.po b/po/fi.po index 3919efd..ede3969 100644 --- 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 diff --git a/po/fr.po b/po/fr.po index 9ba7b8b..0f0cec8 100644 --- 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 diff --git a/po/fr_CA.po b/po/fr_CA.po index a926e61..e7233b3 100644 --- a/po/fr_CA.po +++ b/po/fr_CA.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 diff --git a/po/ga.po b/po/ga.po index 70ed706..ed7bfd4 100644 --- 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 diff --git a/po/gl.po b/po/gl.po index 831300c..3760442 100644 --- 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 diff --git a/po/hi.po b/po/hi.po index c080819..b1b3f25 100644 --- 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 diff --git a/po/hr.po b/po/hr.po index f168589..514f251 100644 --- 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 diff --git a/po/hu.po b/po/hu.po index efbe276..ca5eda2 100644 --- 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 diff --git a/po/hy.po b/po/hy.po index 5ae818c..ce56265 100644 --- 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 diff --git a/po/is.po b/po/is.po index 84cc092..d601d66 100644 --- 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 diff --git a/po/it_IT.po b/po/it_IT.po index 64b331b..868e769 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -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 diff --git a/po/ja_JP.po b/po/ja_JP.po index 7d16f63..947a368 100644 --- a/po/ja_JP.po +++ b/po/ja_JP.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 diff --git a/po/ka.po b/po/ka.po index 8461e81..f49e785 100644 --- 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 diff --git a/po/kk.po b/po/kk.po index 34f6d99..052cbbf 100644 --- 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) санынан асып кетті." diff --git a/po/ko_KR.po b/po/ko_KR.po index f34f13a..1def068 100644 --- a/po/ko_KR.po +++ b/po/ko_KR.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 diff --git a/po/lt.po b/po/lt.po index e78ef58..8ce18c8 100644 --- 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 diff --git a/po/lv.po b/po/lv.po index 3f0cfdf..d134eda 100644 --- 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 diff --git a/po/mk.po b/po/mk.po index 15989b0..e790aba 100644 --- 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 diff --git a/po/nb.po b/po/nb.po index a90f2d9..68e2219 100644 --- 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 diff --git a/po/nl.po b/po/nl.po index 45a5965..0ad134f 100644 --- 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 diff --git a/po/pl.po b/po/pl.po index 3baec11..99b3b99 100644 --- 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 diff --git a/po/pt_BR.po b/po/pt_BR.po index ae1e3b4..42cabcc 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -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 diff --git a/po/pt_PT.po b/po/pt_PT.po index 884d706..bf861e9 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -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 diff --git a/po/ro.po b/po/ro.po index 24ccaa6..f449e08 100644 --- 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 diff --git a/po/ru_RU.po b/po/ru_RU.po index c2abf82..f15c9d5 100644 --- a/po/ru_RU.po +++ b/po/ru_RU.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 diff --git a/po/sk.po b/po/sk.po index 5769a1c..b805618 100644 --- 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 diff --git a/po/sl.po b/po/sl.po index a272122..0c2b3dd 100644 --- 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 diff --git a/po/sr.po b/po/sr.po index 529528c..21f2542 100644 --- 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 diff --git a/po/sv.po b/po/sv.po index a1e779b..0f60ae1 100644 --- 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 diff --git a/po/tr_TR.po b/po/tr_TR.po index b98bbb5..a915b97 100644 --- a/po/tr_TR.po +++ b/po/tr_TR.po @@ -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 diff --git a/po/uk.po b/po/uk.po index 8a8cb5d..7619449 100644 --- 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 diff --git a/po/uz.po b/po/uz.po index 2e51f8f..d29f33a 100644 --- 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 diff --git a/po/zh_CN.po b/po/zh_CN.po index 65f4abf..15551c6 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.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 diff --git a/po/zh_HK.po b/po/zh_HK.po index e72d325..0078af9 100644 --- a/po/zh_HK.po +++ b/po/zh_HK.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 diff --git a/po/zh_TW.po b/po/zh_TW.po index bcd1d7d..a798590 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.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 diff --git a/src/w-input-keyboard.cpp b/src/w-input-keyboard.cpp index 7fe4860..9da2294 100755 --- a/src/w-input-keyboard.cpp +++ b/src/w-input-keyboard.cpp @@ -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); diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index ac682cc..820299c 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -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); }