/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog[' symbols.'] = ' symbols.';
catalog['6 a.m.'] = '6 a.m.';
catalog['Add'] = 'Add';
catalog['All Notes - Public'] = 'All Notes - Public';
catalog['All Notes - Your Own Tribe'] = 'All Notes - Your Own Group';
catalog['All Notes - Your Tribes'] = 'All Notes - Your Groups';
catalog['Are you sure you want to delete this comment?'] = 'Are you sure you want to delete this comment?';
catalog['Are you sure you want to delete this note?'] = 'Are you sure you want to delete this note?';
catalog['Available %s'] = 'Available %s';
catalog['Calendar'] = 'Calendar';
catalog['Cancel'] = 'Cancel';
catalog['Choose a time'] = 'Choose a time';
catalog['Choose all'] = 'Choose all';
catalog['Chosen %s'] = 'Chosen %s';
catalog['Clear all'] = 'Clear all';
catalog['Clear'] = 'Clear';
catalog['Clock'] = 'Clock';
catalog['Edit mode:'] = 'Edit mode:';
catalog['Filter by Rating'] = 'Filter by Rating';
catalog['Hide Goozzy Toolbar'] = 'Hide Goozzy Toolbar';
catalog['Hide'] = 'Hide';
catalog['January February March April May June July August September October November December'] = 'January February March April May June July August September October November December';
catalog['Login'] = 'Login';
catalog['Midnight'] = 'Midnight';
catalog['New comments to your notes.'] = 'New comments to your notes.';
catalog['New events in Goozzy.'] = 'Goozzy Alerts.';
catalog['New notes in your layers.'] = 'New notes in your groups.';
catalog['Noon'] = 'Noon';
catalog['Not valid address'] = 'Not valid address';
catalog['Nothing to goozze.'] = 'Nothing to goozze.';
catalog['Now'] = 'Now';
catalog['Passwords do not match'] = 'Passwords do not match';
catalog['Post'] = 'Post';
catalog['Private'] = 'Private';
catalog['Random'] = 'Random';
catalog['Remove'] = 'Remove';
catalog['S M T W T F S'] = 'S M T W T F S';
catalog['Search'] = 'Search';
catalog['Select your choice(s) and click '] = 'Select your choice(s) and click ';
catalog['Show Goozzy Toolbar'] = 'Show Goozzy Toolbar';
catalog['Show notes'] = 'Show Notes';
catalog['Show'] = 'Show';
catalog['Sunday Monday Tuesday Wednesday Thursday Friday Saturday'] = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday';
catalog['Symbols left'] = 'Symbols left';
catalog['The page you are trying to goozze seems not to be viewable by you. It is not available at this time or viewable only by authorized users. Do you wish to try goozzing another page?'] = 'The page you are trying to goozze seems not to be viewable by you. It is not available at this time or viewable only by authorized users. Do you wish to try goozzing another page?';
catalog['This field is required'] = 'This field is required';
catalog['Today'] = 'Today';
catalog['Tomorrow'] = 'Tomorrow';
catalog['Too long comment. Comment length must be less then '] = 'Too long comment. Comment length must be less then ';
catalog['Too long note. Note length must be less then '] = 'Too long note. Note length must be less then ';
catalog['Tribes'] = 'Groups';
catalog['Yesterday'] = 'Yesterday';
catalog['cancel'] = 'cancel';
catalog['close'] = 'close';
catalog['comment deleted'] = 'comment deleted';
catalog['edit'] = 'edit';
catalog['follow'] = 'follow';
catalog['good sight'] = 'Positive Rating';
catalog['long sight'] = 'All Notes';
catalog['own layer'] = 'own group';
catalog['remove'] = 'remove';
catalog['save'] = 'save';
catalog['short sight'] = 'Ratings 5+';
catalog['submit'] = 'submit';
catalog['unfollow'] = 'unfollow';


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