/* gettext library */ var catalog = new Array(); function pluralidx(n) { var v=(n != 1); if (typeof(v) == 'boolean') { return v ? 1 : 0; } else { return v; } } catalog['Article Title Lookup / Link Text'] = 'Titolo articolo / Testo link'; catalog['Attachments'] = 'Allegati'; catalog['Launch'] = 'Avvia'; function gettext(msgid) { var value = catalog[msgid]; if (typeof(value) == 'undefined') { return msgid; } else { return (typeof(value) == 'string') ? value : value[0]; } } function ngettext(singular, plural, count) { value = catalog[singular]; if (typeof(value) == 'undefined') { return (count == 1) ? singular : plural; } else { return value[pluralidx(count)]; } } function gettext_noop(msgid) { return msgid; } function pgettext(context, msgid) { var value = gettext(context + '' + msgid); if (value.indexOf('') != -1) { value = msgid; } return value; } function npgettext(context, singular, plural, count) { var value = ngettext(context + '' + singular, context + '' + plural, count); if (value.indexOf('') != -1) { value = ngettext(singular, plural, count); } return value; } function interpolate(fmt, obj, named) { if (named) { return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])}); } else { return fmt.replace(/%s/g, function(match){return String(obj.shift())}); } } /* formatting library */ var formats = new Array(); formats['DATETIME_FORMAT'] = 'l d F Y H:i:s'; formats['DATE_FORMAT'] = 'd F Y'; formats['DECIMAL_SEPARATOR'] = ','; formats['MONTH_DAY_FORMAT'] = 'j/F'; formats['NUMBER_GROUPING'] = '3'; formats['TIME_FORMAT'] = 'H:i:s'; formats['FIRST_DAY_OF_WEEK'] = '1'; formats['TIME_INPUT_FORMATS'] = ['%H:%M:%S', '%H:%M']; formats['THOUSAND_SEPARATOR'] = '.'; formats['DATE_INPUT_FORMATS'] = ['%d/%m/%Y', '%Y/%m/%d', '%d-%m-%Y', '%Y-%m-%d', '%d-%m-%y', '%d/%m/%y']; formats['YEAR_MONTH_FORMAT'] = 'F Y'; formats['SHORT_DATE_FORMAT'] = 'd/m/Y'; formats['SHORT_DATETIME_FORMAT'] = 'd/m/Y H:i:s'; formats['DATETIME_INPUT_FORMATS'] = ['%d/%m/%Y %H:%M:%S', '%d/%m/%Y %H:%M', '%d/%m/%Y', '%d/%m/%y %H:%M:%S', '%d/%m/%y %H:%M', '%d/%m/%y', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%d-%m-%Y %H:%M:%S', '%d-%m-%Y %H:%M', '%d-%m-%Y', '%d-%m-%y %H:%M:%S', '%d-%m-%y %H:%M', '%d-%m-%y']; function get_format(format_type) { var value = formats[format_type]; if (typeof(value) == 'undefined') { return msgid; } else { return value; } }