
/* 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[' characters (it has '] = ' characters (it has ';
catalog[' is not a valid email address.'] = ' is not a valid email address.';
catalog[' items (it has '] = ' items (it has ';
catalog['Address 1'] = 'Address 1';
catalog['Address 2'] = 'Address 2';
catalog['An unknown error occurred while uploading your image. Please try again.'] = 'An unknown error occurred while uploading your image. Please try again.';
catalog['Are you sure you want to delete this ticket type?'] = 'Are you sure you want to delete this ticket type?';
catalog['Are you sure you wish to delete your profile picture?'] = 'Are you sure you wish to delete your profile picture?';
catalog['At The Door - Hidden'] = 'At The Door - Hidden';
catalog['At The Door'] = 'At The Door';
catalog['Both the start and end date for this event are set in the past.  Do you want to continue?'] = 'Both the start and end date for this event are set in the past.  Do you want to continue?';
catalog['Both the start and end date for this event are set in the past. Do you want to continue?'] = 'Both the start and end date for this event are set in the past. Do you want to continue?';
catalog['Changes to your event will not be saved.'] = 'Changes to your event will not be saved.';
catalog['Clicking OK will update ALL events using this location.'] = 'Clicking OK will update ALL events using this location.';
catalog['Create a new organizer'] = 'Create a new organizer';
catalog['Description of your organization'] = 'Description of your organization';
catalog['Do you wish to continue?'] = 'Do you wish to continue?';
catalog['Ensure that this value has at least '] = 'Ensure that this value has at least ';
catalog['Ensure that this value has at most '] = 'Ensure that this value has at most ';
catalog['Ensure this field has at most '] = 'Ensure this field has at most ';
catalog['Enter a comma separated list of keywords'] = 'Enter a comma separated list of keywords';
catalog['Enter a number between 1 and 100.'] = 'Enter a number between 1 and 100.';
catalog['Enter a valid email address'] = 'Enter a valid email address';
catalog['Enter the name of your event'] = 'Enter the name of your event';
catalog['Enter the name of your location'] = 'Enter the name of your location';
catalog['Enter the name of your organization'] = 'Enter the name of your organization';
catalog['Examples:'] = 'Examples:';
catalog['Facebook user profiles are not supported.<br />Please add a Facebook page.'] = 'Facebook user profiles are not supported.<br />Please add a Facebook page.';
catalog['Free Tickets'] = 'Free Tickets';
catalog['General Admission'] = 'General Admission';
catalog['Go to Collect Custom Information within event management for additional options'] = 'Go to Collect Custom Information within event management for additional options';
catalog['Help me'] = 'Help me';
catalog['Hidden'] = 'Hidden';
catalog['I\'d like to request a refund for '] = 'I\'d like to request a refund for ';
catalog['Invalid tax ID.'] = 'Invalid tax ID.';
catalog['Last saved at'] = 'Last saved at';
catalog['Limit of %d1 exceeded by %d2'] = 'Limit of %d1 exceeded by %d2';
catalog['My order ID is '] = 'My order ID is ';
catalog['My profile: '] = 'My profile: ';
catalog['My profile:'] = 'My profile:';
catalog['Never'] = 'Never';
catalog['New Card'] = 'New Card';
catalog['Not Started'] = 'Not Started';
catalog['Now'] = 'Now';
catalog['On Sale'] = 'On Sale';
catalog['Only the organizer of this event can issue you a refund.  Eventbrite is the self-service online tool that the event organizer used to sell tickets or process registrations to this event.'] = 'Only the organizer of this event can issue you a refund.  Eventbrite is the self-service online tool that the event organizer used to sell tickets or process registrations to this event.';
catalog['Please add custom dates to your repeating event.'] = 'Please add custom dates to your repeating event.';
catalog['Please check if you\'d like your event to repeat daily, weekly, monthly or custom.'] = 'Please check if you\'d like your event to repeat daily, weekly, monthly or custom.';
catalog['Please check your daily repeat schedule.'] = 'Please check your daily repeat schedule.';
catalog['Please check your monthly repeat schedule.'] = 'Please check your monthly repeat schedule.';
catalog['Please create at least one ticket.'] = 'Please create at least one ticket.';
catalog['Please enter a number between %(min_quantity)s and %(max_quantity)s'] = 'Please enter a number between %(min_quantity)s and %(max_quantity)s';
catalog['Please enter a number'] = 'Please enter a number';
catalog['Please enter a valid Facebook page.'] = 'Please enter a valid Facebook page.';
catalog['Please enter a valid Twitter handle.'] = 'Please enter a valid Twitter handle.';
catalog['Please enter a valid email address.'] = 'Please enter a valid email address.';
catalog['Please enter a valid number for your monthly repeat schedule.'] = 'Please enter a valid number for your monthly repeat schedule.';
catalog['Please enter a valid number of days for your daily repeat schedule.'] = 'Please enter a valid number of days for your daily repeat schedule.';
catalog['Please enter a valid number of days for your monthly repeat schedule.'] = 'Please enter a valid number of days for your monthly repeat schedule.';
catalog['Please enter a valid number of weeks for your weekly repeat schedule.'] = 'Please enter a valid number of weeks for your weekly repeat schedule.';
catalog['Please enter only letters, numbers, or dashes.'] = 'Please enter only letters, numbers, or dashes.';
catalog['Please fill out the missing information.'] = 'Please fill out the missing information.';
catalog['Please provide a ticket name.'] = 'Please provide a ticket name.';
catalog['Please provide a valid organization name'] = 'Please provide a valid organization name';
catalog['Please select an ending repeat date for your daily event'] = 'Please select an ending repeat date for your daily event';
catalog['Please select an ending repeat date for your monthly event'] = 'Please select an ending repeat date for your monthly event';
catalog['Please select an ending repeat date for your weekly event'] = 'Please select an ending repeat date for your weekly event';
catalog['Please select at least one day for your weekly repeat schedule.'] = 'Please select at least one day for your weekly repeat schedule.';
catalog['Please set payment options so you can receive the money from your ticket sales.'] = 'Please set payment options so you can receive the money from your ticket sales.';
catalog['Remaining:'] = 'Remaining:';
catalog['Sales Ended'] = 'Sales Ended';
catalog['Sales start time for  has been modified to begin immediately because  has been deleted.'] = 'Sales start time for  has been modified to begin immediately because  has been deleted.';
catalog['State / Province / Region'] = 'State / Province / Region';
catalog['The UA Number is missing for Google Analytics Tracking'] = 'The UA Number is missing for Google Analytics Tracking';
catalog['The daily repeat end date is set in the past.  No available dates will be shown on the registration page.'] = 'The daily repeat end date is set in the past.  No available dates will be shown on the registration page.';
catalog['The end date for this event is set in the past.  Do you wish to continue?'] = 'The end date for this event is set in the past.  Do you wish to continue?';
catalog['The end date is not formatted properly.  Please enter a date in following format: 12/28/2006.'] = 'The end date is not formatted properly.  Please enter a date in following format: 12/28/2006.';
catalog['The ending time of your event must be later than the start time before you can publish.'] = 'The ending time of your event must be later than the start time before you can publish.';
catalog['The monthly repeat end date is set in the past.  No available dates will be shown on the registration page.'] = 'The monthly repeat end date is set in the past.  No available dates will be shown on the registration page.';
catalog['The repeat end date cannot be before the event start date.'] = 'The repeat end date cannot be before the event start date.';
catalog['The repeat end date is set before the event starts.  No available dates will be shown on the registration page.'] = 'The repeat end date is set before the event starts.  No available dates will be shown on the registration page.';
catalog['The start date for this event is set in the past.  Do you wish to continue?'] = 'The start date for this event is set in the past.  Do you wish to continue?';
catalog['The start date is not formatted properly.  Please enter a date in following format: 12/28/2006.'] = 'The start date is not formatted properly.  Please enter a date in following format: 12/28/2006.';
catalog['The weekly repeat end date is set in the past.  No available dates will be shown on the registration page.'] = 'The weekly repeat end date is set in the past.  No available dates will be shown on the registration page.';
catalog['This field is required.'] = 'This field is required.';
catalog['To change ONLY this event, click Cancel and select create a new location.'] = 'To change ONLY this event, click Cancel and select create a new location.';
catalog['Type to select a City'] = 'Type to select a City';
catalog['Type to select a city'] = 'Type to select a city';
catalog['Unlimited'] = 'Unlimited';
catalog['Unnamed Location'] = 'Unnamed Location';
catalog['Unnamed Organizer'] = 'Unnamed Organizer';
catalog['Warning!'] = 'Warning!';
catalog['You are about to edit a location that is used in %(num_events)s other events.'] = 'You are about to edit a location that is used in %(num_events)s other events.';
catalog['You can enter text to appear above the web page, or customize this header by entering HTML code.'] = 'You can enter text to appear above the web page, or customize this header by entering HTML code.';
catalog['You can enter text to appear below the web page, or customize this footer by entering HTML code.'] = 'You can enter text to appear below the web page, or customize this footer by entering HTML code.';
catalog['You have exceeded your limit of %d1 by %d2 character(s)'] = 'You have exceeded your limit of %d1 by %d2 character(s)';
catalog['You have unsaved changes to your event.'] = 'You have unsaved changes to your event.';
catalog['You have unsaved changes. Click save.'] = 'You have unsaved changes. Click save.';
catalog['You must have at least one ticket created before you can publish this event'] = 'You must have at least one ticket created before you can publish this event';
catalog['You must supply an Event Title before you can publish your event.'] = 'You must supply an Event Title before you can publish your event.';
catalog['Your "Personalized Event URL" can only include lowercase letters and numbers'] = 'Your "Personalized Event URL" can only include lowercase letters and numbers';
catalog['Your \'repeat until date\' is set to a date before your event start date.'] = 'Your \'repeat until date\' is set to a date before your event start date.';
catalog['Your input exceeds the max limit of '] = 'Your input exceeds the max limit of ';
catalog['Zip / Postal Code'] = 'Zip / Postal Code';
catalog['on the following days'] = 'on the following days';
catalog['your organization'] = 'your organization';


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'] = 'N j, Y, P';
formats['DATE_FORMAT'] = 'N j, Y';
formats['DECIMAL_SEPARATOR'] = '.';
formats['MONTH_DAY_FORMAT'] = 'F j';
formats['NUMBER_GROUPING'] = '3';
formats['TIME_FORMAT'] = 'P';
formats['FIRST_DAY_OF_WEEK'] = '0';
formats['TIME_INPUT_FORMATS'] = ['%H:%M:%S', '%H:%M'];
formats['THOUSAND_SEPARATOR'] = ',';
formats['DATE_INPUT_FORMATS'] = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y'];
formats['YEAR_MONTH_FORMAT'] = 'F Y';
formats['SHORT_DATE_FORMAT'] = 'm/d/Y';
formats['SHORT_DATETIME_FORMAT'] = 'm/d/Y P';
formats['DATETIME_INPUT_FORMATS'] = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y'];

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

