

(function(globals) {

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

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

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "Are you sure you want to unlock this artist?": "\u3053\u306e\u30a2\u30fc\u30c6\u30a3\u30b9\u30c8\u3092\u89e3\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f",
    "Do you really want to delete this?": "\u672c\u5f53\u306b\u524a\u9664\u3057\u307e\u3059\u304b\uff1f",
    "E-mail address is incorrect.": "\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002",
    "I made an offer.": "\u30aa\u30d5\u30a1\u30fc\u3057\u307e\u3057\u305f\u3002",
    "I'm not a robot.": "\u79c1\u306f\u30ed\u30dc\u30c3\u30c8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002",
    "Only during production": "\u5236\u4f5c\u4e2d\u306e\u307f",
    "Please enter a valid email address.": "\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
    "Please enter a valid phone number.": "\u6709\u52b9\u306a\u96fb\u8a71\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002",
    "Please enter the correct value. (100 yen \u2194 99,999,999 yen)": "\u6b63\u3057\u3044\u30d0\u30ea\u30e5\u30fc\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002(100\u5186 \u2194 99,999,999\u5186)",
    "Set password confirm title": "\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a",
    "Something went wrong!": "\u4f55\u304b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f!",
    "The URL format is incorrect. ": "URL\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002",
    "The new password and the confirmation password are not the same.": "\u65b0\u3057\u3044\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u78ba\u8a8d\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u540c\u3058\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u3002",
    "The password must be at least 8-20 characters.": "\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u6700\u4f4e 8\u30fc\uff120 \u6587\u5b57\u4ee5\u4e0a\u5fc5\u8981\u3067\u3059\u3002",
    "Uploading ...": "\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d\u2026",
    "Would you like to leave the project?": "\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u9000\u51fa\u3055\u305b\u307e\u3059\u304b\uff1f",
    "You cannot use a password with only numbers.": "\u6570\u5b57\u3060\u3051\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306f\u3067\u304d\u307e\u305b\u3093\u3002",
    "contact comment label": "\u672c\u6587",
    "contact email label": "\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9",
    "contact name label": "\u304a\u540d\u524d",
    "contact phone label": "\u96fb\u8a71\u756a\u53f7",
    "error message email": "\u6b63\u3057\u3044%(label)s\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
    "error message max length": "%(label)s\u306f%(maxLength)s \u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
    "error message phone": "%(label)s\u306f\u6570\u5b57\u3068\u30cf\u30a4\u30d5\u30f3\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
    "error message required": "%(label)s\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",
    "\u53d6\u308a\u6d88\u3059": "\u53d6\u308a\u6d88\u3059",
    "\u652f\u6255\u3044\u5b8c\u4e86": "\u652f\u6255\u3044\u5b8c\u4e86",
    "\uff08\u51e6\u7406\u4e2d\uff09": "\uff08\u51e6\u7406\u4e2d\uff09"
  };
  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\u5e74n\u6708j\u65e5G:i",
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d",
      "%m/%d/%Y %H:%M:%S",
      "%m/%d/%Y %H:%M:%S.%f",
      "%m/%d/%Y %H:%M",
      "%m/%d/%Y",
      "%m/%d/%y %H:%M:%S",
      "%m/%d/%y %H:%M:%S.%f",
      "%m/%d/%y %H:%M",
      "%m/%d/%y"
    ],
    "DATE_FORMAT": "Y\u5e74n\u6708j\u65e5",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%m/%d/%Y",
      "%m/%d/%y",
      "%b %d %Y",
      "%b %d, %Y",
      "%d %b %Y",
      "%d %b, %Y",
      "%B %d %Y",
      "%B %d, %Y",
      "%d %B %Y",
      "%d %B, %Y"
    ],
    "DECIMAL_SEPARATOR": ".",
    "FIRST_DAY_OF_WEEK": "0",
    "MONTH_DAY_FORMAT": "n\u6708j\u65e5",
    "NUMBER_GROUPING": "0",
    "SHORT_DATETIME_FORMAT": "Y/m/d G:i",
    "SHORT_DATE_FORMAT": "Y/m/d",
    "THOUSAND_SEPARATOR": ",",
    "TIME_FORMAT": "G:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "Y\u5e74n\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));

