
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['6 a.m.'] = '06';
catalog['Add'] = 'Lis\u00e4\u00e4 uusi';
catalog['Available %s'] = 'Mahdolliset %s';
catalog['Calendar'] = 'Kalenteri';
catalog['Cancel'] = 'Peruuta';
catalog['Choose a time'] = 'Valitse kellonaika';
catalog['Choose all'] = 'Valitse kaikki';
catalog['Chosen %s'] = 'Valitut %s';
catalog['Clear all'] = 'Tyhjenn\u00e4 kaikki';
catalog['Clock'] = 'Kello';
catalog['January February March April May June July August September October November December'] = 'Tammikuu Helmikuu Maaliskuu Huhtikuu Toukokuu Kes\u00e4kuu Hein\u00e4kuu Elokuu Syyskuu Lokakuu Marraskuu Joulukuu';
catalog['Midnight'] = '24';
catalog['Noon'] = '12';
catalog['Now'] = 'Nyt';
catalog['Remove'] = 'Poista';
catalog['S M T W T F S'] = 'S M T K T P L';
catalog['Select your choice(s) and click '] = 'Valitse vasemmalta ja napsauta ';
catalog['Sunday Monday Tuesday Wednesday Thursday Friday Saturday'] = 'Sunnuntai Maanantai Tiistai Keskiviikko Torstai Perjantai Lauantai';
catalog['Today'] = 'T\u00e4n\u00e4\u00e4n';
catalog['Tomorrow'] = 'Huomenna';
catalog['Yesterday'] = 'Eilen';


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/, function(match){return String(obj[match.slice(2,-2)])});
  } else {
    return fmt.replace(/%s/, function(match){return String(obj.shift())});
  }
}
