EasyUI Forum
April 29, 2024, 12:58:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Missing localisation rule for textbox ? (easyui 1.4)  (Read 6189 times)
jgautier
Newbie
*
Posts: 20


View Profile
« 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!