企業情報 │ お問い合わせ │サポート
[ アクションのバリデータイベント ] [ メニュー ] [ レンジ入力の最小限の設定]


バリデータのローカライズ

Terveisiä äidille! Junassa on hauska matkustaa. Kokoomus haisee. Some random finnish. Here is the mandatory localization example.

サンプル登録フォーム

誤った値を入力し、送信ボタンを押してください。

スタンドアロン・デモ

JavaScript コード

We use $.tools.validator.localize method to supply a different language for all build-in validators. Look for localization documentation for the details.

// supply the language
$.tools.validator.localize("fi", {
	'*'			: 'Virheellinen arvo',
	':email'  	: 'Virheellinen sähköpostiosoite',
	':number' 	: 'Arvon on oltava numeerinen',
	':url' 		: 'Virheellinen URL',
	'[max]'	 	: 'Arvon on oltava pienempi, kuin $1',
	'[min]'		: 'Arvon on oltava suurempi, kuin $1',
	'[required]'	: 'Kentän arvo on annettava'
});
 
// use the finnish language in the validator
$("#myform").validator({ lang: 'fi' });

[ アクションのバリデータイベント ] [ メニュー ] [ レンジ入力の最小限の設定]
Copyright(c)2005 Your site name All rights reserved. テンプレートby LinkFly