
/* 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['group'] = ['',''];
catalog['There is <span>%d place</span> containing \'%s\''] = ['',''];
catalog['There is <span>%d other place</span> found from text'] = ['',''];
catalog['photo'] = ['',''];
catalog['There is <span>%d location</span> found from text'] = ['',''];
catalog['video'] = ['',''];
catalog['There is <span>%d other place</span> containing \'%s\''] = ['',''];
catalog['post'] = ['',''];
catalog['event'] = ['',''];
catalog[' ! Error '] = '! Error';
catalog[' - '] = '- ';
catalog[' - Uploaded '] = '- Uploaded';
catalog[' OK '] = 'OK';
catalog[' Please wait, processing... '] = 'Please wait, processing...';
catalog[' and '] = 'My Noovo';
catalog['<h3>Uploading...</h3>'] = '<h3>Uploading...</h3>';
catalog['Add a tag'] = 'Add a tag';
catalog['Add post'] = 'Add post';
catalog['Address'] = 'Address';
catalog['Advanced'] = 'Advanced';
catalog['Are you sure you want to remove this widget from your Noovo? <a href=\'#\' class=\'undorm\'>Undo</a> or <a href=\'#\'>confirm</a>.'] = 'Are you sure you want to remove this widget from your Noovo? <a href=\'#\' class=\'undorm\'>Undo</a> or <a href=\'#\'>confirm</a>.';
catalog['Available!'] = 'Available!';
catalog['Cancel'] = 'Cancel';
catalog['City'] = 'City';
catalog['Click on the map to select place'] = 'Click on the map to select place';
catalog['Comment'] = 'Comment';
catalog['Couldn\'t remove widget'] = 'Couldn\'t remove widget';
catalog['Couldn\'t save changes. I\'m so ashamed.'] = 'Couldn\'t save changes. I\'m so ashamed.';
catalog['Country'] = 'Country';
catalog['Enter place name'] = 'Enter place name';
catalog['Enter place'] = 'Enter place';
catalog['Enter the URL for this link:'] = 'Enter the URL for this link:';
catalog['Event'] = 'Event';
catalog['Free'] = 'Free';
catalog['Hide'] = 'Hide';
catalog['Hint: hold Ctrl, Cmd or Shift key to select multiple files.'] = 'Hint: hold Ctrl, Cmd or Shift key to select multiple files.';
catalog['IP location: %s <span>Select</span>'] = 'IP location: %s <span>Select</span>';
catalog['Load'] = 'Load';
catalog['Loading'] = 'Loading';
catalog['Location is not set.'] = 'Location is not set.';
catalog['Location'] = 'Location';
catalog['Locations from content'] = 'Locations from content';
catalog['Minimize'] = 'Minimize';
catalog['My Noovo'] = 'My Noovo';
catalog['No location found from text'] = 'No location found from text';
catalog['No location found'] = 'No location found';
catalog['No location search match'] = 'No location search match';
catalog['No nearby places found'] = 'No nearby places found';
catalog['No one yet. Go ahead, add some!'] = 'No one yet. Go ahead, add some!';
catalog['No places found from content'] = 'No places found from content';
catalog['No title'] = 'No title';
catalog['Nothing on Noovo.'] = 'Nothing on Noovo.';
catalog['Original name, we like it!'] = 'Original name, we like it!';
catalog['Person'] = 'Person';
catalog['Photo'] = 'Photo';
catalog['Place'] = 'Place';
catalog['Places found from content'] = 'Places found from content';
catalog['Places found'] = 'Places found';
catalog['Please select the text you wish to hyperlink.'] = 'Please select the text you wish to hyperlink.';
catalog['Publish'] = 'Publish';
catalog['Remove'] = 'Remove';
catalog['Save'] = 'Save';
catalog['Search the web.'] = 'Search the web.';
catalog['Search'] = 'Search';
catalog['Searching'] = 'Searching';
catalog['Searcing places nearby'] = 'Searcing places nearby';
catalog['Select location from list or map'] = 'Select location from list or map';
catalog['Select on map'] = 'Select on map';
catalog['Selected location'] = 'Selected location';
catalog['Set Location'] = 'Set Location';
catalog['Set location manually'] = 'Set location manually';
catalog['Set manually'] = 'Set manually';
catalog['Sorry, we can\'t find anything useful on this site.'] = 'Sorry, we can\'t find anything useful on this site.';
catalog['Sorry, we can\'t process this site.'] = 'Sorry, we can\'t process this site.';
catalog['Story'] = 'Story';
catalog['Suggested place names'] = 'Suggested place names';
catalog['Tags'] = 'Tags';
catalog['There is <span>%d location</span> found from text'][0] = 'There is <span>%d location</span> found from text';
catalog['There is <span>%d location</span> found from text'][1] = ' There are <span>%d locations</span> found from text';
catalog['There is <span>%d other place</span> containing \'%s\''][0] = 'There is <span>%d other place</span> containing \'%s\'';
catalog['There is <span>%d other place</span> containing \'%s\''][1] = 'There are <span>%d other places</span> containing \'%s\'';
catalog['There is <span>%d other place</span> found from text'][0] = 'There is <span>%d other place</span> found from text';
catalog['There is <span>%d other place</span> found from text'][1] = 'There are <span>%d other places</span> found from text';
catalog['There is <span>%d place</span> containing \'%s\''][0] = 'There is <span>%d place</span> containing \'%s\'';
catalog['There is <span>%d place</span> containing \'%s\''][1] = 'There are <span>%d places</span> containing \'%s\'';
catalog['This username already exists.'] = 'This username already exists.';
catalog['Upload another'] = 'Upload another';
catalog['Uploading...'] = 'Uploading...';
catalog['Username is available.'] = 'Username is available.';
catalog['Venue'] = 'Venue';
catalog['Video'] = 'Video';
catalog['We found %s <span>Select</span>'] = 'We found %s <span>Select</span>';
catalog['You are about to invite %s email recipients.'] = 'You are about to invite %s email recipients.';
catalog['You are about to invite %s users and %s email recipients.'] = 'You are about to invite %s users and %s email recipients.';
catalog['You are about to invite %s users.'] = 'You are about to invite %s users.';
catalog['You are about to send a message to %s email recipients.'] = 'You are about to send a message to %s email recipients.';
catalog['You are about to send a message to %s users and %s email recipients.'] = 'You are about to send a message to %s users and %s email recipients.';
catalog['You are about to send a message to %s users.'] = 'You are about to send a message to %s users.';
catalog['You are about to share content with %s email recipients.'] = 'You are about to share content with %s email recipients.';
catalog['You are about to share content with %s users and %s email recipients.'] = 'You are about to share content with %s users and %s email recipients.';
catalog['You are about to share content with %s users.'] = 'You are about to share content with %s users.';
catalog['You need to upload at least one file'] = 'You need to upload at least one file';
catalog['characters left'] = 'characters left';
catalog['characters'] = 'characters';
catalog['event'][0] = 'event';
catalog['event'][1] = 'events';
catalog['fast'] = 'fast';
catalog['group'][0] = 'group';
catalog['group'][1] = 'groups';
catalog['medium'] = 'medium';
catalog['more characters'] = 'more characters';
catalog['photo'][0] = 'photo';
catalog['photo'][1] = 'photos';
catalog['population'] = 'population';
catalog['post'][0] = 'post';
catalog['post'][1] = 'posts';
catalog['remove'] = 'remove';
catalog['slow'] = 'slow';
catalog['video'][0] = 'video';
catalog['video'][1] = 'videos';


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