javascript - How to change the language for alerts in chosen.js? -


when type in unavailable option in multiple select box in chosen.js, generate output 'no results match "query"'. there way change output language? see text on bottom.

you can set default message -

// jquery version: https://github.com/harvesthq/chosen/blob/master/example.jquery.html $(".chzn-select").chosen({no_results_text: "translated no results matched"});  // prototype version: https://github.com/harvesthq/chosen/blob/master/example.proto.html new chosen($$(".chzn-select")[element_index],{no_results_text: "translated no results matched"}); 

except this, there doesn't seem i18n support.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -