
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['You missed %s field. Please correct it.'] = ['',''];
catalog['%(lower_age)s to %(upper_age)s years'] = '%(lower_age)s to %(upper_age)s years';
catalog['<a class="feature" href="/pm/get-express-message/${user_id}/">Use express delivery too</a>'] = '<a class="feature" href="/pm/get-express-message/${user_id}/">Use express delivery too</a>';
catalog['AJAX cannot load external content'] = 'There was an error while loading the site. Please contact Customer Support and tell us which URL you were trying to access.';
catalog['Any Age'] = 'Any Age';
catalog['Are you sure you want to change tabs without saving the page first?'] = 'Are you sure you want to change tabs without saving the page first?';
catalog['Are you sure you want to change the %(field_name)s without saving the page first?'] = 'Are you sure you want to change the %(field_name)s without saving the page first?';
catalog['Are you sure you want to delete the whole thread?'] = 'Are you sure you want to delete the whole thread?';
catalog['Are you sure you want to delete this plugin?'] = 'Are you sure you want to delete this plugin?';
catalog['Are you sure?'] = 'Are you sure?';
catalog['CM'] = 'CM';
catalog['Chat message is waiting...'] = 'A chat message is waiting...';
catalog['Chat'] = 'Chat';
catalog['Check if ${display_name} received your message.<a class="feature" href="/pm/get-find-out/">Become a VIP</a>'] = 'Check if ${display_name} received your message.<a class="feature" href="/pm/get-find-out/">Become a VIP!</a>';
catalog['Close this conversation'] = 'Close this conversation';
catalog['Couldn\'t load this tab. We\'ll try to fix this as soon as possible.'] = 'Couldn\'t load this tab. We\'ll try to fix this as soon as possible.';
catalog['Dear %(recipient_first_name)s,\n\ncan you describe me? Click the link below:\n\n%(describe_url)s\n\nThanks,\n%(sender)s'] = 'Dear %(recipient_first_name)s,\n\ncan you describe me? Click the link below:\n\n%(describe_url)s\n\nThanks,\n%(sender)s';
catalog['Describe me!'] = 'Describe me!';
catalog['Do other images worry you as well?'] = 'Do other images worry you as well?';
catalog['EXPRESS'] = 'EXPRESS';
catalog['Error, Please reload'] = 'Error, please reload the site.';
catalog['Feet/in'] = 'Feet/in';
catalog['Go to Profile'] = 'Visit Profile';
catalog['Invalid Age'] = 'Invalid age';
catalog['Loading profile'] = 'Loading profile';
catalog['Loading...'] = 'Loading...';
catalog['Max %(age)s years'] = 'Max %(age)s years';
catalog['Me'] = 'Me';
catalog['Message deleted'] = 'Message deleted';
catalog['Min %(age)s years'] = 'Min %(age)s years';
catalog['New message!'] = 'New message!';
catalog['No'] = 'No';
catalog['Not all plugins are saved. Are you sure you want to save the page?\nAll unsaved plugin content will tried to save.'] = 'Not all plugins are saved. Are you sure you want to save the page?\nAll unsaved plugin content will tried to save.';
catalog['OR'] = 'Or';
catalog['Offline'] = 'Offline';
catalog['Online'] = 'Online';
catalog['Pick %s more'] = 'Pick %s more';
catalog['Request sent'] = 'Request sent';
catalog['Save note'] = 'Save note';
catalog['Save'] = 'Save';
catalog['Saving...'] = 'Saving...';
catalog['Send your message per express. Your message will appear before all other <a class="feature" href="/pm/get-express-message/${user_id}/">Become a VIP</a>'] = 'Send your message per express. Your message will be displayed on top of all other messages. <a class="feature" href="/pm/get-express-message/${user_id}/">Become a VIP!</a>';
catalog['Sorry, something went wrong.'] = 'Sorry, something went wrong.';
catalog['Sorry, there was an error loading the describe me dialog.'] = 'Sorry, there was an error loading the \'describe me\' dialog.';
catalog['There was a communication error: '] = 'Oops, something went wrong. Please close this window and try again. If this error occurs again, please contact Customer Support.';
catalog['To next question'] = 'Next question';
catalog['Try again'] = 'Try again';
catalog['Type your message here...'] = 'Type your message...';
catalog['Update'] = 'Update';
catalog['Yes'] = 'Yes';
catalog['You missed %s field. Please correct it.'][0] = 'You missed %s field.';
catalog['You missed %s field. Please correct it.'][1] = 'You missed %s fields.';
catalog['Your chat request is pending...'] = 'Your chat request is pending...';
catalog['has sent you a chat message.'] = 'has sent you a chat message.';
catalog['has sent you a chat request.'] = 'has sent you a chat request.';
catalog['is currently on your profile.'] = 'is currently checking out your profile.';


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 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;
    }
}

