/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['6 a.m.'] = '\u5348\u524d 6 \u6642';
catalog['Add'] = '\u8ffd\u52a0';
catalog['Available %s'] = '\u5229\u7528\u53ef\u80fd %s';
catalog['Calendar'] = '\u30ab\u30ec\u30f3\u30c0\u30fc';
catalog['Cancel'] = '\u30ad\u30e3\u30f3\u30bb\u30eb';
catalog['Choose a time'] = '\u6642\u9593\u3092\u9078\u629e';
catalog['Choose all'] = '\u5168\u3066\u9078\u629e';
catalog['Chosen %s'] = '\u9078\u629e\u3055\u308c\u305f %s';
catalog['Clear all'] = '\u5168\u3066\u30af\u30ea\u30a2';
catalog['Clock'] = '\u6642\u8a08';
catalog['Hide'] = '\u975e\u8868\u793a';
catalog['January February March April May June July August September October November December'] = '1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708';
catalog['Midnight'] = '0\u6642';
catalog['Noon'] = '12\u6642';
catalog['Now'] = '\u73fe\u5728';
catalog['Remove'] = '\u524a\u9664';
catalog['S M T W T F S'] = '\u65e5 \u6708 \u706b \u6c34 \u6728 \u91d1 \u571f';
catalog['Select your choice(s) and click '] = '\u9078\u629e\u3057\u3066\u30af\u30ea\u30c3\u30af';
catalog['Show'] = '\u8868\u793a';
catalog['Sunday Monday Tuesday Wednesday Thursday Friday Saturday'] = '\u65e5\u66dc \u6708\u66dc \u706b\u66dc \u6c34\u66dc \u6728\u66dc \u91d1\u66dc \u571f\u66dc';
catalog['Today'] = '\u4eca\u65e5';
catalog['Tomorrow'] = '\u660e\u65e5';
catalog['Yesterday'] = '\u6628\u65e5';


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

