if(typeof(ss) == 'undefined') ss = {}; /** * Stub implementation for ss.i18n code. * Use instead of framework/javascript/i18n.js * if you want to use any SilverStripe javascript * without internationalization support. */ ss.i18n = { currentLocale: 'en_US', defaultLocale: 'en_US', _t: function (entity, fallbackString, priority, context) { return fallbackString; }, sprintf: function(S) { if (arguments.length == 1) return S; var args = [], len = arguments.length, index = 0, regx = new RegExp('(.?)(%s)', 'g'), result; for (var i=1; i