Changeset 1414
- Timestamp:
- 14/12/09 14:43:35 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/form.js
r1373 r1414 186 186 187 187 if (!formValid) { 188 alert( "This is not a valid form. \nSubmit canceled.");188 alert(kf.Message.build("i18n:This is not a valid form.\nSubmit canceled.", [], "Formatter.fail")); 189 189 return false; 190 190 } trunk/modules/kauri-jquery/src/main/kauri/static-{build}.key/kauri.util/locale.js
r1413 r1414 35 35 } 36 36 37 var I18N_PREFIX_REGEX = /^i18n: (.*)$/;37 var I18N_PREFIX_REGEX = /^i18n:/; 38 38 /** 39 39 * Builds up the message by applying i18n lookups and argument-formatting … … 46 46 var text = key; 47 47 if (I18N_PREFIX_REGEX.test(key)) { 48 text = locale.getMessage( RegExp.$1);48 text = locale.getMessage(key.replace(I18N_PREFIX_REGEX, '')); 49 49 } 50 50
