

'use strict';
{
  const globals = this;
  const django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    const v = 0;
    if (typeof v === 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  const newcatalog = {
    "Accept": "\u63a5\u53d7",
    "Alert to user when opening browser developer console\u0004Stop!": "\u505c\u6b62\uff01",
    "April": "\u56db\u6708",
    "Attachments": "\u9644\u4ef6",
    "August": "\u516b\u6708",
    "Available:": "\u53ef\u7528\uff1a",
    "Chosen:": "\u5df2\u9009\u62e9\uff1a",
    "Clear": "\u6e05\u9664",
    "Clone to translation": "\u514b\u9686\u5230\u7ffb\u8bd1",
    "Cmd+%s": "Cmd+%s",
    "Cmd+M then %s": "Cmd+M \u7136\u540e %s",
    "Ctrl+%s": "Ctrl+%s",
    "Ctrl+M then %s": "Ctrl+M \u7136\u540e %s",
    "December": "\u5341\u4e8c\u6708",
    "Delete entry": "\u5220\u9664\u6761\u76ee",
    "Error loading search results!": "\u52a0\u8f7d\u641c\u7d22\u7ed3\u679c\u51fa\u9519\uff01",
    "Error while loading page:": "\u8f7d\u5165\u9875\u9762\u65f6\u51fa\u9519\uff1a",
    "February": "\u4e8c\u6708",
    "Friday": "\u661f\u671f\u4e94",
    "Get help": "\u83b7\u53d6\u5e2e\u52a9",
    "January": "\u4e00\u6708",
    "July": "\u4e03\u6708",
    "June": "\u516d\u6708",
    "March": "\u4e09\u6708",
    "May": "\u4e94\u6708",
    "Message": "\u6d88\u606f",
    "Minimal (for example two letter) name of day in week\u0004Fr": "\u4e94",
    "Minimal (for example two letter) name of day in week\u0004Mo": "\u4e00",
    "Minimal (for example two letter) name of day in week\u0004Sa": "\u516d",
    "Minimal (for example two letter) name of day in week\u0004Su": "\u65e5",
    "Minimal (for example two letter) name of day in week\u0004Th": "\u56db",
    "Minimal (for example two letter) name of day in week\u0004Tu": "\u4e8c",
    "Minimal (for example two letter) name of day in week\u0004We": "\u4e09",
    "Monday": "\u661f\u671f\u4e00",
    "No new matching source strings found.": "\u672a\u627e\u5230\u65b0\u7684\u5339\u914d\u7684\u6e90\u5b57\u7b26\u4e32\u3002",
    "November": "\u5341\u4e00\u6708",
    "October": "\u5341\u6708",
    "Please contact us in English, otherwise we might be unable to process your request.": "\u8bf7\u4f7f\u7528\u82f1\u8bed\u4e0e\u6211\u4eec\u8054\u7cfb\uff0c\u5426\u5219\u6211\u4eec\u53ef\u80fd\u65e0\u6cd5\u5904\u7406\u60a8\u7684\u8bf7\u6c42\u3002",
    "Please press Ctrl+C to copy.": "\u8bf7\u6309 Ctrl+C \u6765\u590d\u5236\u3002",
    "Please select target plural by clicking.": "\u8bf7\u70b9\u51fb\u9009\u62e9\u76ee\u6807\u590d\u6570\u3002",
    "Press Cmd+I then %s to dismiss this.": "\u82e5\u8981\u5ffd\u7565\uff0c\u8bf7\u6309 Cmd+I\uff0c\u518d\u6309 %s\u3002",
    "Press Ctrl+I then %s to dismiss this.": "\u82e5\u8981\u5ffd\u7565\uff0c\u8bf7\u6309 Ctrl+I\uff0c\u518d\u6309 %s\u3002",
    "Saturday": "\u661f\u671f\u516d",
    "Search\u2026": "\u641c\u7d22\u2026",
    "See https://en.wikipedia.org/wiki/Self-XSS for more information.": "\u66f4\u591a\u4fe1\u606f\uff0c\u89c1 https://en.wikipedia.org/wiki/Self-XSS\u3002",
    "September": "\u4e5d\u6708",
    "Short (for example three letter) name of day in week\u0004Fri": "\u5468\u4e94",
    "Short (for example three letter) name of day in week\u0004Mon": "\u5468\u4e00",
    "Short (for example three letter) name of day in week\u0004Sat": "\u5468\u516d",
    "Short (for example three letter) name of day in week\u0004Sun": "\u5468\u65e5",
    "Short (for example three letter) name of day in week\u0004Thu": "\u5468\u56db",
    "Short (for example three letter) name of day in week\u0004Tue": "\u5468\u4e8c",
    "Short (for example three letter) name of day in week\u0004Wed": "\u5468\u4e09",
    "Short name of month\u0004Apr": "\u56db\u6708",
    "Short name of month\u0004Aug": "\u516b\u6708",
    "Short name of month\u0004Dec": "\u5341\u4e8c\u6708",
    "Short name of month\u0004Feb": "\u4e8c\u6708",
    "Short name of month\u0004Jan": "\u4e00\u6708",
    "Short name of month\u0004Jul": "\u4e03\u6708",
    "Short name of month\u0004Jun": "\u516d\u6708",
    "Short name of month\u0004Mar": "\u4e09\u6708",
    "Short name of month\u0004May": "\u4e94\u6708",
    "Short name of month\u0004Nov": "\u5341\u4e00\u6708",
    "Short name of month\u0004Oct": "\u5341\u6708",
    "Short name of month\u0004Sep": "\u4e5d\u6708",
    "Sort this column": "\u5bf9\u6b64\u5217\u8fdb\u884c\u6392\u5e8f",
    "Subject": "\u4e3b\u9898",
    "Sunday": "\u661f\u671f\u65e5",
    "Text copied to clipboard.": "\u6587\u672c\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f\u3002",
    "Thank you for your inquiry (#%s)! We'll contact you as soon as possible.": "\u611f\u8c22\u60a8\u7684\u8be2\u95ee (#%s) \uff01\u6211\u4eec\u4f1a\u5c3d\u5feb\u8054\u7cfb\u60a8\u3002",
    "The request for machine translation has failed:": "\u8bf7\u6c42\u4f7f\u7528\u673a\u5668\u7ffb\u8bd1\u5931\u8d25\uff1a",
    "The request for machine translation using %s has failed:": "\u8bf7\u6c42\u4f7f\u7528 %s \u673a\u5668\u7ffb\u8bd1\u5f15\u64ce\u5931\u8d25\uff1a",
    "There are some unsaved changes, are you sure you want to leave?": "\u67d0\u4e9b\u4fee\u6539\u5c1a\u672a\u4fdd\u5b58\u3002\u60a8\u786e\u5b9a\u8981\u79bb\u5f00\u5417\uff1f",
    "This is a browser feature intended for developers. If someone told you to copy-paste something here, they are likely trying to compromise your Weblate account.": "\u8fd9\u662f\u9762\u5411\u5f00\u53d1\u4eba\u5458\u7684\u6d4f\u89c8\u5668\u529f\u80fd\u3002\u5982\u679c\u6709\u4eba\u544a\u8bc9\u60a8\u5728\u6b64\u5904\u590d\u5236\u7c98\u8d34\u67d0\u4e9b\u5185\u5bb9\uff0c\u4ed6\u4eec\u5f88\u53ef\u80fd\u4f1a\u8bd5\u56fe\u5165\u4fb5\u4f60\u7684 Weblate \u8d26\u6237\u3002",
    "Thursday": "\u661f\u671f\u56db",
    "Today": "\u4eca\u5929",
    "Translation memory entry removed.": "\u7ffb\u8bd1\u8bb0\u5fc6\u5e93\u6761\u76ee\u5df2\u5220\u9664\u3002",
    "Tuesday": "\u661f\u671f\u4e8c",
    "Weblate feedback": "Weblate \u53cd\u9988",
    "Weblate is now scanning the repository, please be patient.": "Weblate \u6b63\u5728\u626b\u63cf\u4ed3\u5e93\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\u3002",
    "Wednesday": "\u661f\u671f\u4e09",
    "Your e-mail": "\u60a8\u7684\u7535\u5b50\u90ae\u7bb1",
    "Your name": "\u60a8\u7684\u59d3\u540d"
  };
  for (const key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

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

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

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

    django.pgettext = function(context, msgid) {
      let value = django.gettext(context + '\x04' + msgid);
      if (value.includes('\x04')) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      let value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.includes('\x04')) {
        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\u5e74n\u6708j\u65e5 H:i",
    "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": "m\u6708j\u65e5",
    "NUMBER_GROUPING": 4,
    "SHORT_DATETIME_FORMAT": "Y\u5e74n\u6708j\u65e5 H:i",
    "SHORT_DATE_FORMAT": "Y\u5e74n\u6708j\u65e5",
    "THOUSAND_SEPARATOR": "",
    "TIME_FORMAT": "H:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M",
      "%H:%M:%S",
      "%H:%M:%S.%f"
    ],
    "YEAR_MONTH_FORMAT": "Y\u5e74n\u6708"
  };

    django.get_format = function(format_type) {
      const 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;
  }
};

