

(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 = {
    "%(num)s allowed. Registrations do not count towards the limit of %(total)s.": "%(num)s allowed. Registrations do not count towards the limit of %(total)s.", 
    "%(num)s of the %(total)s can be this type": "%(num)s of the %(total)s can be this type", 
    "All Venues": "All Venues", 
    "An error occurred.  Please check your input and try again.": "An error occurred.  Please check your input and try again.", 
    "An error occurred.  Please try again.": "An error occurred.  Please try again.", 
    "Any Instructor": "Any Instructor", 
    "Available Time Slots": "Available Time Slots", 
    "CVC": "CVC", 
    "Cancel": "Cancel", 
    "Cancel Subscription": "Cancel Subscription", 
    "Choose File": "Choose File", 
    "Choose which of your memberships to use for this subscription.": "Choose which of your memberships to use for this subscription.", 
    "Class Type": "Class Type", 
    "Class Types": "Class Types", 
    "Class type is required": "Class type is required", 
    "Contact Information": "Contact Information", 
    "Copied!": "Copied!", 
    "Customer": "Customer", 
    "Customer required": "Customer required", 
    "Customers": "Customers", 
    "Duration": "Duration", 
    "Emergency Contact": "Emergency Contact", 
    "End Date": "End Date", 
    "Ends on date": "Ends on date", 
    "Error": "Error", 
    "Errors found.": "Errors found.", 
    "Female": "Female", 
    "Find a customer": "Find a customer", 
    "Full": "Full", 
    "Full (%s person)": [
      "Full (%s person)", 
      "Full (%s people)"
    ], 
    "Loading the sessions on those days...": "Loading the sessions on those days...", 
    "Loading...": "Loading...", 
    "Male": "Male", 
    "Membership": "Membership", 
    "OK": "OK", 
    "Open": "Open", 
    "Open ended - until membership expires (default)": "Open ended - until membership expires (default)", 
    "Please Answer the following questions": "Please Answer the following questions", 
    "Please complete the requirements first": "Please complete the requirements first", 
    "Please double check the %(field)s, it doesn't look right.": "Please double check the %(field)s, it doesn't look right.", 
    "Please provide contact details": "Please provide contact details", 
    "Please provide emergency contact details": "Please provide emergency contact details", 
    "Please read the waiver and accept it by following the directions below.": "Please read the waiver and accept it by following the directions below.", 
    "Prefer not to say": "Prefer not to say", 
    "Processing your registration...": "Processing your registration...", 
    "Purchase": "Purchase", 
    "Purchase a membership to subscribe to this class.": "Purchase a membership to subscribe to this class.", 
    "Purchasing": "Purchasing", 
    "Questions": "Questions", 
    "Registrations count towards the limit of %(num_allowed)s.": "Registrations count towards the limit of %(num_allowed)s.", 
    "Return to Schedule": "Return to Schedule", 
    "Save Changes": "Save Changes", 
    "Select Your Membership": "Select Your Membership", 
    "Select a Class Type": "Select a Class Type", 
    "Select a Customer": "Select a Customer", 
    "Select a membership to purchase": "Select a membership to purchase", 
    "Select a membership to use": "Select a membership to use", 
    "Select a venue to see its timeslots": "Select a venue to see its timeslots", 
    "Select an end date": "Select an end date", 
    "Select an end date or choose open ended": "Select an end date or choose open ended", 
    "Set Subscription Duration": "Set Subscription Duration", 
    "Start Date": "Start Date", 
    "Start date": "Start date", 
    "Subscribe": "Subscribe", 
    "Success!": "Success!", 
    "The membership below will be applied to this class subscription.": "The membership below will be applied to this class subscription.", 
    "There is %s person on the waitlist": [
      "There is %s person on the waitlist", 
      "There are %s people on the waitlist"
    ], 
    "This is the only limit that applies to this type.": "This is the only limit that applies to this type.", 
    "This subscription will run": "This subscription will run", 
    "Time Slot": "Time Slot", 
    "Time Slots": "Time Slots", 
    "Time slot is required": "Time slot is required", 
    "Unlimited": "Unlimited", 
    "Valid from": "Valid from", 
    "Variable": "Variable", 
    "Venue": "Venue", 
    "Venues": "Venues", 
    "Waitlist": "Waitlist", 
    "Waitlist active with %s person already on it.": [
      "Waitlist active with %s person already on it.", 
      "Waitlist active with %s people already on it."
    ], 
    "Waitlist active with no one on it.": "Waitlist active with no one on it.", 
    "Waiver": "Waiver", 
    "We're sorry. An error occurred": "We're sorry. An error occurred", 
    "Weeks": "Weeks", 
    "Which family member is this class subscription for?": "Which family member is this class subscription for?", 
    "You have %s question left to answer": [
      "You have %s question left to answer", 
      "You have %s questions left to answer"
    ], 
    "You have no questions left to answer": "You have no questions left to answer", 
    "You have shared contact details. You can edit your information below": "You have shared contact details. You can edit your information below", 
    "You have shared emergency contact details. You can edit your information below": "You have shared emergency contact details. You can edit your information below", 
    "You have signed this waiver": "You have signed this waiver", 
    "You're subscribed to": "You're subscribed to", 
    "Your membership starts on": "Your membership starts on", 
    "at": "at", 
    "card number": "card number", 
    "cardholder name": "cardholder name", 
    "enter a number": "enter a number", 
    "enter a number between 0 and 100": "enter a number between 0 and 100", 
    "enter a time (e.g. 5pm)": "enter a time (e.g. 5pm)", 
    "expiration date": "expiration date", 
    "from": "from", 
    "loading": "loading", 
    "please enter an answer": "please enter an answer", 
    "please provide an explanation": "please provide an explanation", 
    "price has to be a non-negative number": "price has to be a non-negative number", 
    "separate from the %(num)s": "separate from the %(num)s", 
    "this field is required": "this field is required", 
    "to": "to", 
    "unlimited registrations from %(num)s type(s)": "unlimited registrations from %(num)s type(s)", 
    "with": "with", 
    "within the %(num)s": "within the %(num)s"
  };
  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": "1", 
    "JAVASCRIPT_12_HOUR_TIME": "true", 
    "JAVASCRIPT_DATEPICKER_DAY_OF_MONTH_FORMAT": "M dd", 
    "JAVASCRIPT_DATEPICKER_DAY_OF_WEEK_FORMAT": "D M d", 
    "JAVASCRIPT_DATEPICKER_LOCALE": "", 
    "JAVASCRIPT_DATETIME_FORMAT": "ddd MMM d h tt", 
    "JAVASCRIPT_DATE_FORMAT": "mm/dd/yy", 
    "JAVASCRIPT_DAY_OF_WEEK_FORMAT": "ddd MMM d", 
    "JAVASCRIPT_HOUR_FORMAT": "h tt", 
    "JAVASCRIPT_LONG_DATETIME_FORMAT": "ddd d MMM h:mm tt", 
    "JAVASCRIPT_TIME_FORMAT": "h:mm tt", 
    "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": [
      "%I:%M %p", 
      "%I:%M%p"
    ], 
    "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));

