

(function(globals) {

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

  
  django.pluralidx = function(n) {
    var v=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);
    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": "Ilo\u015b\u0107",
    "Datepicker month\u0004April": "kwiecie\u0144",
    "Datepicker month\u0004August": "sierpie\u0144",
    "Datepicker month\u0004December": "grudzie\u0144",
    "Datepicker month\u0004February": "luty",
    "Datepicker month\u0004January": "stycze\u0144",
    "Datepicker month\u0004July": "lipiec",
    "Datepicker month\u0004June": "czerwiec",
    "Datepicker month\u0004March": "marzec",
    "Datepicker month\u0004May": "maj",
    "Datepicker month\u0004November": "listopad",
    "Datepicker month\u0004October": "pa\u017adziernik",
    "Datepicker month\u0004September": "wrzesie\u0144",
    "Datepicker month shortcut\u0004Apr": "kwi",
    "Datepicker month shortcut\u0004Aug": "sie",
    "Datepicker month shortcut\u0004Dec": "gru",
    "Datepicker month shortcut\u0004Feb": "lut",
    "Datepicker month shortcut\u0004Jan": "sty",
    "Datepicker month shortcut\u0004Jul": "lip",
    "Datepicker month shortcut\u0004Jun": "cze",
    "Datepicker month shortcut\u0004Mar": "mar",
    "Datepicker month shortcut\u0004May": "maj",
    "Datepicker month shortcut\u0004Nov": "lis",
    "Datepicker month shortcut\u0004Oct": "pa\u017a",
    "Datepicker month shortcut\u0004Sep": "wrz",
    "Datepicker option\u0004Clear": "Wyczy\u015b\u0107",
    "Datepicker option\u0004Close": "Zamknij",
    "Datepicker option\u0004Next month": "Nast\u0119pny miesi\u0105c",
    "Datepicker option\u0004Previous month": "Poprzedni miesi\u0105c",
    "Datepicker option\u0004Select a month": "Wybierz miesi\u0105c",
    "Datepicker option\u0004Select a year": "Wybierz rok",
    "Datepicker option\u0004Today": "Dzisiaj",
    "Datepicker weekday\u0004Friday": "pi\u0105tek",
    "Datepicker weekday\u0004Monday": "poniedzia\u0142ek",
    "Datepicker weekday\u0004Saturday": "sobota",
    "Datepicker weekday\u0004Sunday": "niedziela",
    "Datepicker weekday\u0004Thursday": "czwartek",
    "Datepicker weekday\u0004Tuesday": "wtorek",
    "Datepicker weekday\u0004Wednesday": "\u015broda",
    "Datepicker weekday shortcut\u0004Fri": "Pt",
    "Datepicker weekday shortcut\u0004Mon": "Pon",
    "Datepicker weekday shortcut\u0004Sat": "Sob",
    "Datepicker weekday shortcut\u0004Sun": "Nd",
    "Datepicker weekday shortcut\u0004Thu": "Czw",
    "Datepicker weekday shortcut\u0004Tue": "Wt",
    "Datepicker weekday shortcut\u0004Wed": "\u015ar",
    "Friday shortcut\u0004F": "P",
    "Monday shortcut\u0004M": "P",
    "Product details primary action\u0004Add to cart": "Dodaj do koszyka",
    "Rich text editor option\u0004Bold text": "Wyt\u0142uszczenie",
    "Rich text editor option\u0004Center align": "Wy\u015brodkowanie",
    "Rich text editor option\u0004Header": "Nag\u0142\u00f3wek",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "Obraz (zmienia wybrany tekst w tag obrazka)",
    "Rich text editor option\u0004Italic text": "Kursywa",
    "Rich text editor option\u0004Justify": "Wyjustowanie",
    "Rich text editor option\u0004Left align": "Wyr\u00f3wnanie do lewej",
    "Rich text editor option\u0004Link": "Odno\u015bnik",
    "Rich text editor option\u0004Quote": "Cytat",
    "Rich text editor option\u0004Remove formatting": "Usu\u0144 formatowanie",
    "Rich text editor option\u0004Right align": "Wyr\u00f3wnanie do prawej",
    "Rich text editor option\u0004Subheader": "Podtytu\u0142",
    "Saturday shortcut\u0004S": "NS",
    "Sunday shortcut\u0004S": "NS",
    "Thursday shortcut\u0004T": "C",
    "Tuesday shortcut\u0004T": "C",
    "Wednesday shortcut\u0004W": "\u015a",
    "Your input fits between the recommended lengths": "To co wpisa\u0142e\u015b mie\u015bci si\u0119 w rekomendowanym zakresie d\u0142ugo\u015bci",
    "Your input might be a little too short, think of something more descriptive": "To co wpisa\u0142e\u015b wydaje si\u0119 troch\u0119 za kr\u00f3tkie, spr\u00f3buj wymy\u015bli\u0107 co\u015b bardziej opisowego",
    "item selected": [
      "wybrany przedmiot",
      "wybrane przedmioty",
      "wybranych przedmiot\u00f3w",
      "wybranych przedmiot\u00f3w"
    ]
  };
  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": "j E Y H:i",
    "DATETIME_INPUT_FORMATS": [
      "%d.%m.%Y %H:%M:%S",
      "%d.%m.%Y %H:%M:%S.%f",
      "%d.%m.%Y %H:%M",
      "%d.%m.%Y",
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "j E Y",
    "DATE_INPUT_FORMATS": [
      "%d.%m.%Y",
      "%d.%m.%y",
      "%y-%m-%d",
      "%Y-%m-%d"
    ],
    "DECIMAL_SEPARATOR": ",",
    "FIRST_DAY_OF_WEEK": 1,
    "MONTH_DAY_FORMAT": "j E",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "d-m-Y  H:i",
    "SHORT_DATE_FORMAT": "d-m-Y",
    "THOUSAND_SEPARATOR": "\u00a0",
    "TIME_FORMAT": "H:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "F Y"
  };

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

