EasyUI Forum

General Category => Bug Report => Topic started by: jgautier on August 10, 2014, 09:40:29 AM



Title: Missing localisation rule for textbox ? (easyui 1.4)
Post by: jgautier on August 10, 2014, 09:40:29 AM
Hi,

(sorry for my poor english)

I can't find any "$.fn.textbox.defaults.missingMessage" in locale files (inside locale folder).
So, I add these lines in my file (easyui-lang-en.js) :
Code:
if ($.fn.textbox.defaults){
$.fn.textbox.defaults.missingMessage = 'This field is required.';
}

And in french file (easyui-lang-fr.js), for example :
Code:
if ($.fn.textbox.defaults){
$.fn.textbox.defaults.missingMessage = 'Ce champ est obligatoire.';
}

Another detail, concerning french locale file :
I don't really understand what could mean a sentence like that : "Affichage de 1 et 20 au 100 des articles".
So, in "easyui-lang-fr.js", I've changed this localisation rule to :
Code:
if ($.fn.pagination){
$.fn.pagination.defaults.displayMsg = 'Affichage de {from} à {to} sur {total}';
}

I hope this could help.
Anyway, thanks a lot for this great framework.

JG