

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

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

  /* gettext library */

  django.catalog = django.catalog || {};
  
  const newcatalog = {
    "6 a.m.": "6h r\u00e1no",
    "April": "duben",
    "August": "srpen",
    "Calendar": "Kalend\u00e1\u0159",
    "Cancel": "Storno",
    "Choose a time": "Vyberte \u010das",
    "Clock": "Hodiny",
    "December": "prosinec",
    "Display another image.": "Zobrazit jin\u00fd obr\u00e1zek.",
    "Enter a valid URL.": "Zadejte platnou adresu URL.",
    "Enter a valid email address.": "Zadejte platnou e-mailovou adresu.",
    "February": "\u00fanor",
    "Fri": "p\u00e1",
    "Friday": "p\u00e1tek",
    "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec": "led \u00fano b\u0159e dub kv\u011b \u010den \u010dec srp z\u00e1\u0159 \u0159\u00edj lis pro",
    "January": "leden",
    "July": "\u010dervenec",
    "June": "\u010derven",
    "March": "b\u0159ezen",
    "May": "kv\u011bten",
    "Midnight": "P\u016flnoc",
    "Mon": "po",
    "Monday": "pond\u011bl\u00ed",
    "Noon": "Poledne",
    "November": "listopad",
    "Now": "Nyn\u00ed",
    "October": "\u0159\u00edjen",
    "S M T W T F S": "n p \u00fa s \u010d p s",
    "Sat": "so",
    "Saturday": "sobota",
    "September": "z\u00e1\u0159\u00ed",
    "Sun": "ne",
    "Sunday": "ned\u011ble",
    "Sunday Monday Tuesday Wednesday Thursday Friday Saturday": "Ned\u011ble Pond\u011bl\u00ed \u00dater\u00fd St\u0159eda \u010ctvrtek P\u00e1tek Sobota",
    "This field is required.": "Toto pole je t\u0159eba vyplnit.",
    "Thu": "\u010dt",
    "Thursday": "\u010dtvrtek",
    "Today": "Dnes",
    "Tomorrow": "Z\u00edtra",
    "Tue": "\u00fat",
    "Tuesday": "\u00fater\u00fd",
    "Wed": "st",
    "Wednesday": "st\u0159eda",
    "Yesterday": "V\u010dera",
    "abbrev. month\u0004April": "Dub.",
    "abbrev. month\u0004Aug.": "Srp.",
    "abbrev. month\u0004Dec.": "Pro.",
    "abbrev. month\u0004Feb.": "\u00dano.",
    "abbrev. month\u0004Jan.": "Led.",
    "abbrev. month\u0004July": "\u010cec.",
    "abbrev. month\u0004June": "\u010cer.",
    "abbrev. month\u0004March": "B\u0159e.",
    "abbrev. month\u0004May": "Kv\u011b.",
    "abbrev. month\u0004Nov.": "Lis.",
    "abbrev. month\u0004Oct.": "\u0158\u00edj.",
    "abbrev. month\u0004Sept.": "Z\u00e1\u0159.",
    "alt. month\u0004April": "dubna",
    "alt. month\u0004August": "srpna",
    "alt. month\u0004December": "prosince",
    "alt. month\u0004February": "\u00fanora",
    "alt. month\u0004January": "ledna",
    "alt. month\u0004July": "\u010dervence",
    "alt. month\u0004June": "\u010dervna",
    "alt. month\u0004March": "b\u0159ezna",
    "alt. month\u0004May": "kv\u011btna",
    "alt. month\u0004November": "listopadu",
    "alt. month\u0004October": "\u0159\u00edjna",
    "alt. month\u0004September": "z\u00e1\u0159\u00ed",
    "month3\u0004apr": "dub",
    "month3\u0004aug": "z\u00e1\u0159",
    "month3\u0004dec": "pro",
    "month3\u0004feb": "\u00fano",
    "month3\u0004jan": "led",
    "month3\u0004jul": "\u010dec",
    "month3\u0004jun": "\u010der",
    "month3\u0004mar": "b\u0159e",
    "month3\u0004may": "kv\u011b",
    "month3\u0004nov": "pro",
    "month3\u0004oct": "lis",
    "month3\u0004sep": "\u0159\u00edj",
    "yy-mm-dd": "dd.mm.yy"
  };
  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": "j. E Y G: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 %H:%M",
      "%d. %m. %Y %H:%M:%S",
      "%d. %m. %Y %H:%M:%S.%f",
      "%d. %m. %Y %H.%M",
      "%d. %m. %Y %H:%M",
      "%Y-%m-%d %H.%M",
      "%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",
      "%d. %m. %Y",
      "%d. %m. %y",
      "%Y-%m-%d"
    ],
    "DECIMAL_SEPARATOR": ",",
    "FIRST_DAY_OF_WEEK": 1,
    "MONTH_DAY_FORMAT": "j. F",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "d.m.Y G:i",
    "SHORT_DATE_FORMAT": "d.m.Y",
    "THOUSAND_SEPARATOR": "\u00a0",
    "TIME_FORMAT": "G:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H.%M",
      "%H:%M",
      "%H:%M:%S.%f"
    ],
    "YEAR_MONTH_FORMAT": "F Y"
  };

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

