Changeset 1410
- Timestamp:
- 14/12/09 13:20:55 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/kauri-jquery/src/main/kauri/static-{build}.key/kauri.util/locale.js
r1395 r1410 35 35 } 36 36 37 var I18N_PREFIX_REGEX = /^i18n:(.*)$/ g;37 var I18N_PREFIX_REGEX = /^i18n:(.*)$/; 38 38 /** 39 39 * Builds up the message by applying i18n lookups and argument-formatting … … 45 45 key = key || "No message specified."; 46 46 var text = key; 47 var result = I18N_PREFIX_REGEX.exec(key);48 if (result)49 text = locale.getMessage(result[1]);47 if (I18N_PREFIX_REGEX.test(key)) { 48 text = locale.getMessage(RegExp.$1); 49 } 50 50 51 51 args = args || []; // guarantee we pass an array down to the format function.
