

(function(globals) {

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

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

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "Add to cart form field label\u0004Quantity": "Mennyis\u00e9g",
    "Datepicker month\u0004April": "\u00c1prilis",
    "Datepicker month\u0004August": "Augusztus",
    "Datepicker month\u0004December": "December",
    "Datepicker month\u0004February": "Febru\u00e1r",
    "Datepicker month\u0004January": "Janu\u00e1r",
    "Datepicker month\u0004July": "J\u00falius",
    "Datepicker month\u0004June": "J\u00fanius",
    "Datepicker month\u0004March": "M\u00e1rcius",
    "Datepicker month\u0004May": "M\u00e1jus",
    "Datepicker month\u0004November": "November",
    "Datepicker month\u0004October": "Okt\u00f3ber",
    "Datepicker month\u0004September": "Szeptember",
    "Datepicker month shortcut\u0004Apr": "\u00c1pr",
    "Datepicker month shortcut\u0004Aug": "Aug",
    "Datepicker month shortcut\u0004Dec": "Dec",
    "Datepicker month shortcut\u0004Feb": "Feb",
    "Datepicker month shortcut\u0004Jan": "Jan",
    "Datepicker month shortcut\u0004Jul": "J\u00fal",
    "Datepicker month shortcut\u0004Jun": "J\u00fan",
    "Datepicker month shortcut\u0004Mar": "M\u00e1rc",
    "Datepicker month shortcut\u0004May": "M\u00e1jus",
    "Datepicker month shortcut\u0004Nov": "Nov",
    "Datepicker month shortcut\u0004Oct": "Okt",
    "Datepicker month shortcut\u0004Sep": "Szept",
    "Datepicker option\u0004Clear": "T\u00f6r\u00f6l",
    "Datepicker option\u0004Close": "Bez\u00e1r",
    "Datepicker option\u0004Next month": "K\u00f6vetkez\u0151 h\u00f3nap",
    "Datepicker option\u0004Previous month": "El\u0151z\u0151 h\u00f3nap",
    "Datepicker option\u0004Select a month": "V\u00e1lassz egy h\u00f3napot",
    "Datepicker option\u0004Select a year": "V\u00e1lassz egy \u00e9vet",
    "Datepicker option\u0004Today": "Ma",
    "Datepicker weekday\u0004Friday": "P\u00e9ntek",
    "Datepicker weekday\u0004Monday": "H\u00e9tf\u0151",
    "Datepicker weekday\u0004Saturday": "Szombat",
    "Datepicker weekday\u0004Sunday": "Vas\u00e1rnap",
    "Datepicker weekday\u0004Thursday": "Cs\u00fct\u00f6rt\u00f6k",
    "Datepicker weekday\u0004Tuesday": "Kedd",
    "Datepicker weekday\u0004Wednesday": "Szerda",
    "Datepicker weekday shortcut\u0004Fri": "P\u00e9n",
    "Datepicker weekday shortcut\u0004Mon": "H\u00e9t",
    "Datepicker weekday shortcut\u0004Sat": "Szo",
    "Datepicker weekday shortcut\u0004Sun": "Vas",
    "Datepicker weekday shortcut\u0004Thu": "Cs\u00fct",
    "Datepicker weekday shortcut\u0004Tue": "Kedd",
    "Datepicker weekday shortcut\u0004Wed": "Sze",
    "Friday shortcut\u0004F": "P",
    "Missing source": "Hi\u00e1nyz\u00f3 forr\u00e1s",
    "Monday shortcut\u0004M": "H",
    "Product details primary action\u0004Add to cart": "Kos\u00e1rba rak",
    "Rich text editor option\u0004Bold text": "F\u00e9lk\u00f6v\u00e9r bet\u0171",
    "Rich text editor option\u0004Italic text": "D\u0151lt bet\u0171",
    "Saturday shortcut\u0004S": "V",
    "Sunday shortcut\u0004S": "V",
    "Thursday shortcut\u0004T": "K",
    "Tuesday shortcut\u0004T": "K",
    "Wednesday shortcut\u0004W": "Sze"
  };
  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.constructor === Array ? value[django.pluralidx(count)] : value;
      }
    };

    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. F j. H: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.",
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "Y. F j.",
    "DATE_INPUT_FORMATS": [
      "%Y.%m.%d.",
      "%Y-%m-%d"
    ],
    "DECIMAL_SEPARATOR": ",",
    "FIRST_DAY_OF_WEEK": 1,
    "MONTH_DAY_FORMAT": "F j.",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "Y.m.d. H:i",
    "SHORT_DATE_FORMAT": "Y.m.d.",
    "THOUSAND_SEPARATOR": "\u00a0",
    "TIME_FORMAT": "H:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M",
      "%H:%M:%S.%f"
    ],
    "YEAR_MONTH_FORMAT": "Y. F"
  };

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

