
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['6 a.m.'] = '6 a.m.';
catalog['Add'] = 'Add';
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['Clock'] = 'Clock';
catalog['Hide'] = 'Esconder';
catalog['January February March April May June July August September October November December'] = 'Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre';
catalog['Midnight'] = 'Midnight';
catalog['Noon'] = 'Noon';
catalog['Now'] = 'Now';
catalog['Remove'] = 'Remove';
catalog['S M T W T F S'] = 'D L M M J V S';
catalog['Select your choice(s) and click '] = 'Make your choices and click ';
catalog['Show'] = 'Mostrar';
catalog['Sunday Monday Tuesday Wednesday Thursday Friday Saturday'] = 'Domingo Lunes Martes Mi\u00e9rcoles Jueves Viernes S\u00e1bado';
catalog['Today'] = 'Today';
catalog['Tomorrow'] = 'Tomorrow';
catalog['Yesterday'] = 'Yesterday';


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

