

(function(globals) {

  var django = globals.django || (globals.django = {});

  
  django.pluralidx = function(count) { return (count == 1) ? 0 : 1; };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "%(sel)s of %(cnt)s selected": [
      "%(cnt)s \u4e2d %(sel)s \u500b\u88ab\u9078",
      ""
    ],
    "6 a.m.": "\u4e0a\u5348 6 \u9ede",
    "6 p.m.": "\u4e0b\u5348 6 \u9ede",
    "April": "\u56db\u6708",
    "August": "\u516b\u6708",
    "Available %s": "\u53ef\u7528 %s",
    "Cancel": "\u53d6\u6d88",
    "Choose": "\u9078\u53d6",
    "Choose a Date": "\u9078\u64c7\u4e00\u500b\u65e5\u671f",
    "Choose a Time": "\u9078\u64c7\u4e00\u500b\u6642\u9593",
    "Choose a time": "\u9078\u64c7\u4e00\u500b\u6642\u9593",
    "Choose all": "\u5168\u9078",
    "Chosen %s": "%s \u88ab\u9078",
    "Click to choose all %s at once.": "\u9ede\u64ca\u4ee5\u4e00\u6b21\u9078\u53d6\u6240\u6709\u7684 %s",
    "Click to remove all chosen %s at once.": "\u9ede\u64ca\u4ee5\u4e00\u6b21\u79fb\u9664\u6240\u6709\u9078\u53d6\u7684 %s",
    "December": "\u5341\u4e8c\u6708",
    "February": "\u4e8c\u6708",
    "Filter": "\u904e\u6ffe\u5668",
    "Hide": "\u96b1\u85cf",
    "January": "\u4e00\u6708",
    "July": "\u4e03\u6708",
    "June": "\u516d\u6708",
    "March": "\u4e09\u6708",
    "May": "\u4e94\u6708",
    "Midnight": "\u5348\u591c",
    "Noon": "\u4e2d\u5348",
    "Note: You are %s hour ahead of server time.": [
      "\u5099\u8a3b\uff1a\u60a8\u7684\u96fb\u8166\u6642\u9593\u6bd4\u4f3a\u670d\u5668\u5feb %s \u5c0f\u6642\u3002",
      ""
    ],
    "Note: You are %s hour behind server time.": [
      "\u5099\u8a3b\uff1a\u60a8\u7684\u96fb\u8166\u6642\u9593\u6bd4\u4f3a\u670d\u5668\u6162 %s \u5c0f\u6642\u3002",
      ""
    ],
    "November": "\u5341\u4e00\u6708",
    "Now": "\u73fe\u5728",
    "October": "\u5341\u6708",
    "Remove": "\u79fb\u9664",
    "Remove all": "\u5168\u90e8\u79fb\u9664",
    "September": "\u4e5d\u6708",
    "Show": "\u986f\u793a",
    "This is the list of available %s. You may choose some by selecting them in the box below and then clicking the \"Choose\" arrow between the two boxes.": "\u53ef\u7528\u7684 %s \u5217\u8868\u3002\u4f60\u53ef\u4ee5\u5728\u4e0b\u65b9\u7684\u65b9\u6846\u5167\u9078\u64c7\u5f8c\uff0c\u9ede\u64ca\u5169\u500b\u65b9\u6846\u4e2d\u7684\"\u9078\u53d6\"\u7bad\u982d\u4ee5\u9078\u53d6\u3002",
    "This is the list of chosen %s. You may remove some by selecting them in the box below and then clicking the \"Remove\" arrow between the two boxes.": "\u9078\u53d6\u7684 %s \u5217\u8868\u3002\u4f60\u53ef\u4ee5\u5728\u4e0b\u65b9\u7684\u65b9\u6846\u5167\u9078\u64c7\u5f8c\uff0c\u9ede\u64ca\u5169\u500b\u65b9\u6846\u4e2d\u7684\"\u79fb\u9664\"\u7bad\u982d\u4ee5\u79fb\u9664\u3002",
    "Today": "\u4eca\u5929",
    "Tomorrow": "\u660e\u5929",
    "Type into this box to filter down the list of available %s.": "\u8f38\u5165\u5230\u9019\u500b\u65b9\u6846\u4ee5\u904e\u6ffe\u53ef\u7528\u7684 %s \u5217\u8868\u3002",
    "Yesterday": "\u6628\u5929",
    "You have selected an action, and you haven't made any changes on individual fields. You're probably looking for the Go button rather than the Save button.": "\u4f60\u5df2\u9078\u4e86\u4e00\u500b\u52d5\u4f5c, \u4f46\u6c92\u6709\u4efb\u4f55\u6539\u8b8a\u3002\u4f60\u53ef\u80fd\u52d5\u5230 '\u53bb' \u6309\u9215, \u800c\u4e0d\u662f '\u5132\u5b58' \u6309\u9215\u3002",
    "You have selected an action, but you haven't saved your changes to individual fields yet. Please click OK to save. You'll need to re-run the action.": "\u4f60\u5df2\u9078\u4e86\u4e00\u500b\u52d5\u4f5c, \u4f46\u6709\u4e00\u500b\u53ef\u7de8\u8f2f\u6b04\u4f4d\u7684\u8b8a\u66f4\u5c1a\u672a\u5132\u5b58\u3002\u8acb\u9ede\u9078 OK \u9032\u884c\u5132\u5b58\u3002\u4f60\u9700\u8981\u91cd\u65b0\u57f7\u884c\u8a72\u52d5\u4f5c\u3002",
    "You have unsaved changes on individual editable fields. If you run an action, your unsaved changes will be lost.": "\u4f60\u5c1a\u672a\u5132\u5b58\u4e00\u500b\u53ef\u7de8\u8f2f\u6b04\u4f4d\u7684\u8b8a\u66f4\u3002\u5982\u679c\u4f60\u57f7\u884c\u52d5\u4f5c, \u672a\u5132\u5b58\u7684\u8b8a\u66f4\u5c07\u6703\u907a\u5931\u3002",
    "[00:12.00]\u7b2c\u4e00\u884c\u6b4c\u8bcd": "[00:12.00]\u7b2c\u4e00\u884c\u6b4c\u8a5e",
    "[00:17.20]\u7b2c\u4e8c\u884c\u6b4c\u8bcd": "[00:17.20]\u7b2c\u4e8c\u884c\u6b4c\u8a5e",
    "[00:21.10]\u7b2c\u4e09\u884c\u6b4c\u8bcd": "[00:21.10]\u7b2c\u4e09\u884c\u6b4c\u8a5e",
    "one letter Friday\u0004F": "\u4e94",
    "one letter Monday\u0004M": "\u4e00",
    "one letter Saturday\u0004S": "\u516d",
    "one letter Sunday\u0004S": "\u65e5",
    "one letter Thursday\u0004T": "\u56db",
    "one letter Tuesday\u0004T": "\u4e8c",
    "one letter Wednesday\u0004W": "\u4e09",
    "\u4e0a\u50b3\u4e2d\uff0c\u8acb\u52ff\u95dc\u9589\u6b64\u756b\u9762...": "...",
    "\u52aa\u529b\u52a0\u8f7d\u4e2d": "\u52aa\u529b\u52a0\u8f09\u4e2d",
    "\u53d6\u6d88": "\u53d6\u6d88",
    "\u5df2\u88ab\u5c4f\u853d": "\u5df2\u88ab\u4e0b\u67b6",
    "\u65b0\u589e\u7126\u9ede\u4f5c\u54c1": "\u65b0\u589e\u7126\u9ede\u4f5c\u54c1",
    "\u6839\u636e\u76f8\u5173\u89c4\u5b9a\u5bf9\u4e8e\u5e10\u53f7\u5b9e\u540d\u7684\u8981\u6c42\uff0c\u8be5\u7528\u6237\u5c1a\u672a\u7ed1\u5b9a\u624b\u673a\uff0c\u65e0\u6cd5\u663e\u793a\u7559\u8a00": "\u6839\u64da\u76f8\u95dc\u898f\u5b9a\u5c0d\u65bc\u5e33\u865f\u5be6\u540d\u7684\u8981\u6c42\uff0c\u8a72\u7528\u6236\u5c1a\u672a\u7d81\u5b9a\u624b\u6a5f\uff0c\u7121\u6cd5\u986f\u793a\u7559\u8a00",
    "\u6b64\u7559\u8a00\u5df2\u88ab\u5c4f\u853d": "\u6b64\u7559\u8a00\u5df2\u88ab\u4e0b\u67b6"
  };
  for (var key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      var value = django.catalog[msgid];
      if (typeof(value) == 'undefined') {
        return msgid;
      } else {
        return (typeof(value) == 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      var value = django.catalog[singular];
      if (typeof(value) == 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value[django.pluralidx(count)];
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      var value = django.gettext(context + '\x04' + msgid);
      if (value.indexOf('\x04') != -1) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.indexOf('\x04') != -1) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(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())});
      }
    };


    /* formatting library */

    django.formats = {
    "DATETIME_FORMAT": "Y \u5e74 n \u6708 j \u65e5",
    "DATETIME_INPUT_FORMATS": [
      "%Y/%m/%d %H:%M",
      "%Y-%m-%d %H:%M",
      "%Y\u5e74%n\u6708%j\u65e5 %H:%M",
      "%Y/%m/%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S",
      "%Y\u5e74%n\u6708%j\u65e5 %H:%M:%S",
      "%Y/%m/%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y\u5e74%n\u6708%j\u65e5 %H:%n:%S.%f",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "Y\u5e74n\u6708j\u65e5",
    "DATE_INPUT_FORMATS": [
      "%Y/%m/%d",
      "%Y-%m-%d",
      "%Y\u5e74%n\u6708%j\u65e5"
    ],
    "DECIMAL_SEPARATOR": ".",
    "FIRST_DAY_OF_WEEK": 1,
    "MONTH_DAY_FORMAT": "n \u6708 j \u65e5",
    "NUMBER_GROUPING": 4,
    "SHORT_DATETIME_FORMAT": "Y/m/d G:i:s",
    "SHORT_DATE_FORMAT": "Y/m/d",
    "THOUSAND_SEPARATOR": "",
    "TIME_FORMAT": "G:i:s",
    "TIME_INPUT_FORMATS": [
      "%H:%M",
      "%H:%M:%S",
      "%H:%M:%S.%f"
    ],
    "YEAR_MONTH_FORMAT": "Y \u5e74 n \u6708"
  };

    django.get_format = function(format_type) {
      var value = django.formats[format_type];
      if (typeof(value) == 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }

}(this));

