aFarkas / webshim

[DEPRECATED] Webshims Lib is a modular capability-based polyfill-loading library
http://aFarkas.github.com/webshim/demos/index.html
MIT License
1.42k stars 201 forks source link

Move error messages from form-validators.js to a language file #369

Open dmromanov opened 10 years ago

dmromanov commented 10 years ago

Currently additional form validation rules (shims/form-validators.js) have error messages hardcoded. It would be great if they could be translated.

aFarkas commented 10 years ago

@dmromanov You are aware, that you can control them already? The coumentation for the custom validation has a section "Controlling the errormessages of custom errors".

dmromanov commented 10 years ago

@aFarkas Sure. I've just wanted to have these messages translated "out of the box". Just like standard validators (/blob/gh-pages/js-webshim/dev/shims/i18n/formcfg-en.js). It's quite wierd to have a half of the messages displayed in local language and an other half displayed in English.