

(function(globals) {

  var django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    var v=(n != 1);
    if (typeof(v) == 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "%(exhibition)s exhibitions in %(year)s years": "%(exhibition)s exhibitions in %(year)s years",
    "%(num)s more temporary exhibitions": "%(num)s more temporary exhibitions",
    "About": "About",
    "Activity": "Activity",
    "All": "All",
    "All exhibitions & events": "All exhibitions & events",
    "All exhibitions and events": "All exhibitions and events",
    "April": "April",
    "August": "August",
    "Build your own series": "Build your own series",
    "By content type": "By content type",
    "By date": "By date",
    "Calendar": "Calendar",
    "Click to show filter options": "Click to show filter options",
    "Close": "Close",
    "Collection": "Collection",
    "Coming soon": "Coming soon",
    "Concert series": "Concert series",
    "Concerts": "Concerts",
    "Concerts by date": "Concerts by date",
    "Currently shown month:": "Currently shown month:",
    "Custom series": "Custom series",
    "December": "December",
    "Events": "Events",
    "Exhibitions": "Exhibitions",
    "Families": "Families",
    "February": "February",
    "Films": "Films",
    "Filter by date": "Filter by date",
    "Filter by type": "Filter by type",
    "Find year": "Find year",
    "Fri": "Fri",
    "Friday": "Friday",
    "January": "January",
    "Join and support": "Join and support",
    "July": "July",
    "Jump to the year %(year)s": "Jump to the year %(year)s",
    "June": "June",
    "Learning": "Learning",
    "Lectures": "Lectures",
    "Library": "Library",
    "Loading search suggestions\u2026": "Loading search suggestions\u2026",
    "Loading...": "Loading...",
    "Loading\u2026": "Loading\u2026",
    "March": "March",
    "May": "May",
    "Missing exhibition end date\u0004missing": "missing",
    "Mon": "Mon",
    "Monday": "Monday",
    "More concert series": "More concert series",
    "More concerts": "More concerts",
    "More events": "More events",
    "More films": "More films",
    "More lectures": "More lectures",
    "More shows and performances": "More shows and performances",
    "More special events": "More special events",
    "More tours and encounters": "More tours and encounters",
    "Next image": "Next image",
    "Next month": "Next month",
    "No concerts found in the specified date": "No concerts found in the specified date",
    "No events found": "No events found",
    "No events found in the specified date": "No events found in the specified date",
    "No exhibitions and events found": "No exhibitions and events found",
    "No exhibitions found": "No exhibitions found",
    "No films found in the specified date": "No films found in the specified date",
    "No lectures found in the specified date": "No lectures found in the specified date",
    "November": "November",
    "Now and upcoming": "Now and upcoming",
    "October": "October",
    "Open search": "Open search",
    "Opens %(date)s": "Opens %(date)s",
    "Past exhibitions": "Past exhibitions",
    "Permanent exhibitions": "Permanent exhibitions",
    "Plan your visit": "Plan your visit",
    "Plural...\u0004Concert series": "Concert series",
    "Press enter to accept this suggestion": "Press enter to accept this suggestion",
    "Press enter to search for \"%{query}s\".": "Press enter to search for \"%{query}s\".",
    "Previous image": "Previous image",
    "Previous month": "Previous month",
    "Sat": "Sat",
    "Saturday": "Saturday",
    "Search": "Search",
    "Search\u2026": "Search\u2026",
    "Select date": "Select date",
    "Selected autosuggestion %{num}s of %{total}s: %{type}s - %{title}s.": "Selected autosuggestion %{num}s of %{total}s: %{type}s - %{title}s.",
    "Selection will close this dialog and display results in the page": "Selection will close this dialog and display results in the page",
    "September": "September",
    "Short form of day of the week\u0004Fr": "Fr",
    "Short form of day of the week\u0004Mo": "Mo",
    "Short form of day of the week\u0004Sa": "Sa",
    "Short form of day of the week\u0004Su": "Su",
    "Short form of day of the week\u0004Th": "Th",
    "Short form of day of the week\u0004Tu": "Tu",
    "Short form of day of the week\u0004We": "We",
    "Short month name\u0004Apr": "Apr",
    "Short month name\u0004Aug": "Aug",
    "Short month name\u0004Dec": "Dec",
    "Short month name\u0004Feb": "Feb",
    "Short month name\u0004Jan": "Jan",
    "Short month name\u0004Jul": "Jul",
    "Short month name\u0004Jun": "Jun",
    "Short month name\u0004Mar": "Mar",
    "Short month name\u0004May": "May",
    "Short month name\u0004Nov": "Nov",
    "Short month name\u0004Oct": "Oct",
    "Short month name\u0004Sep": "Sep",
    "Shows & performances": "Shows & performances",
    "Shows and performances": "Shows and performances",
    "Skip date selection": "Skip date selection",
    "Special events": "Special events",
    "Store": "Store",
    "Sun": "Sun",
    "Sunday": "Sunday",
    "Tel Aviv Museum of Art": "Tel Aviv Museum of Art",
    "Temporary exhibitions": "Temporary exhibitions",
    "There are %{number}s search suggestions.": "There are %{number}s search suggestions.",
    "This weekend": "This weekend",
    "Thu": "Thu",
    "Thursday": "Thursday",
    "Today": "Today",
    "Tours & encounters": "Tours & encounters",
    "Tours and encounters": "Tours and encounters",
    "Tue": "Tue",
    "Tuesday": "Tuesday",
    "Until %(date)s": "Until %(date)s",
    "Upcoming events": "Upcoming events",
    "Wed": "Wed",
    "Wednesday": "Wednesday",
    "When autocomplete results are available use the up and down arrow keys to review results and enter to select.": "When autocomplete results are available use the up and down arrow keys to review results and enter to select.",
    "\u2192": "\u2192"
  };
  for (var key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      var value = django.catalog[msgid];
      if (typeof(value) == 'undefined') {
        return msgid;
      } else {
        return (typeof(value) == 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      var value = django.catalog[singular];
      if (typeof(value) == 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value[django.pluralidx(count)];
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      var value = django.gettext(context + '\x04' + msgid);
      if (value.indexOf('\x04') != -1) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.indexOf('\x04') != -1) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(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 */

    django.formats = {
    "DATETIME_FORMAT": "N j, Y, P",
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d",
      "%m/%d/%Y %H:%M:%S",
      "%m/%d/%Y %H:%M:%S.%f",
      "%m/%d/%Y %H:%M",
      "%m/%d/%Y",
      "%m/%d/%y %H:%M:%S",
      "%m/%d/%y %H:%M:%S.%f",
      "%m/%d/%y %H:%M",
      "%m/%d/%y"
    ],
    "DATE_FORMAT": "N j, Y",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%m/%d/%Y",
      "%m/%d/%y"
    ],
    "DECIMAL_SEPARATOR": ".",
    "FIRST_DAY_OF_WEEK": 0,
    "MONTH_DAY_FORMAT": "F j",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "m/d/Y P",
    "SHORT_DATE_FORMAT": "m/d/Y",
    "THOUSAND_SEPARATOR": ",",
    "TIME_FORMAT": "P",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "F Y"
  };

    django.get_format = function(format_type) {
      var value = django.formats[format_type];
      if (typeof(value) == 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }

}(this));

